I'm having trouble building dbmail 2.0/cvs.

Mac 10.3.1, PG 7.4rc2, current developer tools (gcc 3.3). Postgres was recently (yesterday) built from source, so I know I have at least a nominally functioning system.

It seems like there's something screwy referring to libraries, as this is what I get from a configure/make clean /make run. I will note that the path to pg_config is strange, but it is valid.

Any ideas?

eric


[tibaby:~/src/dbmail-2.0/dbmail] erics% ./configure --with-pgsql

This is dbmail's GNU configure script.
It's going to run a bunch of strange tests to hopefully
make your compile work without much twiddling.

checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking whether to enable maintainer-specific portions of Makefiles... no
checking for ranlib... ranlib
checking for pg_config... /Volumes/Frontier/pgtest/bin/pg_config
checking PostgreSQL headers... /Volumes/Frontier/pgtest/include
checking PostgreSQL libraries... -L/Volumes/Frontier/pgtest/lib -lpq
configure: checking for authentication configuration
configure: using SQL authentication
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking maximum warning verbosity option... -W -Wall -Wpointer-arith -Wstrict-prototypes -O2 for C
checking for gcc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking how to run the C preprocessor... gcc -E
checking for endian.h... no
checking for crypt.h... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating mysql/Makefile
config.status: creating pgsql/Makefile
config.status: creating auth/Makefile
config.status: creating config.h
config.status: config.h is unchanged
[tibaby:~/src/dbmail-2.0/dbmail] erics% make clean
Making clean in auth
test -z "libauthdbmail.a" || rm -f libauthdbmail.a
rm -f *.o core *.core
Making clean in pgsql
test -z "libpgsqldbmail.a" || rm -f libpgsqldbmail.a
rm -f *.o core *.core
Making clean in mysql
test -z "" || rm -f
rm -f *.o core *.core
Making clean in .
test -z "dbmail-smtp dbmail-pop3d dbmail-imapd dbmail-maintenance dbmail-adduser dbmail-readvut raw-convertor dbmail-mini-injector" || rm -f dbmail-smtp dbmail-pop3d dbmail-imapd dbmail-maintenance dbmail-adduser dbmail-readvut raw-convertor dbmail-mini-injector
rm -f *.o core *.core
[tibaby:~/src/dbmail-2.0/dbmail] erics% make all
make  all-recursive
Making all in mysql
make[2]: Nothing to be done for `all'.
Making all in pgsql
gcc -DHAVE_CONFIG_H -I. -I. -I.. /Volumes/Frontier/pgtest/include -g -O2 -W -Wall -Wpointer-arith -Wstrict-prototypes -O2 -c `test -f 'dbpgsql.c' || echo './'`dbpgsql.c gcc: /Volumes/Frontier/pgtest/include: linker input file unused because linking not done
rm -f libpgsqldbmail.a
ar cru libpgsqldbmail.a dbpgsql.o
ranlib libpgsqldbmail.a
Making all in auth
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -W -Wall -Wpointer-arith -Wstrict-prototypes -O2 -c `test -f 'authsql.c' || echo './'`authsql.c
authsql.c: In function `auth_getencryption':
authsql.c:233: warning: comparison between signed and unsigned
rm -f libauthdbmail.a
ar cru libauthdbmail.a authsql.o
ranlib libauthdbmail.a
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -W -Wall -Wpointer-arith -Wstrict-prototypes -O2 -c `test -f 'config.c' || echo './'`config.c gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -W -Wall -Wpointer-arith -Wstrict-prototypes -O2 -c `test -f 'list.c' || echo './'`list.c gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -W -Wall -Wpointer-arith -Wstrict-prototypes -O2 -c `test -f 'debug.c' || echo './'`debug.c gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -W -Wall -Wpointer-arith -Wstrict-prototypes -O2 -c `test -f 'dbmd5.c' || echo './'`dbmd5.c gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -W -Wall -Wpointer-arith -Wstrict-prototypes -O2 -c `test -f 'md5.c' || echo './'`md5.c gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -W -Wall -Wpointer-arith -Wstrict-prototypes -O2 -c `test -f 'mime.c' || echo './'`mime.c gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -W -Wall -Wpointer-arith -Wstrict-prototypes -O2 -c `test -f 'main.c' || echo './'`main.c gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -W -Wall -Wpointer-arith -Wstrict-prototypes -O2 -c `test -f 'pipe.c' || echo './'`pipe.c
pipe.c: In function `insert_messages':
pipe.c:307: warning: comparison between signed and unsigned
pipe.c:375: warning: comparison between signed and unsigned
pipe.c: In function `send_reply':
pipe.c:684: warning: comparison between signed and unsigned
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -W -Wall -Wpointer-arith -Wstrict-prototypes -O2 -c `test -f 'bounce.c' || echo './'`bounce.c
bounce.c: In function `bounce':
bounce.c:43: warning: unused parameter `headersize'
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -W -Wall -Wpointer-arith -Wstrict-prototypes -O2 -c `test -f 'forward.c' || echo './'`forward.c gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -W -Wall -Wpointer-arith -Wstrict-prototypes -O2 -c `test -f 'memblock.c' || echo './'`memblock.c gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -W -Wall -Wpointer-arith -Wstrict-prototypes -O2 -c `test -f 'misc.c' || echo './'`misc.c gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -W -Wall -Wpointer-arith -Wstrict-prototypes -O2 -c `test -f 'db.c' || echo './'`db.c
db.c: In function `db_copymsg':
db.c:2404: warning: comparison between signed and unsigned
db.c:2386: warning: unused variable `quotum_result'
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -W -Wall -Wpointer-arith -Wstrict-prototypes -O2 -c `test -f 'shared_mailbox.c' || echo './'`shared_mailbox.c gcc -g -O2 -W -Wall -Wpointer-arith -Wstrict-prototypes -O2 -o dbmail-smtp -L/Volumes/Frontier/pgtest/lib -lpq config.o list.o debug.o dbmd5.o md5.o mime.o main.o pipe.o bounce.o forward.o memblock.o misc.o db.o shared_mailbox.o pgsql/libpgsqldbmail.a auth/libauthdbmail.a
ld: Undefined symbols:
_PQclear
_PQcmdTuples
_PQconnectdb
_PQerrorMessage
_PQescapeString
_PQexec
_PQfinish
_PQgetlength
_PQgetvalue
_PQnfields
_PQntuples
_PQreset
_PQresultErrorMessage
_PQresultStatus
_PQstatus
make[2]: *** [dbmail-smtp] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
[tibaby:~/src/dbmail-2.0/dbm

Reply via email to