To be complete: 1) Install port misc/getopt-1.1.3_1 2) extract dbmail, goto extracted dir 3) mv dm_getopt.h dm_getopt.h.ORIG 4) ln -s /usr/local/include/getopt.h ./dm_getopt.h 5) ./configure 6) gmake 7) backup your dbmail execs 8) gmake install 9) start dbmail daemons (lmtpd first)
Anne > Hi, > > I checked /usr/include, there's no getopt.h > But I tried another port: misc/getopt-1.1.3_1 > > Now it makes and installs fine! > > thanks, > Anne > > >> On my Mac OS X system (10.3.8) I had the same problem compiling dbmail >> 2.0.4 >> >> The solution suggested by Mike O'Brien works for me, only the path to >> getopt.h is wrong >> >> Replace /usr/local/include/getopt.h by /usr/include/getopt.h >> >> >> Since Mac OS X is based upon FreeBSD the file could be in the same >> location >> >> I found the solution on the developer mailing list by the way >> http://mailman.fastxs.net/pipermail/dbmail-dev/2005-March/006498.html >> >> Hope this helps >> >> Eelko >> >> On 19 Mar 2005, at 17:02, Anne Strikwerda wrote: >> >>> Hi, >>> >>> /usr/local/include/getopt.h didn't exist on my system so I tried to be >>> smart and installed the devel/libgnugetopt-1.2 port. >>> >>> Now gmake stops here: >>> >>> creating dbmail-smtp >>> gcc -DHAVE_CONFIG_H -I. -I. -I. -fomit-frame-pointer -g -O2 -W -Wall >>> -Wpointer-arith -Wstrict-prototypes -c pop3.c >>> 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:112: conflicting types for `dm_getopt' >>> dm_getopt.h:66: previous declaration of `dm_getopt' >>> gmake[2]: *** [pop3d.o] Error 1 >>> gmake[2]: Leaving directory `/usr/progs/dbmail-2.0.4' >>> gmake[1]: *** [all-recursive] Error 1 >>> gmake[1]: Leaving directory `/usr/progs/dbmail-2.0.4' >>> gmake: *** [all-recursive-am] Error 2 >>> >>> >>> >>> >>>> You must have a GNU-like variant of getopt, something that >>>> was not native on 4.9. >>>> >>>> Try this... >>>> >>>> mv dm_getopt.h dm_getopt.h.ORIG >>>> ln -s /usr/local/include/getopt.h ./dm_getopt.h >>>> >>>> >>>> mike >>>> >>>> >>>> >>>> I have exactly the same errors on FreeBSD 4.9 >>>> >>>> Anne >>>> >>>>> I download dbmail-2.0.4 from site and try to build: >>>>> PATH=/opt/mysql/bin:$PATH >>>>> >>>>> ../configure \ >>>>> --prefix=/opt/dbmail \ >>>>> --with-mysql=/opt/mysql >>>>> >>>>> configuring was successfull, but gmake: >>>>> >>>>> In file included from misc.h:32, >>>>> from pop3d.c:41: >>>>> /usr/include/unistd.h:112: conflicting types for >>>>> `dm_getopt' >>>>> dm_getopt.h:66: previous declaration of `dm_getopt' >>>>> gmake[2]: *** [pop3d.o] error 1 >>>>> gmake[2]: Leaving directory >>>>> `/usr/home/goodwin/src/dbmail-2.0.4' >>>>> gmake[1]: *** [all-recursive] error 1 >>>>> gmake[1]: Leaving directory >>>>> `/usr/home/goodwin/src/dbmail-2.0.4' >>>>> gmake: *** [all-recursive-am] error 2 >>>>> >>>>> How fix it? >>>>> OS: 4.11-STABLE FreeBSD >>>>> older releases build without any troubles >>>>> >>>>> _______________________________________________ >>>>> Dbmail mailing list >>>>> [email protected] >>>>> https://mailman.fastxs.nl/mailman/listinfo/dbmail >>>>> >>>> >>>> >>>> _______________________________________________ >>>> Dbmail mailing list >>>> [email protected] >>>> https://mailman.fastxs.nl/mailman/listinfo/dbmail >>>> >>>> _______________________________________________ >>>> Dbmail mailing list >>>> [email protected] >>>> https://mailman.fastxs.nl/mailman/listinfo/dbmail >>>> >>> >>> >>> _______________________________________________ >>> Dbmail mailing list >>> [email protected] >>> https://mailman.fastxs.nl/mailman/listinfo/dbmail >>> >> >> _______________________________________________ >> Dbmail mailing list >> [email protected] >> https://mailman.fastxs.nl/mailman/listinfo/dbmail >> > > > _______________________________________________ > Dbmail mailing list > [email protected] > https://mailman.fastxs.nl/mailman/listinfo/dbmail >
