socklen_t is POSIX brain-damaged nonsense. There is absolutely no reason whatsoever to use it. The BSD sockets api says it should be int, and socklen_t can't be anything else because of promotion rules.
That said, http://cvs.sourceforge.net/viewcvs.py/rdesktop/rdesktop/configure.ac? r1=1.11&r2=1.12 outlines the fix necessary. On Tue, 2005-04-12 at 01:21 +0200, [EMAIL PROTECTED] wrote: > A BUGNOTE has been added to this bug. > ====================================================================== > http://dbmail.org/mantis/bug_view_advanced_page.php?bug_id=0000184 > ====================================================================== > Reported By: aaron > Assigned To: > ====================================================================== > Project: DBMail > Bug ID: 184 > Category: IMAP daemon > Reproducibility: always > Severity: major > Priority: normal > Status: new > ====================================================================== > Date Submitted: 25-Mar-05 18:35 CET > Last Modified: 12-Apr-05 01:21 CEST > ====================================================================== > Summary: serverchild.c does not build on Mac OS X 10.2 > Description: > gcc -DHAVE_CONFIG_H -I. -I. -I. -fomit-frame-pointer -g -O2 -W -Wall > -Wpointer-arith -Wstrict-prototypes -Wp,-MD,.deps/serverchild.pp -c > serverchild.c -fno-common -DPIC -o .libs/serverchild.o > serverchild.c: In function `PerformChildTask': > serverchild.c:267: error: `socklen_t' undeclared (first use in this > function) > serverchild.c:267: error: (Each undeclared identifier is reported only > once > serverchild.c:267: error: for each function it appears in.) > serverchild.c:267: error: parse error before "len" > serverchild.c:307: error: `len' undeclared (first use in this function) > make[2]: *** [serverchild.lo] Error 1 > > ====================================================================== > > ---------------------------------------------------------------------- > aaron - 26-Mar-05 21:40 CET > ---------------------------------------------------------------------- > Add this to serverchild.c: > > + #define _BSD_SOCKLEN_T_ > #include <sys/socket.h> > > That makes it compile. But then I get a link error (could be specific to > SourceForge's Compile Farm machine, but I don't know): > > /bin/sh ./libtool --mode=link gcc -fomit-frame-pointer -g -O2 -W -Wall > -Wpointer-arith -Wstrict-prototypes -o libdbmail.la -rpath /usr/local/lib > config.lo debug.lo list.lo dbmd5.lo md5.lo db.lo misc.lo mime.lo > pidfile.lo dm_getopt.lo server.lo serverchild.lo pool.lo header.lo pipe.lo > forward.lo dsn.lo mysql/libmysqldbmail.la sort/libsortdbmail.la > auth/libauthdbmail.la -L'/usr/lib/mysql' -lmysqlclient -lz -lm > gcc -dynamiclib -flat_namespace -undefined suppress -o > .libs/libdbmail.0.0.0 .libs/config.o .libs/debug.o .libs/list.o > .libs/dbmd5.o .libs/md5.o .libs/db.o .libs/misc.o .libs/mime.o > .libs/pidfile.o .libs/dm_getopt.o .libs/server.o .libs/serverchild.o > .libs/pool.o .libs/header.o .libs/pipe.o .libs/forward.o .libs/dsn.o > -all_load /usr/lib/mysql/libmysqlclient.a mysql/.libs/libmysqldbmail > sort/.libs/libsortdbmail auth/.libs/libauthdbmail -L/usr/lib/mysql -lz -lm > -install_name /usr/local/lib/libdbmail.0 -compatibility_version 1 > -current_version 1.0 > ld: common symbols not allowed with MH_DYLIB output format with the > -multi_module option > /usr/lib/mysql/libmysqlclient.a(my_error.o) definition of common _errbuff > (size 512) > /usr/bin/libtool: internal link edit command failed > make[2]: *** [libdbmail.la] Error 1 > > ---------------------------------------------------------------------- > aaron - 12-Apr-05 01:21 CEST > ---------------------------------------------------------------------- > Does somebody have a Mac OS X machine that they develop on? I have > absolutely no idea what I'm looking at there. The dynamic linker appears > to be through Mach, and is a very different animal than Unix ld... > > Bug History > Date Modified Username Field Change > ====================================================================== > 25-Mar-05 18:35aaron New Bug > 26-Mar-05 21:40aaron Bugnote Added: 0000636 > 12-Apr-05 01:21aaron Bugnote Added: 0000658 > ====================================================================== > _______________________________________________ > Dbmail-dev mailing list > [email protected] > http://twister.fastxs.net/mailman/listinfo/dbmail-dev -- Internet Connection High Quality Web Hosting http://www.internetconnection.net/
