Hobbit dependencies on Solaris 10.
list Loris Serena
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. 1. 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. # 2. 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
list Henrik Størner
▸
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
list Loris Serena
Cheers Henrik, I believe the Core installation might be the "issue" here allright. Still, I do have those two libraries in place [minivip]/$ ls -l /usr/include/stdlib.h -rw-r--r-- 1 root bin 9296 Jan 21 2005 /usr/include/stdlib.h [minivip]/$ ls -l /usr/include/iso/stdlib_iso.h -rw-r--r-- 1 root bin 5383 Jan 21 2005 /usr/include/iso/stdlib_iso.h [minivip]/$ How do I go from here? Or, how do I check what directory gcc parses and/or how do I tell gcc to also use /usr/include ? Thanks again Loris
▸
-----Original Message-----
From: user-ce4a2c883f75@xymon.invalid [mailto:user-ce4a2c883f75@xymon.invalid]
Sent: 21 August 2006 21:38
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Hobbit dependencies on Solaris 10.
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 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
list Sladewig
I think I have seen this. Happened to a friend of mine using a pkg from sunfreeware. There is a script if I recall "fixincludes" that needs to be run. Check the README for gcc. -- steve Loris Serena said the following, On 08/22/2006 05:55 AM:
▸
Cheers Henrik, I believe the Core installation might be the "issue" here allright. Still, I do have those two libraries in place [minivip]/$ ls -l /usr/include/stdlib.h -rw-r--r-- 1 root bin 9296 Jan 21 2005 /usr/include/stdlib.h [minivip]/$ ls -l /usr/include/iso/stdlib_iso.h -rw-r--r-- 1 root bin 5383 Jan 21 2005 /usr/include/iso/stdlib_iso.h [minivip]/$ How do I go from here? Or, how do I check what directory gcc parses and/or how do I tell gcc to also use /usr/include ? Thanks again Loris -----Original Message----- From: user-ce4a2c883f75@xymon.invalid [mailto:user-ce4a2c883f75@xymon.invalid] Sent: 21 August 2006 21:38 To: user-ae9b8668bcde@xymon.invalid Subject: Re: [hobbit] Hobbit dependencies on Solaris 10. 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 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
list Henrik Størner
▸
On Tue, Aug 22, 2006 at 10:14:06AM -0500, sladewig wrote:
I think I have seen this. Happened to a friend of mine using a pkg from sunfreeware. There is a script if I recall "fixincludes" that needs to be run. Check the README for gcc.
Oh yes, I had forgotten about that one. The sunfreeware notes say: "Note that this version of gcc was created on build 60 of Solaris 10. If you are using a higher version, you will need to redo some of the header files. This is done by doing the following steps: cd /usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.2/install-tools/ Put the line SHELL=/bin/sh on the first line of the mkheaders.conf file. Then run ./mkheaders This will correct some files and make the build 60 gcc usable on higher builds. I have tested this on build 72 and it works fine." This could very well be the problem. Regards, Henrik
list Loris Serena
Thx 1Mb, Steve and Henrik, that was it indeed...
▸
-----Original Message-----
From: user-ce4a2c883f75@xymon.invalid [mailto:user-ce4a2c883f75@xymon.invalid]
Sent: 22 August 2006 16:17
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Hobbit dependencies on Solaris 10.
On Tue, Aug 22, 2006 at 10:14:06AM -0500, sladewig wrote:I think I have seen this. Happened to a friend of mine using a pkg from sunfreeware. There is a script if I recall "fixincludes" that needs to be run. Check the README for gcc.
Oh yes, I had forgotten about that one. The sunfreeware notes say: "Note that this version of gcc was created on build 60 of Solaris 10. If you are using a higher version, you will need to redo some of the header files. This is done by doing the following steps: cd /usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.2/install-tools/ Put the line SHELL=/bin/sh on the first line of the mkheaders.conf file. Then run ./mkheaders This will correct some files and make the build 60 gcc usable on higher builds. I have tested this on build 72 and it works fine." This could very well be the problem. Regards, Henrik 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