Hobbit dependencies on Solaris 10.
Hello guys,
I've played with BB for years but I'm new to hobbit. I'm trying to install 4.2.0 on a box running Solaris 10 x86 1/06 (Core installation).
I've religiously added gcc, gmake, fping, rrdtool but I'm getting stuck on pcre.
- If I do a pkgadd from SunFreeware, it installs ok but hobbit configure quits with:
<snip>
Checking for PCRE ...
test-pcre.c: In function main': test-pcre.c:8: error: NULL' undeclared (first use in this function)
test-pcre.c:8: error: (Each undeclared identifier is reported only once
test-pcre.c:8: error: for each function it appears in.)
make: *** [test-compile] Error 1
ERROR: PCRE include files found in /usr/local/include, but compile fails.
- If I try to compile pcre from source, configure goes ok, but make returns the following:
make
/bin/bash ./libtool --mode=compile gcc -c -g -O2 -I. -I. ./maketables.c
mkdir .libs
gcc -c -g -O2 -I. -I. ./maketables.c -fPIC -DPIC -o maketables.o
mv -f maketables.o .libs/maketables.lo
gcc -c -g -O2 -I. -I. ./maketables.c -o maketables.o >/dev/null 2>&1
mv -f .libs/maketables.lo maketables.lo
/bin/bash ./libtool --mode=compile gcc -c -g -O2 -I. -I. ./get.c
rm -f .libs/get.lo
gcc -c -g -O2 -I. -I. ./get.c -fPIC -DPIC -o get.o
mv -f get.o .libs/get.lo
gcc -c -g -O2 -I. -I. ./get.c -o get.o >/dev/null 2>&1
mv -f .libs/get.lo get.lo
/bin/bash ./libtool --mode=compile gcc -c -g -O2 -I. -I. ./study.c
rm -f .libs/study.lo
gcc -c -g -O2 -I. -I. ./study.c -fPIC -DPIC -o study.o
mv -f study.o .libs/study.lo
gcc -c -g -O2 -I. -I. ./study.c -o study.o >/dev/null 2>&1
mv -f .libs/study.lo study.lo
gcc -c -g -O2 -I. ./dftables.c
/bin/bash ./libtool --mode=link gcc -g -O2 -I. -I. -o dftables dftables.o
gcc -g -O2 -I. -I. -o dftables dftables.o
./dftables ./chartables.c
/bin/bash ./libtool --mode=compile gcc -c -g -O2 -I. -I.
-DPOSIX_MALLOC_THRESHOLD=10 ./pcre.c
rm -f .libs/pcre.lo
gcc -c -g -O2 -I. -I. -DPOSIX_MALLOC_THRESHOLD=10 ./pcre.c -fPIC -DPIC -o
pcre.o
pcre.c:355: error: malloc' undeclared here (not in a function) pcre.c:356: error: free' undeclared here (not in a function)
pcre.c:357: error: malloc' undeclared here (not in a function) pcre.c:358: error: free' undeclared here (not in a function)
make: *** [pcre.o] Error 1
What am I missing here?
Thanks in advance
Loris
BT Communications Ireland Limited is a wholly owned subsidiary of BT Group plc Registered in Ireland, Registration No. 141524 Grand Canal Plaza, Upper Grand Canal Street, Dublin, Ireland
This electronic message contains information (and may contain files) from BT Communications Ireland Limited which may be privileged or confidential. The information is intended to be for the sole use of the individual(s) or entity named above. If you are not the intended recipient be aware that any disclosure, copying, distribution or use of the contents of this information and or files is prohibited. If you have received this electronic message in error, please notify us by telephone or email (to the numbers or address above) immediately. http://www.btireland.ie
On Mon, Aug 21, 2006 at 05:34:01PM +0100, Loris Serena wrote:
I've played with BB for years but I'm new to hobbit. I'm trying to install 4.2.0 on a box running Solaris 10 x86 1/06 (Core installation).
Solaris 10/x86 happens to be one of the platforms that I test-compiled Hobbit on before the release.
I think you're missing some packages by doing just a "core" install. Check the files /usr/include/stdlib.h and /usr/include/iso/stdlib_iso.h; they should be 9296 and 5383 bytes, respectively. The latter one contains the definition of "NULL" which your compiler claims does not exist.
gcc -c -g -O2 -I. -I. -DPOSIX_MALLOC_THRESHOLD=10 ./pcre.c -fPIC -DPIC -o pcre.o pcre.c:355: error:
malloc' undeclared here (not in a function) pcre.c:356: error:free' undeclared here (not in a function)
Again, these are really essential system library routines that are not defined by your build environment. Without these you just cannot compile very much C code.
Regards, Henrik
participants (2)
-
henrik@hswn.dk
-
loris.serena@bt.com