external modules do not build when using pike coming with roxen5
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=4860
Reported by Arne Goedeke roxen@laramies.com
the source distribution of roxen5 ends up with a pike that has the srcdir argument set in the specs. that srcdir parameter ends up as an argument to configure when trying to build cmods. some sample output:
/home/el/local/roxen/server-5.0.381/pike/bin/pike -x module --query=specs ([ /* 7 elements */ "CC": "/home/el/local/roxen/server-5.0.381/pike/include/pike/smartlink gcc", "CFLAGS": " -g -ggdb3 -mtune=i686", "CPP": "gcc -E", "CPPFLAGS": " -I/home/el/tmp/roxen-5.0.381-src/pike/src/bundles/include", "LDFLAGS": " -L/home/el/tmp/roxen-5.0.381-src/pike/src/bundles/lib32 -L/home/el/tmp/roxen-5.0.381-src/pike/src/bundles/lib/32 -L/home/el/tmp/roxen-5.0.381-src/pike/src/bundles/lib/. -L/usr/lib/gcc/i686-pc-linux-gnu/4.1.2 -R/usr/lib/gcc/i686-pc-linux-gnu/4.1.2 -L/usr/i686-pc-linux-gnu/lib", "LDSHARED": "gcc -shared ", "configure_args": "'--prefix=/home/el/local/' '--cache-file=../.././config.cache' '--srcdir=/home/el/tmp/roxen-5.0.381-src/pike/src'" ])
when trying to do a pike -x module
/home/el/local/roxen/server-5.0.381/pike/bin/pike -x module ** Old style module ** Running configure (with extra compat args) ./configure --cache-file=./config.cache --prefix=/home/el/local/ --cache-file=../.././config.cache --srcdir=/home/el/tmp/roxen-5.0.381-src/pike/src configure: error: cannot find sources (json_mapping.c) in /home/el/tmp/roxen-5.0.381-src/pike/src