snowcrash
2007-Dec-31 06:02 UTC
[Dovecot] 1.1b13 build in FreeBSD fails using 'make'; 'gmake' apparently required
hi, i'm doing a 1st build of dovecot in a freebsd 62R jail. following instructions at http://wiki.dovecot.org/CompilingSource ./configure make sudo make install after an OK 'configure', @ 'make', i get make make all-recursive Making all in src Making all in lib make: don't know how to make unicodemap.c. Stop *** Error code 1 Stop in /s/usr-local/build/dovecot/dovecot/src. *** Error code 1 Stop in /s/usr-local/build/dovecot/dovecot. *** Error code 1 Stop in /s/usr-local/build/dovecot/dovecot. looking at source, i couldn't figure this out ... on a whim, i tried 'gmake', instead of 'make'. it completes without error. subsequent make check make install are both ok, resulting in ls -al dovecot -rwxr-xr-x 1 root wheel 459786 Dec 30 21:53 dovecot* ./dovecot --version 1.1.beta13 on FreeBSD, apparently, make != gmake ls -al `which make` `which gmake` -r-xr-xr-x 1 root wheel 350904 Dec 29 17:25 /usr/bin/make* -r-xr-xr-x 1 root wheel 199808 Dec 27 06:14 /usr/local/bin/gmake* make --version make: illegal option -- - usage: make [-BPSXeiknqrstv] [-C directory] [-D variable] [-d flags] [-E variable] [-f makefile] [-I directory] [-j max_jobs] [-m directory] [-V variable] [variable=value] [target ...] gmake --version GNU Make 3.81 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This program built for amd64-portbld-freebsd6.2 so, using 'gmake' seems to solve the issue. neither at the link above, nor at, http://wiki.dovecot.org/DovecotServerInstallations/FreeBSD/6.0RELEASE/20Users?highlight=(freebsd) is the use of 'gmake'mentioned. i'd ask/suggest that either said mention be added to the wiki (if it's not already there, and i missed it), or, that the build be made to be FreeBSD-make friendly. hth. cheers!
Gerard
2007-Dec-31 11:49 UTC
[Dovecot] 1.1b13 build in FreeBSD fails using 'make'; 'gmake' apparently required
On Sun, 30 Dec 2007 22:02:42 -0800 snowcrash <schneecrash+dovecot at gmail.com> wrote:> hi, > > i'm doing a 1st build of dovecot in a freebsd 62R jail. > > following instructions at > > http://wiki.dovecot.org/CompilingSource > > ./configure > make > sudo make install > > after an OK 'configure', @ 'make', i get > > make > make all-recursive > Making all in src > Making all in lib > make: don't know how to make unicodemap.c. Stop > *** Error code 1 > > Stop in /s/usr-local/build/dovecot/dovecot/src. > *** Error code 1 > > Stop in /s/usr-local/build/dovecot/dovecot. > *** Error code 1 > > Stop in /s/usr-local/build/dovecot/dovecot. > > looking at source, i couldn't figure this out ... > > on a whim, i tried 'gmake', instead of 'make'. it completes without > error. > > subsequent > > make check > make install > > are both ok, resulting in > > ls -al dovecot > -rwxr-xr-x 1 root wheel 459786 Dec 30 21:53 > dovecot* ./dovecot --version > 1.1.beta13 > > on FreeBSD, apparently, make != gmake > > ls -al `which make` `which gmake` > -r-xr-xr-x 1 root wheel 350904 Dec 29 > 17:25 /usr/bin/make* -r-xr-xr-x 1 root wheel 199808 Dec 27 > 06:14 /usr/local/bin/gmake* > > make --version > make: illegal option -- - > usage: make [-BPSXeiknqrstv] [-C directory] [-D > variable] [-d flags] [-E variable] [-f makefile] [-I directory] > [-j max_jobs] [-m directory] [-V variable] > [variable=value] [target ...] > > gmake --version > GNU Make 3.81 > Copyright (C) 2006 Free Software Foundation, Inc. > This is free software; see the source for copying > conditions. There is NO warranty; not even for MERCHANTABILITY or > FITNESS FOR A PARTICULAR PURPOSE. > > This program built for amd64-portbld-freebsd6.2 > > so, using 'gmake' seems to solve the issue. > > neither at the link above, nor at, > > http://wiki.dovecot.org/DovecotServerInstallations/FreeBSD/6.0RELEASE/20Users?highlight=(freebsd) > > is the use of 'gmake'mentioned. > > i'd ask/suggest that either said mention be added to the wiki (if it's > not already there, and i missed it), or, that the build be made to be > FreeBSD-make friendly.I use FreeBSD, although I have never attempted to run Dovecot in a jail. Might I suggest the following: 1) Contact the Dovecot port maintainer and inform him/her of your problem. They may not be aware of it, or it might be something else. 2) File a 'send-pr' so that the matter can be looked at more closely by FreeBSD personnel. 3) You might try inquiring on the FreeBSD forum to see what other FBSD users have to offer. -- Gerard gerard at seibercom.net Yesterday I was a dog. Today I'm a dog. Tomorrow I'll probably still be a dog. Sigh! There's so little hope for advancement. Snoopy -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 187 bytes Desc: not available URL: <http://dovecot.org/pipermail/dovecot/attachments/20071231/f2243ca2/attachment-0002.bin>
Riemer Palstra
2007-Dec-31 11:56 UTC
[Dovecot] 1.1b13 build in FreeBSD fails using 'make'; 'gmake' apparently required
On Mon, Dec 31, 2007 at 06:49:53AM -0500, Gerard wrote:> Might I suggest the following: > > 1) Contact the Dovecot port maintainer and inform him/her of your > problem. They may not be aware of it, or it might be something else.But isn't the problem that the OP is *not* using the port? Assuming that e.g. make will always be GNU make, or tar always being GNU tar, isn't the best bet on most platforms. -- Riemer Palstra riemer at palstra.com "I reject your reality and substitute my own!"
Timo Sirainen
2008-Jan-01 16:57 UTC
[Dovecot] 1.1b13 build in FreeBSD fails using 'make'; 'gmake' apparently required
On Sun, 2007-12-30 at 22:02 -0800, snowcrash wrote:> make > make all-recursive > Making all in src > Making all in lib > make: don't know how to make unicodemap.c. StopI can't reproduce this with FreeBSD 6.2. unicodemap.c is distributed in the tarball, so I don't know why it would give that error. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20080101/46724108/attachment-0002.bin>
snowcrash
2008-Jan-01 19:42 UTC
[Dovecot] 1.1b13 build in FreeBSD fails using 'make'; 'gmake' apparently required
> I can't reproduce this with FreeBSD 6.2. unicodemap.c is distributed in > the tarball, so I don't know why it would give that error.it's fully reproducible here. note that i'm not using the tarball. rather, pulling the hg 11b13 tag clone. there, there's apparently *no* unicodemap.c included: find . | grep unicodemap ./dovecot/.hg/store/data/src/lib/unicodemap.pl.i ./dovecot/src/lib/unicodemap.pl on two separate FreeBSD 6.2 boxes (1) host w/ jail (2) standalone host doing, cd /usr/local/build rm -rf dovecot* mkdir -p dovecot cd dovecot hg clone -r1.1.beta13 http://hg.dovecot.org/dovecot hg clone -r1.1.2 http://hg.dovecot.org/dovecot-sieve-1.1 cd /usr/local/build/dovecot/dovecot unsetenv CFLAGS CPPFLAGS CXX CXXFLAGS LDFLAGS LDDLFLAGS LIBS LD_PREBIND \ EXTRA_LDFLAGS EXTRA_LIBS ACLOCAL AUTOHEADER AUTOMAKE AUTOCONF setenv LDFLAGS "-L/usr/local/lib/db46 -L/usr/local/lib/mysql -L/usr/local/lib -lpthread" setenv CPPFLAGS "-I/usr/local/include/db46 -I/usr/local/include/mysql -I/usr/local/include" setenv SQL_LIBS "-lsqlite3" clear ./configure \ --prefix=/usr/local \ --sysconfdir=/usr/local/etc/dovecot \ --with-moduledir=/usr/local/dovecot-plugins \ --with-libiconv-prefix=/usr/local \ --with-ssl=openssl --with-ssldir=/var/ssh/MAIL_CERTS \ --disable-static --enable-shared \ --config-cache \ --disable-debug --enable-maintainer-mode \ --enable-ipv6 \ --with-db \ --with-mysql \ --with-sqlite \ --with-ioloop=best \ --with-sql-drivers=mysql,sqlite \ --with-deliver \ --with-pop3d \ --with-storages=maildir,mbox,dbox,cydir,raw then make yields on BOTH boxes, make all-recursive Making all in src Making all in lib make: don't know how to make unicodemap.c. Stop *** Error code 1 Stop in /s/usr-local/build/dovecot/dovecot/src. *** Error code 1 Stop in /s/usr-local/build/dovecot/dovecot. *** Error code 1 Stop in /s/usr-local/build/dovecot/dovecot. whereas, again on both boxes, gmake reports, gmake all-recursive gmake[1]: Entering directory `/usr/local/build/dovecot/dovecot' Making all in src gmake[2]: Entering directory `/usr/local/build/dovecot/dovecot/src' Making all in lib gmake[3]: Entering directory `/usr/local/build/dovecot/dovecot/src/lib' test -f UnicodeData.txt || wget http://www.unicode.org/Public/UNIDATA/UnicodeData.txt UnicodeData.txt 100% of 1014 kB 236 kBps perl ./unicodemap.pl < UnicodeData.txt > unicodemap.c gmake all-am gmake[4]: Entering directory `/usr/local/build/dovecot/dovecot/src/lib' ... and completes without error. noting, ls -al `which make` `which gmake` -r-xr-xr-x 1 root wheel 350904 Dec 21 13:50 /usr/bin/make* -r-xr-xr-x 1 root wheel 199808 Dec 21 16:51 /usr/local/bin/gmake*