|--==> "JJ" == Jerry James <james(a)xemacs.org> writes:
JJ> Since error-checking is determined by config.h defines, can
JJ> you please insert this code somewhere after the includes in
JJ> postgresql.c and see if it compiles successfully?
JJ> #ifndef _SRC_CONFIG_H_
JJ> #error _SRC_CONFIG_H not defined
JJ> #endif
I slotted it in here...
#include "process.h"
/* Are the error checking symbols coming through? */
#ifndef _SRC_CONFIG_H_
#error _SRC_CONFIG_H not defined
#endif
#ifdef RUNNING_XEMACS_21_1 /* handle interface changes */
Compiling it...
cd ./modules/postgresql && gmake all
gmake[1]: Entering directory `/usr/local/src/xemacs/modules/postgresql'
../../lib-src/ellcc -ggdb3 -Wall -Wchar-subscripts -Wunused -Wundef -Wshadow
-Wsign-compare -Wmissing-declarations -Wunreachable-code -march=athlon --mode=compile
--mod-output=postgresql.o -I../../src -I/usr/local/src/xemacs/modules/postgresql/../../src
-c postgresql.c
postgresql.c: In function `Fpq_connectdb':
postgresql.c:511: warning: will never be executed
postgresql.c: In function `Fpq_connect_start':
postgresql.c:557: warning: will never be executed
postgresql.c: In function `Fpq_notifies':
postgresql.c:1394: warning: will never be executed
postgresql.c: At top level:
postgresql.c:1889: warning: no previous declaration for `unload_postgresql'
ELLMAKEDOC=../../lib-src/make-docfile ../../lib-src/ellcc --mode=init
--mod-output=postgresql_i.c \
--mod-name=postgresql --mod-version=1.0.0 \
--mod-title="PostgreSQL Client Interface for XEmacs"
/usr/local/src/xemacs/modules/postgresql/postgresql.c
../../lib-src/ellcc -ggdb3 -Wall -Wchar-subscripts -Wunused -Wundef -Wshadow
-Wsign-compare -Wmissing-declarations -Wunreachable-code -march=athlon --mode=compile
--mod-output=postgresql_i.o -I../../src
-I/usr/local/src/xemacs/modules/postgresql/../../src -c postgresql_i.c
In file included from postgresql_i.c:3:
../../src/emodules.h:92:1: warning: "staticpro" redefined
In file included from ../../src/emodules.h:37,
from postgresql_i.c:3:
../../src/lisp.h:3244:1: warning: this is the location of the previous definition
postgresql_i.c:12: warning: no previous declaration for `docs_of_postgresql'
../../lib-src/ellcc --mode=link --mod-output=postgresql.ell postgresql.o postgresql_i.o
-L/usr/local/pgsql/lib -L/usr/X11R6/lib -lpq
gmake[1]: Leaving directory `/usr/local/src/xemacs/modules/postgresql'
Trying to load it...
(load-module "postgresql")
=> Dll error: Opening dynamic module,
"/usr/local/lib/xemacs-21.5-b9/i686-pc-linux/modules/postgresql.ell: undefined
symbol: error_check_pgconn"
# bind (standard-output stack-trace-on-signal debug-on-signal stack-trace-on-error
debug-on-error)
# (unwind-protect ...)
# (unwind-protect ...)
load-module("postgresql")
eval((load-module "postgresql"))
# bind (expr)
eval-interactive((load-module "postgresql"))
# bind (standard-output opoint ignore-quotes eval-last-sexp-arg-internal)
eval-last-sexp(t)
# bind (standard-output)
#<compiled-function nil "...(13)" [standard-output terpri eval-last-sexp t]
2 1090158 nil>()
call-interactively(eval-print-last-sexp)
# (condition-case ... . error)
# (catch top-level ...)
--
|---<Steve Youngs>---------------<GnuPG KeyID: 10D5C9C5>---|
| XEmacs - It's not just an editor. |
| It's a way of life. |
|------------------------------------<youngs(a)xemacs.org>---|