Hello Ronny,

  I don't know much about cygwin, so maybe someone else can provide
some better input, but the specific errors you're getting are from
your linker not being able to resolve some symbols, ie. not all of
the right shared libraries are being linked in.  You might try
changing the libraries to "-lpq -lcrypt -lssl" and see if that
resolves the _crypt symbol, but I don't know where _vsyslog would
be (it's in libc on a unix system - but libc has to be included
already, or you'd get a lot of other errors, too).  You might try
a google search for _vsyslog errors when compiling via cygwin and
see if you can find suggestions (perhaps you have "syslog," not
"vsyslog," and a wrapper could be made around the former to mimic
the latter?).


---- Original Message ----
From: Ronny Walter <[email protected]>
To: <[email protected]>
Subject: [Dbmail] Dbmail - cygwin
Sent: Tue, 1 Apr 2003 11:09:38 +0200

> Hello,
> 
> Is it possible to compile and run dbmail with cygwin and postgresql?
> 
> At the moment i get the following compiler-error:
> 
> $ ./build.sh
> This is the dbmail build script
> I will have to ask you some questions about your system
> 
> What database do you wish to use? Choices are (m)ysql and (p)ostgresql >
> p
> You have selected PostgreSQL as database
> The library directory for PostgreSQL is now [/usr/local/pgsql/lib/].
> Enter new directory or press RETURN to keep this setting:
> /usr/lib/postgresql
> The include directory for PostgreSQL is now [/usr/local/pgsql/include/].
> Enter new directory or press RETURN to keep this setting:
> /usr/include/postgresql
> The libraries are currently set to [-lpq -lcrypto -lssl].
> Enter new libraries (preceed each by -l) or press RETURN to keep this
> setting:
> 
> 
> Creating makefile..
> 
> [EMAIL PROTECTED] ~/dbmail-1.1
> $ make
> cc -Wall -O2 -D_BSD_SOURCE -D_SVID_SOURCE   -c -o list.o list.c
> cc -Wall -O2 -D_BSD_SOURCE -D_SVID_SOURCE   -c -o debug.o debug.c
> debug.c: In function `trace':
> debug.c:70: warning: implicit declaration of function `vsyslog'
> cc -Wall -O2 -D_BSD_SOURCE -D_SVID_SOURCE   -c -o pipe.o pipe.c
> cc -Wall -O2 -D_BSD_SOURCE -D_SVID_SOURCE   -c -o mime.o mime.c
> cc -o pgsql/dbpgsql.o -c pgsql/dbpgsql.c -L/usr/lib/postgresql
> -I/usr/include/po
> stgresql
> cc -Wall -O2 -D_BSD_SOURCE -D_SVID_SOURCE   -c -o dbmd5.o dbmd5.c
> cc -Wall -O2 -D_BSD_SOURCE -D_SVID_SOURCE   -c -o md5.o md5.c
> cc -Wall -O2 -D_BSD_SOURCE -D_SVID_SOURCE   -c -o bounce.o bounce.c
> cc -Wall -O2 -D_BSD_SOURCE -D_SVID_SOURCE   -c -o forward.o forward.c
> cc -Wall -O2 -D_BSD_SOURCE -D_SVID_SOURCE   -c -o memblock.o memblock.c
> cc -o pgsql/dbauthpgsql.o -c pgsql/dbauthpgsql.c -L/usr/lib/postgresql
> -I/usr/in
> clude/postgresql
> cc -Wall -O2 -D_BSD_SOURCE -D_SVID_SOURCE   -c -o config.o config.c
> cc      -Wall -O2 -D_BSD_SOURCE -D_SVID_SOURCE main.c -o dbmail-smtp
> list.o debu
> g.o pipe.o mime.o pgsql/dbpgsql.o dbmd5.o md5.o bounce.o forward.o
> memblock.o pg
> sql/dbauthpgsql.o config.o -L/usr/lib/postgresql
> -I/usr/include/postgresql -lpq
> -lcrypto -lssl
> debug.o(.text+0x143):debug.c: undefined reference to `_vsyslog'
> pgsql/dbauthpgsql.o(.text+0x2586):dbauthpgsql.c: undefined reference to
> `_crypt'
> 
> collect2: ld returned 1 exit status
> make: *** [smtp] Error 1
> 
> 
> 
> Thanks for your help,
> 
> Atlan
> 
> 
> 
> _______________________________________________
> Dbmail mailing list
> [email protected]
> https://mailman.fastxs.nl/mailman/listinfo/dbmail
> 
-- End Original Message --


--
Jesse Norell
jesse (at) kci.net

Reply via email to