On Wed, Jan 26, 2011 at 4:45 PM, Marcus Comstedt (ACROSS) (Hail Ilpalazzo!) @ Pike (-) developers forum 10353@lyskom.lysator.liu.se wrote:
Hi. This code seems to depend on Linux-specific header files:
We have worked on that and got it to compile under a virtual FreeBSD 8.1 on a amd64 machine. During this process, we discovered an imcompatibility with GCC 4.2 and resolved that, too. The code is pushed to http://fortranland.com/git/pike.
Unfortunately, the Pike build as a whole does not work on FreeBSD - but this does not depend on whether post_modules/CritBit is in the source tree or not. The CritBits compile without any error or warning. Pike fails to build with the following issue there:
Compiling module.c /usr/home/dev/hash/pike/build/freebsd-8.1-release-amd64/smartlink gcc -DPIKE_SRC_ROOT="/usr/home/dev/hash/pike" -I. -I/usr/home/dev/hash/pike/src -I/usr/home/dev/hash/pike/build/freebsd-8.1-release-amd64/bundles/include -I/usr/local/include -DPIKE_CORE -g -ggdb3 -pthread -O3 -pipe -W -Wall -Wno-unused -Wcomment -Wformat -Wimplicit-function-declaration -Wmultichar -Wswitch -Wuninitialized -Wpointer-arith -Wchar-subscripts -Wno-long-long -Wdeclaration-after-statement -L/usr/home/dev/hash/pike/build/freebsd-8.1-release-amd64/bundles/lib64 -L/usr/home/dev/hash/pike/build/freebsd-8.1-release-amd64/bundles/lib/64 -L/usr/home/dev/hash/pike/build/freebsd-8.1-release-amd64/bundles/lib/. -L/usr/local/lib -R/usr/local/lib -pthread -rdynamic main.o language.o security.o bignum.o pike_cpulib.o interpret.o constants.o cpp.o fdlib.o cyclic.o array.o backend.o callback.o encode.o docode.o dynamic_buffer.o dynamic_load.o error.o fd_control.o fsort.o gc.o hashtable.o lex.o multiset.o signal_handler.o pike_search.o pike_types.o pike_embed.o mapping.o pike_memory.o module_support.o pikecode.o object.o opcodes.o operators.o pike_float.o port.o program.o rbtree.o rusage.o sscanf.o stralloc.o stuff.o threads.o version.o queue.o builtin.o iterators.o facetgroup.o svalue.o las.o builtin_functions.o peep.o module.o `cat modules/linker_options post_modules/linker_options` -lrt -lm -lcrypt -o pike /usr/home/dev/hash/pike/src/object.c:695: Fatal error: Couldn't load master object. No stack - no backtrace. *** Signal 6
Pike from /usr/ports/lang/pike78 compiled fine. More analysis on the Pike build issue is not available as of now, unfortunately.
Thanks!