<!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>Hobbit dependencies on Solaris 10.</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2 FACE="Courier New">Hello guys, </FONT>
</P>

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

<P><FONT SIZE=2 FACE="Courier New">I've religiously added gcc, gmake, fping, rrdtool but I'm getting stuck on pcre.</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">1. </FONT>
<BR><FONT SIZE=2 FACE="Courier New">If I do a pkgadd from SunFreeware, it installs ok but hobbit configure quits with:</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New"><snip></FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">Checking for PCRE ...</FONT>
<BR><FONT SIZE=2 FACE="Courier New">test-pcre.c: In function `main':</FONT>
<BR><FONT SIZE=2 FACE="Courier New">test-pcre.c:8: error: `NULL' undeclared (first use in this function)</FONT>
<BR><FONT SIZE=2 FACE="Courier New">test-pcre.c:8: error: (Each undeclared identifier is reported only once</FONT>
<BR><FONT SIZE=2 FACE="Courier New">test-pcre.c:8: error: for each function it appears in.)</FONT>
<BR><FONT SIZE=2 FACE="Courier New">make: *** [test-compile] Error 1</FONT>
<BR><FONT SIZE=2 FACE="Courier New">ERROR: PCRE include files found in /usr/local/include, but compile fails.</FONT>
<BR><FONT SIZE=2 FACE="Courier New">#</FONT>
</P>
<BR>

<P><FONT SIZE=2 FACE="Courier New">2.</FONT>
<BR><FONT SIZE=2 FACE="Courier New">If I try to compile pcre from source, configure goes ok, but make returns the following:</FONT>
<BR><FONT SIZE=2 FACE="Courier New"># make</FONT>
<BR><FONT SIZE=2 FACE="Courier New">/bin/bash ./libtool --mode=compile gcc -c -g -O2 -I. -I.      ./maketables.c</FONT>
<BR><FONT SIZE=2 FACE="Courier New">mkdir .libs</FONT>
<BR><FONT SIZE=2 FACE="Courier New">gcc -c -g -O2 -I. -I. ./maketables.c  -fPIC -DPIC -o maketables.o</FONT>
<BR><FONT SIZE=2 FACE="Courier New">mv -f maketables.o .libs/maketables.lo</FONT>
<BR><FONT SIZE=2 FACE="Courier New">gcc -c -g -O2 -I. -I. ./maketables.c -o maketables.o >/dev/null 2>&1</FONT>
<BR><FONT SIZE=2 FACE="Courier New">mv -f .libs/maketables.lo maketables.lo</FONT>
<BR><FONT SIZE=2 FACE="Courier New">/bin/bash ./libtool --mode=compile gcc -c -g -O2 -I. -I.      ./get.c</FONT>
<BR><FONT SIZE=2 FACE="Courier New">rm -f .libs/get.lo</FONT>
<BR><FONT SIZE=2 FACE="Courier New">gcc -c -g -O2 -I. -I. ./get.c  -fPIC -DPIC -o get.o</FONT>
<BR><FONT SIZE=2 FACE="Courier New">mv -f get.o .libs/get.lo</FONT>
<BR><FONT SIZE=2 FACE="Courier New">gcc -c -g -O2 -I. -I. ./get.c -o get.o >/dev/null 2>&1</FONT>
<BR><FONT SIZE=2 FACE="Courier New">mv -f .libs/get.lo get.lo</FONT>
<BR><FONT SIZE=2 FACE="Courier New">/bin/bash ./libtool --mode=compile gcc -c -g -O2 -I. -I.       ./study.c</FONT>
<BR><FONT SIZE=2 FACE="Courier New">rm -f .libs/study.lo</FONT>
<BR><FONT SIZE=2 FACE="Courier New">gcc -c -g -O2 -I. -I. ./study.c  -fPIC -DPIC -o study.o</FONT>
<BR><FONT SIZE=2 FACE="Courier New">mv -f study.o .libs/study.lo</FONT>
<BR><FONT SIZE=2 FACE="Courier New">gcc -c -g -O2 -I. -I. ./study.c -o study.o >/dev/null 2>&1</FONT>
<BR><FONT SIZE=2 FACE="Courier New">mv -f .libs/study.lo study.lo</FONT>
<BR><FONT SIZE=2 FACE="Courier New">gcc -c -g -O2 -I. ./dftables.c</FONT>
<BR><FONT SIZE=2 FACE="Courier New">/bin/bash ./libtool --mode=link gcc -g -O2 -I. -I. -o dftables dftables.o</FONT>
<BR><FONT SIZE=2 FACE="Courier New">gcc -g -O2 -I. -I. -o dftables dftables.o</FONT>
<BR><FONT SIZE=2 FACE="Courier New">./dftables ./chartables.c</FONT>
<BR><FONT SIZE=2 FACE="Courier New">/bin/bash ./libtool --mode=compile gcc -c -g -O2 -I. -I.       -DPOSIX_MALLOC_THRESHOLD=10 ./pcre.c</FONT>
<BR><FONT SIZE=2 FACE="Courier New">rm -f .libs/pcre.lo</FONT>
<BR><FONT SIZE=2 FACE="Courier New">gcc -c -g -O2 -I. -I. -DPOSIX_MALLOC_THRESHOLD=10 ./pcre.c  -fPIC -DPIC -o pcre.o</FONT>
<BR><FONT SIZE=2 FACE="Courier New">pcre.c:355: error: `malloc' undeclared here (not in a function)</FONT>
<BR><FONT SIZE=2 FACE="Courier New">pcre.c:356: error: `free' undeclared here (not in a function)</FONT>
<BR><FONT SIZE=2 FACE="Courier New">pcre.c:357: error: `malloc' undeclared here (not in a function)</FONT>
<BR><FONT SIZE=2 FACE="Courier New">pcre.c:358: error: `free' undeclared here (not in a function)</FONT>
<BR><FONT SIZE=2 FACE="Courier New">make: *** [pcre.o] Error 1</FONT>
<BR><FONT SIZE=2 FACE="Courier New">#</FONT>
</P>
<BR>

<P><FONT SIZE=2 FACE="Courier New">What am I missing here?</FONT>
</P>
<BR>

<P><FONT SIZE=2 FACE="Courier New">Thanks in advance</FONT>
</P>
<BR>

<P><FONT SIZE=2 FACE="Courier New">Loris</FONT>
</P>
<BR>
<BR>
<BR>
<BR>

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

<P><FONT SIZE=2 FACE="Arial">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>