Hi All,
I am trying to build vpopmail 5.4.25 (have also tried 5.4.26) for use
with a PostgreSQL back end.
The hurdle I am coming up against is if I enable the valias option
and/or the sql logging option.
The error for each individual option are as follows:
--
--enable-valias
/usr/sfw/bin/gcc -I/usr/sfw/include -Wall -o valias valias.o
libvpopmail.a -L/usr/lib -lpq -lcrypt
Undefined first referenced
symbol in file
valias_select_names_end valias.o
valias_select_names valias.o
valias_select_names_nextvalias.o
ld: fatal: Symbol referencing errors. No output written to valias
collect2: ld returned 1 exit status
gmake[2]: *** [valias] Error 1
gmake[2]: Leaving directory
`/export/home/vzhsxn/build/qmail/vpopmail-5.4.25'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory
`/export/home/vzhsxn/build/qmail/vpopmail-5.4.25'
gmake: *** [all] Error 2
--
--
--enable-sql-logging
/usr/sfw/bin/gcc -I. -I/usr/include/pgsql -I. -I. -I.-fPIC
-I/usr/sfw/include -Wall -c -o libvpopmail_a-vauth.o `test -f 'vauth.c'
|| echo './'`vauth.c
vauth.c: In function `vauth_deldomain':
vauth.c:393: error: `sqlBufUpdate' undeclared (first use in this function)
vauth.c:393: error: (Each undeclared identifier is reported only once
vauth.c:393: error: for each function it appears in.)
vauth.c:396: warning: implicit declaration of function `PGresultStatus'
vauth.c: In function `vauth_deluser':
vauth.c:446: error: `sqlBufUpdate' undeclared (first use in this function)
gmake[2]: *** [libvpopmail_a-vauth.o] Error 1
gmake[2]: Leaving directory
`/export/home/vzhsxn/build/qmail/vpopmail-5.4.25'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory
`/export/home/vzhsxn/build/qmail/vpopmail-5.4.25'
gmake: *** [all] Error 2
--
I have attached the complete configure and gmake output runs for each of
the above configure options just in case it is an issue that you can see
earlier on in the build process.
If I omit these options the build process goes through successfully,
however, I would like to keep as much info as possible in the database,
so any help in getting this working would be greatly appreciated.
If I enable both the sql logging and valias options and change the auth
module to MySQL then the entire build completes successfully. I did some
searching and it looks like the --enable-valias and --enable-sql-logging
are supposed to be supported by both MySQL and PostgreSQL, I can only
assume then that I am missing something, or I'm doing something wrong.
Unfortunately we are a PostgreSQL shop and I cannot use MySQL here, or
so I've been led to believe, so, again, any help in getting this working
would be much appreciated.
On a side note, are there any other PostgreSQL users out there that can
recommend any additional parameters I should use with vpopmail?
Also, what do the following configure options do, I've tried to find
documentation on them but am obviously looking in the wrong places:
[1] --enable-ip-alias-domains,
[2] --enable-qmail-ext
If I've omitted any important information, please dont hesitate to ask
and I'll try to provide the info.
Your comments/suggestions are greatly appreciated.
Thanks
Bruce
!DSPAM:473c18b232001857993994!
[EMAIL PROTECTED]:/export/home/user/build/qmail/vpopmail-5.4.25 # ./configure \
> --enable-auth-module=pgsql \
> --enable-incdir=/usr/include/pgsql \
> --enable-libdir=/usr/lib \
> --disable-many-domains \
> --enable-valias \
> --enable-learn-passwords \
> CC=/usr/sfw/bin/gcc \
> CFLAGS=-I/usr/sfw/include
checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking build system type... i386-pc-solaris2.10
checking host system type... i386-pc-solaris2.10
checking for gawk... (cached) nawk
checking for gcc... /usr/sfw/bin/gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/sfw/bin/gcc accepts -g... yes
checking for /usr/sfw/bin/gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of /usr/sfw/bin/gcc... none
checking for a BSD-compatible install... ./install-sh -c
checking for ranlib... ranlib
checking for library containing strerror... none required
checking for crypt in -lcrypt... yes
checking for dirent.h that defin