Jerry K
2010-Sep-12 03:12 UTC
[Dovecot] dovecot 2.0.2 compile issues on Solaris 10u8 Sparc
I am having compile problems with Dovecot v2.0.2 on a well patched Solaris 10u8 Sparc system using the included gcc compiler. Version 2.0.0 compiled with out any issues using the same configure syntax. My ./configure syntax looks like this: ./configure --with-ssl=openssl --with-shadow Yahoo and Google searches turned up nothing for me. Reviewing the file mountpoint.c between version 2.0.0 and 2.0.2 shows the files to be identical, so I have a problem somewhere else, I am just not sure where. TIA for any pointers, Jerry \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -I/usr/sfw/include -MT module-dir.lo -MD -MP -MF .deps/module-dir.Tpo -c -o module-dir.lo module-dir.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -I/usr/sfw/include -MT module-dir.lo -MD -MP -MF .deps/module-dir.Tpo -c module-dir.c -fPIC -DPIC -o .libs/module-dir.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -I/usr/sfw/include -MT module-dir.lo -MD -MP -MF .deps/module-dir.Tpo -c module-dir.c -o module-dir.o >/dev/null 2>&1 mv -f .deps/module-dir.Tpo .deps/module-dir.Plo /bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -I/usr/sfw/include -MT mountpoint.lo -MD -MP -MF .deps/mountpoint.Tpo -c -o mountpoint.lo mountpoint.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -I/usr/sfw/include -MT mountpoint.lo -MD -MP -MF .deps/mountpoint.Tpo -c mountpoint.c -fPIC -DPIC -o .libs/mountpoint.o mountpoint.c: In function `mountpoint_get': mountpoint.c:88: error: field `ent' has incomplete type mountpoint.c:89: error: field `ext' has incomplete type mountpoint.c:172: warning: implicit declaration of function `resetmnttab' mountpoint.c:173: warning: implicit declaration of function `getextmntent' mountpoint.c:174: warning: implicit declaration of function `hasmntopt' make[4]: *** [mountpoint.lo] Error 1 make[4]: Leaving directory `/usr/local/src/d/dovecot-2.0.2/src/lib' make[3]: *** [all] Error 2 make[3]: Leaving directory `/usr/local/src/d/dovecot-2.0.2/src/lib' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/local/src/d/dovecot-2.0.2/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/d/dovecot-2.0.2' make: *** [all] Error 2
Timo Sirainen
2010-Sep-13 10:15 UTC
[Dovecot] dovecot 2.0.2 compile issues on Solaris 10u8 Sparc
On Sat, 2010-09-11 at 22:12 -0500, Jerry K wrote:> I am having compile problems with Dovecot v2.0.2 on a well patched > Solaris 10u8 Sparc system using the included gcc compiler. > > Version 2.0.0 compiled with out any issues using the same configure > syntax.And it still compiles (i.e. you didn't do an OS upgrade since then)?> mountpoint.c:88: error: field `ent' has incomplete type > mountpoint.c:89: error: field `ext' has incomplete type > mountpoint.c:172: warning: implicit declaration of function `resetmnttab'These should be defined in sys/mnttab.h. Is there anything different in config.h between 2.0.0 and 2.0.2? If all else fails, you'll find the patchset that breaks it.. Maybe http://mercurial.selenic.com/wiki/BisectExtension helps.
Jerry Kemp
2010-Sep-13 14:35 UTC
[Dovecot] dovecot 2.0.2 compile issues on Solaris 10u8 Sparc
It appears that file mntent.h is installed as part of package SUNWhea . Jerry .................................................................. # grep mntent.h /var/sadm/install/contents /usr/include/sys/mntent.h f none 0644 root bin 6831 16814 1252633432 SUNWhea v120 /var/sadm/install 425 # ls -l /usr/include/sys/mntent.h -rw-r--r-- 1 root bin 6831 Sep 10 2009 /usr/include/sys/mntent.h v120 /var/sadm/install 426 # cat /etc/release Solaris 10 10/09 s10s_u8wos_08a SPARC Copyright 2009 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms. Assembled 16 September 2009 v120 /var/sadm/install 427 # On 09/13/10 09:21, Timo Sirainen wrote:> On Mon, 2010-09-13 at 09:10 -0500, Jerry Kemp wrote: > >> < #define HAVE_MNTENT_H 1 >> --- >>> /* #undef HAVE_MNTENT_H */ > > This is unexpected. Where did you get mntent.h? It was supposed to exist > only in Linux.. >