sxemacs-devel
[Top] [All Lists]

Re: [compilation failed] sxemacs 21.1.3 with pgsql.

From: Sebastian Freundt <hroptatyr@xxxxxxxxxxx>
Subject: Re: [compilation failed] sxemacs 21.1.3 with pgsql.
Date: Tue, 27 Dec 2005 20:41:39 +0000
User-agent: Gnus/5.110004 (No Gnus v0.4) SXEmacs/22.1.3 (linux)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Andrey Slusar <anray@xxxxxx> writes:

> Mon, 26 Dec 2005 20:20:51 +0000, you wrote:
>
>> Andrey Slusar <anray@xxxxxx> writes:
>
>> > Hello, SXEmacs Developers!
>> >
>> > ./configure --with-x11  --with-mule  --x-includes=/usr/X11R6/include  
>> > --x-libraries=/usr/X11R6/lib  --with-site-libraries='/usr/local/lib'  
>> > --with-site-includes='/usr/local/include'  --with-xface  
>> > --with-sound=native  --with-pop  --with-xfs  --with-jpeg  --with-png  
>> > --with-tiff  --with-xpm  --with-ldap=no  
>> > --with-infopath=/usr/local/lib/xemacs/info:/usr/local/info:/usr/X11R6/info:/usr/info:/usr/local/lib/texmf/doc/info:/usr/lib/texmf/doc:/usr/share/info
>> >   --with-clash-detection  --with-database=berkdb  --with-xim=xlib  
>> > --with-menubars=lucid --with-scrollbars=motif  --with-dialogs=motif 
>> > --with-widgets=motif --enable-debug=no --enable-error-checking=no 
>> > --with-athena=xaw --with-canna=no --with-wnn=no --with-wnn6=no 
>> > --x-libraries=/usr/X11R6/lib --x-includes=/usr/X11R6/include 
>> > --prefix=/usr/local i386--freebsd
>
>> Hm, you did not request postgresql bindings, do you actually want them?
>> If not, simply pass --without-postgresql to the configure script.
>
>   It's only build experiment.
>
>> [snip]
>> > cc -c -Wall -Wno-switch -Wmissing-prototypes -Wsign-compare 
>> > -Wno-char-subscripts -Wundef -Wstrict-prototypes -Wpacked -Wpointer-arith 
>> > -Wshadow -Wmissing-declarations -O2 -pipe -march=athlon-xp  -Demacs -I. 
>> > -DHAVE_CONFIG_H -I/usr/local/include -I/usr/local/include 
>> > -I/usr/local/include -I/usr/X11R6/include EmacsManager.c
>> > cc -nostdlib   -L/usr/local/lib -Xlinker -z -Xlinker nocombreloc 
>> > -L/usr/local/lib -L/usr/local/lib -Xlinker -R/usr/local/lib:/usr/X11R6/lib 
>> > -L/usr/X11R6/lib -Wl,-export-dynamic -o temacs pre-crt0.o /usr/lib/crt1.o 
>> > /usr/lib/crti.o /usr/lib/crtbegin.o abbrev.o alloc.o blocktype.o buffer.o 
>> > bytecode.o callint.o callproc.o casefiddle.o casetab.o chartab.o cmdloop.o 
>> > cmds.o console.o console-stream.o data.o device.o dired.o doc.o doprnt.o 
>> > dynarr.o editfns.o elhash.o emacs.o eval.o events.o unexelf.o 
>> > balloon_help.o balloon-x.o sysdll.o emodules.o number.o ent-int.o 
>> > ent-float.o ent-indef.o postgresql.o dgif_lib.o gif_io.o menubar.o 
>> > scrollbar.o dialog.o toolbar.o menubar-x.o scrollbar-x.o dialog-x.o 
>> > toolbar-x.o gui-x.o realpath.o inline.o linuxplay.o miscplay.o 
>> > console-tty.o device-tty.o event-tty.o frame-tty.o objects-tty.o 
>> > redisplay-tty.o cm.o terminfo.o event-unixoid.o database.o process-unix.o 
>> > event-stream.o extents.o faces.o fileio.o  filemode.o floatfns.o fns.o 
>> > font-lock.o f!
>  ra!
>>  me.o general.o glyphs.o glyphs-eimage.o glyphs-widget.o gui.o gutter.o  
>> hash.o imgproc.o indent.o insdel.o intl.o keymap.o  line-number.o lread.o 
>> lstream.o macros.o marker.o md5.o minibuf.o objects.o opaque.o print.o 
>> process.o profile.o rangetab.o redisplay.o redisplay-output.o regex.o 
>> search.o select.o  signal.o sound.o specifier.o strftime.o symbols.o 
>> syntax.o sysdep.o undo.o console-x.o device-x.o event-Xt.o frame-x.o 
>> glyphs-x.o objects-x.o redisplay-x.o select-x.o xgccache.o widget.o window.o 
>> lastfile.o gmalloc.o vm-limit.o ralloc.o EmacsFrame.o EmacsShell.o 
>> TopLevelEmacsShell.o TransientEmacsShell.o EmacsManager.o    
>> ../lwlib/liblw.a  -lXm -ltiff -lpng -ljpeg -lz -lcompface -lXpm -lXmu -lXt 
>> -lXext -lX11 -lSM -lICE -lgdbm -lncurses -lpq -lm -lutil -lgcc -lc -lgcc 
>> /usr/lib/crtend.o /usr/lib/crtn.o `cc -print-libgcc-file-name`
>> > postgresql.o(.text+0x10eb): In function `Fpq_pgconn':
>> > : undefined reference to `PQserverVersion'
>> > gmake[1]: *** [temacs] Error 1
>> > gmake[1]: Leaving directory 
>> > `/usr/home/anray/ports/ports/editors/sxemacs-mule/work/sxemacs-22.1.3/src'
>> > gmake: *** [src] Ошибка 2
>> > *** Error code 2
>
>> Looks like you provided a PostgreSQL library of version 6.x or older. Is
>> this the case?
>> Actually, we have planned to drop support for pgsql versions <=7.4.
>
> postgres --version
> ,----
> | postgres (PostgreSQL) 7.4.10
> `----

eerks :\

Can you please verify, if there is definitely _no_ line like this:

extern int      PQserverVersion(const PGconn *conn);

in your libpq-fe.h?

If that is the case, I would have to reconsider the bindings.

hroptatyr
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDsacPlMmhrILJOQ4RAhp2AJ47RJp0kyLArKskC5y9RcTKLcu/UACgjrtm
/HnkRKK5Y5pW4QhZ4NJLz7U=
=VSz5
-----END PGP SIGNATURE-----



<Prev in Thread] Current Thread [Next in Thread>