Problem when compiling libapreq2-2.13 on Centos

"Pierre QUETELART" <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <D6500DD373CA7D4CBC8B8D766CA485D002DF45C4@exchange-srv.advens-priv.advens.fr>
Hello,

 

I have hard time when compiling libapreq2-2.13 on Centos 6

 

Everything goes fine until I have this message :

 

gcc -shared  .libs/handle.o .libs/filter.o  -Wl,--rpath -Wl,/root/rpmbuild/BUILD/program-common-3.1/libapreq2-2.13/library/.libs -Wl,--rpath -Wl,/root/rpmbuild/BUILDROOT/program -common-3.1-1.i386/opt/program/httpd/lib -Wl,--rpath -Wl,/root/rpmbuild/BUILDROOT/ rogram -common-3.1-1.i386/opt/ program /httpd/lib /root/rpmbuild/BUILD/program -common-3.1/libapreq2-2.13/library/.libs/libapreq2.so -lrt -lcrypt -lpthread -lexpat /root/rpmbuild/BUILDROOT/ program -common-3.1-1.i386/opt/ program /httpd/lib/libapr-1.so /root/rpmbuild/BUILDROOT/program -common-3.1-1.i386/opt/ program/httpd/lib/libaprutil-1.so  -Wl,-soname -Wl,mod_apreq2.so -o .libs/mod_apreq2.so
/usr/bin/ld: cannot find -lexpat
collect2: ld returned 1 exit status
make[2]: *** [mod_apreq2.la <http://mod_apreq2.la> ] Error 1
make[2]: Leaving directory `/root/rpmbuild/BUILD/program-common-3.1/libapreq2-2.13/module/apache2'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/rpmbuild/BUILD/program-common-3.1/libapreq2-2.13/module'
make: *** [all-recursive] Error 1
+ exit -1
erreur: Mauvais status de sortie pour /var/tmp/rpm-tmp.RlYaIF (%build)


Erreur de construction de RPM:
    Mauvais status de sortie pour /var/tmp/rpm-tmp.RlYaIF (%build)

 

 

My compilation options were :

 

perl -I ../ExtUtils-MakeMaker-6.42/lib Makefile.PL -with-apache2-apxs=$RPM_BUILD_ROOT/opt/program/httpd/bin/apxs

 

I know $RPM_BUILD_ROOT/opt/program/httpd/bin/apxs works fine because I've already used it when compiling another program.

 

Could you help me solving this problem ?

 

Thank you

 

Cordialement,

 

Pierre Quételart

Pôle R&D | Mob : +33 6 46 18 21 94

Advens | www.advens.fr <http://www.advens.fr/> 
5, rue du Helder, 75009 Paris | T +33 1 53 24 00 70 | F +33 1 53 24 53 39

47, rue du Faubourg de Roubaix, 59000 Lille | T +33 3 20 68 41 81 | F +33 3 20 70 54 28
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.