Re: [Dovecot] Compiling v1.3 on different OSes
Timo Sirainen tss@iki.fi wrote:
Could you non-Linux users test if this compiles with you?
During 'make' on FreeBSD 6, I get:
/usr/local/bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I/usr/local/include -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -MT lib-signals.lo -MD -MP -MF .deps/lib-signals.Tpo -c -o lib-signals.lo lib-signals.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I/usr/local/include -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -MT lib-signals.lo -MD -MP -MF .deps/lib-signals.Tpo -c lib-signals.c -fPIC -DPIC -o .libs/lib-signals.o
lib-signals.c: In function lib_signal_code_to_str': lib-signals.c:47: error:
SEGV_MAPERR' undeclared (first use in this function)
lib-signals.c:47: error: (Each undeclared identifier is reported only once
lib-signals.c:47: error: for each function it appears in.)
lib-signals.c:49: error: SEGV_ACCERR' undeclared (first use in this function) lib-signals.c:55: error:
BUS_ADRALN' undeclared (first use in this function)
lib-signals.c:57: error: BUS_ADRERR' undeclared (first use in this function) lib-signals.c:59: error:
BUS_OBJERR' undeclared (first use in this function)
% libtool --version ltmain.sh (GNU libtool) 1.5.22 (1.1220.2.365 2005/12/18 22:14:06)
% gcc --version gcc (GCC) 3.4.4 [FreeBSD] 20050518
I hope this helps, and I'd be happy to perform further compilation tests.
Alan Ferrency pair Networks, Inc.
On Mon, 2009-04-06 at 17:12 -0400, Alan Ferrency wrote:
lib-signals.c: In function
lib_signal_code_to_str': lib-signals.c:47: error:
SEGV_MAPERR' undeclared (first use in this function) lib-signals.c:47: error: (Each undeclared identifier is reported only once lib-signals.c:47: error: for each function it appears in.) lib-signals.c:49: error:SEGV_ACCERR' undeclared (first use in this function) lib-signals.c:55: error:
BUS_ADRALN' undeclared (first use in this function) lib-signals.c:57: error:BUS_ADRERR' undeclared (first use in this function) lib-signals.c:59: error:
BUS_OBJERR' undeclared (first use in this function)
Can you find these anywhere? Like:
grep -r SEGV_MAPERR /usr/include
On Mon, 2009-04-06 at 17:14 -0400, Timo Sirainen wrote:
On Mon, 2009-04-06 at 17:12 -0400, Alan Ferrency wrote:
lib-signals.c: In function
lib_signal_code_to_str': lib-signals.c:47: error:
SEGV_MAPERR' undeclared (first use in this function) lib-signals.c:47: error: (Each undeclared identifier is reported only once lib-signals.c:47: error: for each function it appears in.) lib-signals.c:49: error:SEGV_ACCERR' undeclared (first use in this function) lib-signals.c:55: error:
BUS_ADRALN' undeclared (first use in this function) lib-signals.c:57: error:BUS_ADRERR' undeclared (first use in this function) lib-signals.c:59: error:
BUS_OBJERR' undeclared (first use in this function)Can you find these anywhere? Like:
grep -r SEGV_MAPERR /usr/include
Probably not. So this should help: http://hg.dovecot.org/dovecot-1.3/rev/286ff5114588
On Mon, 6 Apr 2009, Timo Sirainen wrote:
Can you find these anywhere? Like:
grep -r SEGV_MAPERR /usr/include
Probably not. So this should help: http://hg.dovecot.org/dovecot-1.3/rev/286ff5114588
That fixed the compilation error. Now I have a link time error for libiconv:
libtool: link: gcc -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -o .libs/dovecot-auth auth.o auth-cache.o auth-client-connection.o auth-master-connection.o auth-master-listener.o auth-request.o auth-request-handler.o auth-settings.o auth-stream.o auth-worker-client.o auth-worker-server.o db-checkpassword.o db-sql.o db-passwd-file.o main.o mech.o mech-anonymous.o mech-plain.o mech-login.o mech-cram-md5.o mech-digest-md5.o mech-gssapi.o mech-ntlm.o mech-otp.o mech-skey.o mech-rpa.o mech-apop.o mech-winbind.o otp-skey-common.o plain-common.o passdb.o passdb-blocking.o passdb-bsdauth.o passdb-cache.o passdb-checkpassword.o passdb-passwd.o passdb-passwd-file.o passdb-pam.o passdb-shadow.o passdb-sia.o passdb-vpopmail.o passdb-sql.o userdb.o userdb-blocking.o userdb-checkpassword.o userdb-nss.o userdb-passwd.o userdb-passwd-file.o userdb-prefetch.o userdb-static.o userdb-vpopmail.o userdb-sql.o db-ldap.o passdb-ldap.o userdb-ldap.o -Wl,--export-dynamic libpassword.a ../lib-ntlm/libntlm.a ../lib-otp/libotp.a ../lib-sql/.libs/libsql.a ../lib-dovecot/.libs/libdovecot.so -lcrypt -lpam -Wl,-rpath -Wl,/usr/local/lib/dovecot
../lib-dovecot/.libs/libdovecot.so: undefined reference to libiconv_open' ../lib-dovecot/.libs/libdovecot.so: undefined reference to
libiconv_close'
../lib-dovecot/.libs/libdovecot.so: undefined reference to `libiconv'
My libiconv is in /usr/local/lib.
Alan Ferrency pair Networks, Inc.
On Mon, 6 Apr 2009, Timo Sirainen wrote:
On Mon, 2009-04-06 at 17:12 -0400, Alan Ferrency wrote:
lib-signals.c: In function
lib_signal_code_to_str': lib-signals.c:47: error:
SEGV_MAPERR' undeclared (first use in this function)Can you find these anywhere? Like:
grep -r SEGV_MAPERR /usr/include
Nope, sorry. They're not in /usr/local/include either.
Maybe I have a missing dependency?
Alan Ferrency pair Networks, Inc.
participants (2)
-
Alan Ferrency
-
Timo Sirainen