
I am __OpenBSD__ for sure:
/* test.c */
#if defined(__OpenBSD__)
#include
Michael.
thanks for digging this up!
The "old" patch [1] is actually still in the code, but it does only avoid the use of sysctlbyname() to find out he number of processores/cores in MT_check_nr_cores() (gdk/gdk_system.mx) --- provided (your) OpenBSD indeed defined __OpenBSD__, and not any of __FreeBSD__, __NetBSD__, __MACH__, ...
However, there are two more calls to sysctlbyname() in MT_init() (gdk/gdk_utils.mx) to find out the pagsize, and one of these might trigger the linking problem in your case, i.e., the respective checks there are necessary but not sufficient ...
I know to little about the matter to dig further myself, but maybe the above helps Fabian to go on ...
Stefan
[1] http://dev.monetdb.org/hg/MonetDB/rev/df23faf73516
On Thu, May 05, 2011 at 08:44:37PM +0300, Michael Sioutis wrote:
Ok, sysctlbyname() is NOT Implemented in OpenBSD for sure. The man page I was reading and posted here was about NetBSD.. There is a bug report about this in MonetDB mail archive, and a patch which somehow got lost in the way to current revision (?). http://www.mail-archive.com/monetdb-bugs@lists.sourceforge.net/msg06075.html
So you don't need to revert any changes, apparently -lc is good for FreeBSD and NetBSD (I double checked it), but not for OpenBSD. Just maybe change the title "build: allow to resolve sysctl funcs on FreeBSD/NetBSD"
On Thu, May 5, 2011 at 6:01 PM, Michael Sioutis
wrote: This is with: C_LIBS="-lc"
gcc -g -O2 -Wno-declaration-after-statement -D_REENTRANT -o .libs/mserver5 mserver5.o monet_version.o -pthread -pthread -Wl,-E -L/home/pico/MonetDB/BUILD/gdk/.libs -L/home/pico/MonetDB/BUILD/clients/mapilib/.libs -L/home/pico/MonetDB/BUILD/common/stream/.libs -L../../monetdb5/tools/.libs -lmonetdb5 -L/usr/local/lib -lmapi -lreadline -ltermcap -lxml2 -lpthread -lm -L../../gdk/.libs -lbat -lstream -pthread -lcurl -lidn -lz -lintl -liconv -lpcre -lssl -lcrypto -Wl,-rpath,/home/pico/MonetDB-Apr2011/lib -Wl,-rpath,/usr/local/lib /home/pico/MonetDB/BUILD/gdk/.libs/libbat.so.3.0: warning: vsprintf() is often misused, please use vsnprintf() ../../monetdb5/tools/.libs/libmonetdb5.so.7.0: warning: strcpy() is almost always misused, please use strlcpy() mserver5.o(.text+0x5b3): In function `absolute_path': ../../../tools/mserver/mserver5.c:160: warning: sprintf() is often misused, please use snprintf() ../../monetdb5/tools/.libs/libmonetdb5.so.7.0: warning: strcat() is almost always misused, please use strlcat() /home/pico/MonetDB/BUILD/gdk/.libs/libbat.so.3.0: undefined reference to `sysctlbyname' collect2: ld returned 1 exit status
Same error and no sign of -lc
On Thu, May 5, 2011 at 5:14 PM, Michael Sioutis
wrote: I remember I did bootstrap again after modifying congifure.ag, but I'm in the process of cleaning up everything and trying again.
On Thu, May 5, 2011 at 5:08 PM,
wrote: On Thu, May 05, 2011 at 05:00:34PM +0300, Michael Sioutis wrote:
Nop:
gcc -g -O2 -Wno-declaration-after-statement -D_REENTRANT -o .libs/mserver5 mserver5.o monet_version.o -pthread -pthread -Wl,-E -L/home/pico/MonetDB/BUILD/gdk/.libs -L/home/pico/MonetDB/BUILD/clients/mapilib/.libs -L/home/pico/MonetDB/BUILD/common/stream/.libs -L../../monetdb5/tools/.libs -lmonetdb5 -L/usr/local/lib -lmapi -lreadline -ltermcap -lxml2 -lpthread -lm -L../../gdk/.libs -lbat -lstream -pthread -lcurl -lidn -lz -lintl -liconv -lpcre -lssl -lcrypto -Wl,-rpath,/home/pico/MonetDB-Apr2011/lib -Wl,-rpath,/usr/local/lib /home/pico/MonetDB/BUILD/gdk/.libs/libbat.so.3.0: warning: vsprintf() is often misused, please use vsnprintf() ../../monetdb5/tools/.libs/libmonetdb5.so.7.0: warning: strcpy() is almost always misused, please use strlcpy() mserver5.o(.text+0x5b3): In function `absolute_path': ../../../tools/mserver/mserver5.c:160: warning: sprintf() is often misused, please use snprintf() ../../monetdb5/tools/.libs/libmonetdb5.so.7.0: warning: strcat() is almost always misused, please use strlcat() /home/pico/MonetDB/BUILD/gdk/.libs/libbat.so.3.0: undefined reference to `sysctlbyname' collect2: ld returned 1 exit status gmake[5]: *** [mserver5] Error 1
I /de-bootstraped, reconfigured and later even placed C_LIBS="-lc" in configure.ag, reconfigured, gmaked, ...same error. I thought that would do it.
I assume you ran ./bootstrap after ./de-bootstrap and before configure, right? (well, ./de-bootstrap removed configure; only ./bootstrap creates it, again ...)
Did you also re-run ./bootstrap after modifying configure.ag? ./bootstrap always needs to be run after changes to any *.ag file(s), otherwise those changes are not effective ...
Stefan
On Thu, May 5, 2011 at 3:08 PM, Fabian Groffen
wrote: > On 05-05-2011 13:50:29 +0200, Fabian Groffen wrote: >> On 05-05-2011 14:33:30 +0300, Michael Sioutis wrote: >> > Ah yes, sorry about that, forgot to include it: >> > >> > gcc -g -O2 -Wno-declaration-after-statement -D_REENTRANT -o >> > .libs/mserver5 mserver5.o monet_version.o -pthread -pthread -Wl,-E >> > -L/home/pico/MonetDB/BUILD/gdk/.libs >> > -L/home/pico/MonetDB/BUILD/clients/mapilib/.libs >> > -L/home/pico/MonetDB/BUILD/common/stream/.libs >> > -L../../monetdb5/tools/.libs -lmonetdb5 -L/usr/local/lib -lmapi >> > -lreadline -ltermcap -lxml2 -lpthread -lm -L../../gdk/.libs -lbat >> > -lstream -pthread -lcurl -lidn -lz -lintl -liconv -lpcre -lssl >> > -lcrypto -Wl,-rpath,/home/pico/MonetDB-Apr2011/lib >> > -Wl,-rpath,/usr/local/lib >> > >> > It should be ... -lpthread <HERE> -lm ... >> >> Ok, seems I forgot all indirect consumers :/ > > Ok, I hope this commit will do: > http://dev.monetdb.org/hg/MonetDB/rev/58ca3da52d10 > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > MonetDB-users mailing list > MonetDB-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/monetdb-users > ------------------------------------------------------------------------------ WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd _______________________________________________ MonetDB-users mailing list MonetDB-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-users
-- | Stefan.Manegold @ CWI.nl | DB Architectures (INS1) | | http://CWI.nl/~manegold/ | Science Park 123 (L321) | | Tel.: +31 (0)20 592-4212 | 1098 XG Amsterdam (NL) |
------------------------------------------------------------------------------ WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd _______________________________________________ MonetDB-users mailing list MonetDB-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-users
------------------------------------------------------------------------------ WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd _______________________________________________ MonetDB-users mailing list MonetDB-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-users
-- | Stefan.Manegold @ CWI.nl | DB Architectures (INS1) | | http://CWI.nl/~manegold/ | Science Park 123 (L321) | | Tel.: +31 (0)20 592-4212 | 1098 XG Amsterdam (NL) |
------------------------------------------------------------------------------ WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd _______________________________________________ MonetDB-users mailing list MonetDB-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-users