From: pollux <po...@wz...> - 2003-09-07 16:06:26
|
On Sun, Sep 07, 2003 at 04:29:33PM +0400, Roman Bogorodskiy wrote: > > wzdftpd-devel@ > > Hello. I have the following problem and i hope you'll help me to solve it. > > As you know, i'm writing authentificataion over PostgreSQL backend. > > Makefile.am: > > ---cut 8<--- > libdir = ${pkgdatadir}/backends > > INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/src -I/usr/include/rpcsvc > > lib_LTLIBRARIES = libwzdpgauth.la > > libwzdpgauth_la_SOURCES = pgauth_main.c > libwzdpgauth_la_LDFLAGS = -no-undefined -avoid-version -module -lpq @CRYPT_FLAGS@ > ---cut 8<--- Hi Novel, In the error below, libtool is trying to explain it cannot resolve all needed dependancies of -lpq (this can be due to several possibilities: a wrong libtool version, or a missing flag to the linker) Postgresql should provide you some tools to help compilation: you should add something like: CPPFLAGS += `pg_config --includedir` and libwzdpgauth_la_LDFLAGS = ... -L`pg_config --libdir` -lpq Sometimes pgsql provides a tool called libpq3-config to help fincding other libs: # /usr/lib/postgresql/bin/libpq3-config -lssl -lcrypto -lkrb5 -lcrypt -lresolv -lnsl Hope this helps /P > > *** Warning: This library needs some functionality provided by -lpq. > *** I have the capability to make that library automatically link in when > *** you link to this library. But I can only do this if you have a > *** shared version of the library, which you do not appear to have. > > *** Warning: libtool could not satisfy all declared inter-library > *** dependencies of module libwzdpgauth. Therefore, libtool will create > *** a static module, that should work as long as the dlopening > *** application is linked with the -dlopen flag. > ar cru .libs/libwzdpgauth.a pgauth_main.lo > ranlib .libs/libwzdpgauth.a > creating libwzdpgauth.la > (cd .libs && rm -f libwzdpgauth.la && ln -s ../libwzdpgauth.la libwzdpgauth.la) > gmake[3]: Leaving directory `/usr/home/novel/projects/work/wzdftpd/backends/wzd_auth_pgsql' > -- In /dev/null no one can here you scream ! // Pollux <po...@wz...> \\ // \\ \\ Creator of wzdftpd -- http://www.wzdftpd.net // \\ // |