build of libapreq2 fails
am 27.01.2011 21:45:09 von James.B.Muir --_000_527C4914F1B2EA47B38422DE0FA05A65064B1BA899DH201DHMCMa st_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Hi, I am trying to build libapreq2 so that I may use it with Apache2 and mo=
d_perl. I'm on a Solaris 10 system. The version of Apache I am using is old=
:
../bin/apachectl -v
Server version: Apache/2.0.59
Server built: Aug 22 2006 11:38:34
I receive the following surprising errors during the build of libapreq2:
gmake[2]: Entering directory `/opt/sfw/libapreq2-2.13/module'
/bin/bash ../libtool --tag=3DCC --mode=3Dlink gcc -g -O2 `/usr/local/lib=
apreq2-2.
13/apreq2-config --link-libtool` -L/usr/local/apache2/lib -laprutil-0 -L/u=
sr/lo
cal/apache2/lib -lapr-0 -o test_cgi test_cgi.o
gcc -g -O2 -o .libs/test_cgi test_cgi.o /opt/sfw/libapreq2-2.13/library/.l=
ibs/l
ibapreq2.so -L/usr/local/apache2/lib /usr/local/apache2/lib/libaprutil-0.so=
/usr
/local/apache2/lib/libapr-0.so -lsendfile -lrt -lm -lsocket -lnsl -lresolv =
-lpth
read -R/usr/local/apache2/lib
Undefined first referenced
symbol in file
XML_Parse /usr/local/apache2/lib/libaprutil-0.so
XML_ParserCreate /usr/local/apache2/lib/libaprutil-0.so
XML_ErrorString /usr/local/apache2/lib/libaprutil-0.so
XML_SetUserData /usr/local/apache2/lib/libaprutil-0.so
XML_ParserFree /usr/local/apache2/lib/libaprutil-0.so
XML_GetErrorCode /usr/local/apache2/lib/libaprutil-0.so
XML_SetCharacterDataHandler /usr/local/apache2/lib/libaprutil-0.so
XML_SetElementHandler /usr/local/apache2/lib/libaprutil-0.so
ld: fatal: Symbol referencing errors. No output written to .libs/test_cgi
collect2: ld returned 1 exit status
gmake[2]: *** [test_cgi] Error 1
gmake[2]: Leaving directory `/opt/sfw/libapreq2-2.13/module'
I recently installed libexpat to /usr/local/lib.
ls -lF libexpat*
-rw-r--r-- 1 root root 492744 Dec 14 16:23 libexpat.a
-rwxr-xr-x 1 root root 816 Dec 14 16:23 libexpat.la*
lrwxrwxrwx 1 root root 17 Dec 14 16:23 libexpat.so -> libexp=
at.so.1.5.2*
lrwxrwxrwx 1 root root 17 Dec 14 16:23 libexpat.so.1 -> libe=
xpat.so.1.5.2*
-rwxr-xr-x 1 root root 305504 Dec 14 16:23 libexpat.so.1.5.2*
Does anyone have any idea why I am seeing the undefined symbols when I buil=
d libapreq2? Do I need to rebuild apache to resolve this?
This is the script I am using to build libapreq2:
#!/usr/bin/bash
# Make sure we can get to gcc, but not cc. Set the path
# to find the gcc compiler in /usr/local/bin.
# Use the GNU make in /usr/sfw/bin/
PATH=3D/usr/local/bin:/usr/sfw/bin:/usr/sbin:/usr/bin:/usr/c cs/bin
export PATH
cd /usr/local/libapreq2-2.13
perl Makefile.PL --with-apache2-apxs=3D/usr/local/apache2/bin/apxs
gmake
Thanks for any input on this matter,
-James
IMPORTANT NOTICE REGARDING THIS ELECTRONIC MESSAGE:
This message is intended for the use of the person to whom it is addressed =
and may contain information that is privileged, confidential, and protected=
from disclosure under applicable law. If you are not the intended recipien=
t, your use of this message for any purpose is strictly prohibited. If you =
have received this communication in error, please delete the message and no=
tify the sender so that we may correct our records.
--_000_527C4914F1B2EA47B38422DE0FA05A65064B1BA899DH201DHMCMa st_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
>
ze:10.0pt;font-family:"Courier New"">Hi, I am trying to build lib=
apreq2 so that I may use it with Apache2 and mod_perl. I’m on a Solar=
is 10 system. The version of Apache I am using is old:
ze:10.0pt;font-family:"Courier New"">
ze:10.0pt;font-family:"Courier New"">./bin/apachectl -v &nbs=
p;
ze:10.0pt;font-family:"Courier New"">Server version: Apache/2.0.5=
9
ze:10.0pt;font-family:"Courier New"">Server built: Au=
g 22 2006 11:38:34
ze:10.0pt;font-family:"Courier New"">
I receive the followin=
g surprising errors during the build of libapreq2:
10.0pt;font-family:"Courier New"">
ze:10.0pt;font-family:"Courier New"">gmake[2]: Entering directory=
`/opt/sfw/libapreq2-2.13/module'
ze:10.0pt;font-family:"Courier New"">/bin/bash ../libtool --tag=
=3DCC --mode=3Dlink gcc -g -O2 `/usr/local/libapreq2-2.
ze:10.0pt;font-family:"Courier New"">13/apreq2-config --link-libt=
ool` -L/usr/local/apache2/lib -laprutil-0 -L/usr/lo
ze:10.0pt;font-family:"Courier New"">cal/apache2/lib -lapr-0 =
; -o test_cgi test_cgi.o
ze:10.0pt;font-family:"Courier New"">gcc -g -O2 -o .libs/test_cgi=
test_cgi.o /opt/sfw/libapreq2-2.13/library/.libs/l
ze:10.0pt;font-family:"Courier New"">ibapreq2.so -L/usr/local/apa=
che2/lib /usr/local/apache2/lib/libaprutil-0.so /usr
ze:10.0pt;font-family:"Courier New"">/local/apache2/lib/libapr-0.=
so -lsendfile -lrt -lm -lsocket -lnsl -lresolv -lpth
ze:10.0pt;font-family:"Courier New"">read -R/usr/local/apac=
he2/lib
ze:10.0pt;font-family:"Courier New"">Undefined &=
nbsp; &nbs=
p; first referenced
p>
ze:10.0pt;font-family:"Courier New"">symbol &nbs=
p; &=
nbsp; in =
file
ze:10.0pt;font-family:"Courier New"">XML_Parse &=
nbsp; &nbs=
p; /usr/local/a=
pache2/lib/libaprutil-0.so
ze:10.0pt;font-family:"Courier New"">XML_ParserCreate =
&nb=
sp; /usr/local/apache2/lib/libaprutil-0.so
ze:10.0pt;font-family:"Courier New"">XML_ErrorString &=
nbsp; &nbs=
p; /usr/local/apache2/lib/libaprutil-0.so
ze:10.0pt;font-family:"Courier New"">XML_SetUserData &=
nbsp; &nbs=
p; /usr/local/apache2/lib/libaprutil-0.so
ze:10.0pt;font-family:"Courier New"">XML_ParserFree &n=
bsp;  =
; /usr/local/apache2/lib/libaprutil-0.s=
o
ze:10.0pt;font-family:"Courier New"">XML_GetErrorCode =
&n=
bsp; /usr/local/apache2/lib/libaprutil-0.so
ze:10.0pt;font-family:"Courier New"">XML_SetCharacterDataHandler&=
nbsp; /usr/local/apache2/lib/liba=
prutil-0.so
ze:10.0pt;font-family:"Courier New"">XML_SetElementHandler &=
nbsp; &nbs=
p; /usr/local/apache2/lib/libaprutil-0.so
ze:10.0pt;font-family:"Courier New"">ld: fatal: Symbol referencin=
g errors. No output written to .libs/test_cgi
ze:10.0pt;font-family:"Courier New"">collect2: ld returned 1 exit=
status
ze:10.0pt;font-family:"Courier New"">gmake[2]: *** [test_cgi] Err=
or 1
ze:10.0pt;font-family:"Courier New"">gmake[2]: Leaving directory =
`/opt/sfw/libapreq2-2.13/module'
I recently installed libexpat to /usr/local/lib.
ze:10.0pt;font-family:"Courier New"">ls -lF libexpat* =
&nb=
sp; =
&nb=
sp; =
ze:10.0pt;font-family:"Courier New"">-rw-r--r-- 1 roo=
t root 492744 Dec 14 =
16:23 libexpat.a  =
;
ze:10.0pt;font-family:"Courier New"">-rwxr-xr-x 1 roo=
t root &nb=
sp; 816 Dec 14 16:23 libexpat.la* =
ze:10.0pt;font-family:"Courier New"">lrwxrwxrwx 1 roo=
t root &nb=
sp; 17 Dec 14 16:23 libexpat.so -> libexpat.so.1.5.2* &=
nbsp; &nbs=
p; &=
nbsp; &nbs=
p; &=
nbsp; &nbs=
p;
ze:10.0pt;font-family:"Courier New"">lrwxrwxrwx 1 roo=
t root &nb=
sp; 17 Dec 14 16:23 libexpat.so.1 -> libexpat.so.1.5.2*  =
; &=
nbsp; &nbs=
p; &=
nbsp; &nbs=
p; &=
nbsp;
ze:10.0pt;font-family:"Courier New"">-rwxr-xr-x 1 roo=
t root 305504 Dec 14 =
16:23 libexpat.so.1.5.2*
Does anyone have any idea why I am seeing the undefi=
ned symbols when I build libapreq2? Do I need to rebuild apache to resolve =
this?
ze:10.0pt;font-family:"Courier New"">This is the script I am usin=
g to build libapreq2:
ze:10.0pt;font-family:"Courier New"">
ze:10.0pt;font-family:"Courier New"">#!/usr/bin/bash &=
nbsp; &nbs=
p; &=
nbsp; &nbs=
p;
ze:10.0pt;font-family:"Courier New""> &nbs=
p; &=
nbsp; &nbs=
p; &=
nbsp; &nbs=
p; <=
o:p>
ze:10.0pt;font-family:"Courier New""># Make sure we can get to gc=
c, but not cc. Set the path =
ze:10.0pt;font-family:"Courier New""># to find the gcc compiler i=
n /usr/local/bin. &nbs=
p;
ze:10.0pt;font-family:"Courier New""># Use the GNU make in /usr/s=
fw/bin/ &n=
bsp;  =
;
ze:10.0pt;font-family:"Courier New""> &nbs=
p; &=
nbsp; &nbs=
p; &=
nbsp; &nbs=
p; <=
o:p>
ze:10.0pt;font-family:"Courier New"">PATH=3D/usr/local/bin:/usr/s=
fw/bin:/usr/sbin:/usr/bin:/usr/ccs/bin
ze:10.0pt;font-family:"Courier New"">export PATH  =
; &n=
bsp;  =
; &n=
bsp;  =
;
ze:10.0pt;font-family:"Courier New""> &nbs=
p; &=
nbsp; &nbs=
p; &=
nbsp; &nbs=
p; <=
o:p>
ze:10.0pt;font-family:"Courier New"">cd /usr/local/libapreq2-2.13=
&nb=
sp; =
&nb=
sp;
ze:10.0pt;font-family:"Courier New""> &nbs=
p; &=
nbsp; &nbs=
p; &=
nbsp; &nbs=
p; <=
o:p>
ze:10.0pt;font-family:"Courier New"">perl Makefile.PL --with-apac=
he2-apxs=3D/usr/local/apache2/bin/apxs
ze:10.0pt;font-family:"Courier New""> &nbs=
p; &=
nbsp; &nbs=
p; &=
nbsp; &nbs=
p; <=
o:p>
ze:10.0pt;font-family:"Courier New"">gmake  =
; &n=
bsp;  =
; &n=
bsp;  =
;
Thanks for any input on this matter,
-James
IMPORTANT NOTICE REGARDIN=
G THIS ELECTRONIC MESSAGE:
This message is intended for the use of the person to whom it is addressed =
and may contain information that is privileged, confidential, and protected=
from disclosure under applicable law. If you are not the intended recipien=
t, your use of this message for
any purpose is strictly prohibited. If you have received this communicatio=
n in error, please delete the message and notify the sender so that we may =
correct our records.
--_000_527C4914F1B2EA47B38422DE0FA05A65064B1BA899DH201DHMCMa st_--