A BUGNOTE has been added to this bug. ====================================================================== http://www.dbmail.org/mantis/bug_view_advanced_page.php?bug_id=0000177 ====================================================================== Reported By: mobrien Assigned To: ====================================================================== Project: DBMail Bug ID: 177 Category: Authentication layer Reproducibility: always Severity: major Priority: normal Status: new ====================================================================== Date Submitted: 26-Feb-05 23:50 CET Last Modified: 01-Mar-05 18:32 CET ====================================================================== Summary: Compile Fails - FBSD users Unable to build Dbmail latest Description: compile fails on [snip] gcc -DHAVE_CONFIG_H -I. -I. -I. -fomit-frame-pointer -g -O2 -W -Wall -Wpointer-arith -Wstrict-prototypes -c pop3d.c In file included from misc.h:32, from pop3d.c:41: /usr/include/unistd.h:376: error: conflicting types for 'dm_getopt' dm_getopt.h:62: error: previous declaration of 'dm_getopt' was here /usr/include/unistd.h:376: error: conflicting types for 'dm_getopt' dm_getopt.h:62: error: previous declaration of 'dm_getopt' was here [snip] ======================================================================
---------------------------------------------------------------------- mobrien - 26-Feb-05 23:53 CET ---------------------------------------------------------------------- Category "GENERAL" (sri) ---------------------------------------------------------------------- mobrien - 01-Mar-05 15:44 CET ---------------------------------------------------------------------- FBSD 5.3 Line 374-376 re:getopt Offending line is 376 374 | #ifndef _GETOPT_DECLARED 375 | #define _GETOPT_DECLARED 376 | int getopt(int, char * const [], const char *); Also: FBSD 4.10 error message = [snip] In file included from misc.h:32, from pop3d.c:41: /usr/include/unistd.h:112: conflicting types for `dm_getopt' [snip] where /usr/include/unistd.h is like this: 110 |extern char *optarg; /* getopt(3) external variables */ 111 |extern int optind, opterr, optopt; 112 | int getopt __P((int, char * const [], const char *)); ---------------------------------------------------------------------- aaron - 01-Mar-05 18:32 CET ---------------------------------------------------------------------- I don't have access to a FreeBSD 5.x machine, so if you can figure this out, please send a patch. Basically you need to take a look into db_getopt.h, configure.in, acincludes.m4 to see if the tests for GNU-style getopt are correct for FreeBSD 5.3. This has all been tested on FreeBSD 4.7 and OpenBSD 3.6, but apparently FreeBSD 5.x is doing something differently! Bug History Date Modified Username Field Change ====================================================================== 26-Feb-05 23:50mobrien New Bug 26-Feb-05 23:53mobrien Bugnote Added: 0000591 01-Mar-05 15:44mobrien Bugnote Added: 0000592 01-Mar-05 18:32aaron Bugnote Added: 0000593 ======================================================================