<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>RE: [hobbit] Hobbit dependencies on Solaris 10.</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>Cheers Henrik, </FONT>
</P>

<P><FONT SIZE=2>I believe the Core installation might be the "issue" here allright.</FONT>
</P>

<P><FONT SIZE=2>Still, I do have those two libraries in place</FONT>
</P>

<P><FONT SIZE=2>[minivip]/$ ls -l /usr/include/stdlib.h</FONT>
<BR><FONT SIZE=2>-rw-r--r--   1 root     bin         9296 Jan 21  2005 /usr/include/stdlib.h</FONT>
<BR><FONT SIZE=2>[minivip]/$ ls -l /usr/include/iso/stdlib_iso.h</FONT>
<BR><FONT SIZE=2>-rw-r--r--   1 root     bin         5383 Jan 21  2005 /usr/include/iso/stdlib_iso.h</FONT>
<BR><FONT SIZE=2>[minivip]/$</FONT>
</P>

<P><FONT SIZE=2>How do I go from here?</FONT>
<BR><FONT SIZE=2>Or, how do I check what directory gcc parses and/or how do I tell gcc to also use /usr/include ?</FONT>
</P>

<P><FONT SIZE=2>Thanks again</FONT>
</P>

<P><FONT SIZE=2>Loris</FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: henrik@hswn.dk [<A HREF="mailto:henrik@hswn.dk">mailto:henrik@hswn.dk</A>] </FONT>
<BR><FONT SIZE=2>Sent: 21 August 2006 21:38</FONT>
<BR><FONT SIZE=2>To: hobbit@hswn.dk</FONT>
<BR><FONT SIZE=2>Subject: Re: [hobbit] Hobbit dependencies on Solaris 10.</FONT>
</P>
<BR>

<P><FONT SIZE=2>On Mon, Aug 21, 2006 at 05:34:01PM +0100, Loris Serena wrote:</FONT>
</P>

<P><FONT SIZE=2>> I've played with BB for years but I'm new to hobbit.</FONT>
<BR><FONT SIZE=2>> I'm trying to install 4.2.0 on a box running Solaris 10 x86 1/06 (Core </FONT>
<BR><FONT SIZE=2>> installation).</FONT>
</P>
<BR>

<P><FONT SIZE=2>Solaris 10/x86 happens to be one of the platforms that I test-compiled Hobbit on before the release.</FONT>
</P>

<P><FONT SIZE=2>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; </FONT></P>

<P><FONT SIZE=2>they should be 9296 and 5383 bytes, respectively. The latter one contains the definition of "NULL" which your compiler claims does not exist.</FONT></P>

<P><FONT SIZE=2>> gcc -c -g -O2 -I. -I. -DPOSIX_MALLOC_THRESHOLD=10 ./pcre.c  -fPIC </FONT>
<BR><FONT SIZE=2>> -DPIC -o pcre.o</FONT>
<BR><FONT SIZE=2>> pcre.c:355: error: `malloc' undeclared here (not in a function)</FONT>
<BR><FONT SIZE=2>> pcre.c:356: error: `free' undeclared here (not in a function)</FONT>
</P>

<P><FONT SIZE=2>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.</FONT></P>
<BR>

<P><FONT SIZE=2>Regards,</FONT>
<BR><FONT SIZE=2>Henrik</FONT>
</P>
<BR>

<P><FONT SIZE=2>To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe@hswn.dk</FONT>
</P>
<BR>
<BR>
<BR>

<P><FONT SIZE=2>BT Communications Ireland Limited </FONT>
<BR><FONT SIZE=2>is a wholly owned subsidiary of BT Group plc </FONT>
<BR><FONT SIZE=2>Registered in Ireland, Registration No. 141524 </FONT>
<BR><FONT SIZE=2>Grand Canal Plaza, Upper Grand Canal Street, Dublin, Ireland </FONT>
</P>

<P><FONT SIZE=2>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. <A HREF="http://www.btireland.ie" TARGET="_blank">http://www.btireland.ie</A></FONT></P>

</BODY>
</HTML>