AnsweredAssumed Answered

/usr/lib/libexpat.so: file not recognized: File format not recognized

Question asked by Sowmya Kaparthi on May 15, 2019
Latest reply on May 19, 2019 by Sowmya Kaparthi

I am trying to compile apache httpd-2.0.54 in my ubuntu 14.04, 64 bit Operating System  . when I am trying to build my ltib I am getting the following error :

 

make[3]: Leaving directory `/opt/LTIB_RB_NG/Internals/Working/ltib-mpc8309-NAND-15APR19_AS/rpm/BUILD/httpd-2.0.54/modules/mappers'
make[2]: Leaving directory `/opt/LTIB_RB_NG/Internals/Working/ltib-mpc8309-NAND-15APR19_AS/rpm/BUILD/httpd-2.0.54/modules/mappers'
make[1]: Leaving directory `/opt/LTIB_RB_NG/Internals/Working/ltib-mpc8309-NAND-15APR19_AS/rpm/BUILD/httpd-2.0.54/modules'
Making all in support
make[1]: Entering directory `/opt/LTIB_RB_NG/Internals/Working/ltib-mpc8309-NAND-15APR19_AS/rpm/BUILD/httpd-2.0.54/support'
make[2]: Entering directory `/opt/LTIB_RB_NG/Internals/Working/ltib-mpc8309-NAND-15APR19_AS/rpm/BUILD/httpd-2.0.54/support'
/opt/LTIB_RB_NG/Internals/Working/ltib-mpc8309-NAND-15APR19_AS/rpm/BUILD/httpd-2.0.54/srclib/apr/libtool --silent --mode=compile gcc    -Wall -DBIG_SECURITY_HOLE  -D_REENTRANT -D_GNU_SOURCE -DAP_HAVE_DESIGNATED_INITIALIZER   -I/opt/LTIB_RB_NG/Internals/Working/ltib-mpc8309-NAND-15APR19_AS/rpm/BUILD/httpd-2.0.54/srclib/apr/include -I/opt/LTIB_RB_NG/Internals/Working/ltib-mpc8309-NAND-15APR19_AS/rpm/BUILD/httpd-2.0.54/srclib/apr-util/include -I. -I/opt/LTIB_RB_NG/Internals/Working/ltib-mpc8309-NAND-15APR19_AS/rpm/BUILD/httpd-2.0.54/os/unix -I/opt/LTIB_RB_NG/Internals/Working/ltib-mpc8309-NAND-15APR19_AS/rpm/BUILD/httpd-2.0.54/server/mpm/prefork -I/opt/LTIB_RB_NG/Internals/Working/ltib-mpc8309-NAND-15APR19_AS/rpm/BUILD/httpd-2.0.54/modules/http -I/opt/LTIB_RB_NG/Internals/Working/ltib-mpc8309-NAND-15APR19_AS/rpm/BUILD/httpd-2.0.54/modules/filters -I/opt/LTIB_RB_NG/Internals/Working/ltib-mpc8309-NAND-15APR19_AS/rpm/BUILD/httpd-2.0.54/modules/proxy -I/opt/LTIB_RB_NG/Internals/Working/ltib-mpc8309-NAND-15APR19_AS/rpm/BUILD/httpd-2.0.54/include -I/opt/LTIB_RB_NG/Internals/Working/ltib-mpc8309-NAND-15APR19_AS/rpm/BUILD/httpd-2.0.54/modules/generators -I/opt/LTIB_RB_NG/Internals/Working/ltib-mpc8309-NAND-15APR19_AS/rpm/BUILD/httpd-2.0.54/modules/dav/main -prefer-non-pic -static -c htpasswd.c && touch htpasswd.lo
/opt/LTIB_RB_NG/Internals/Working/ltib-mpc8309-NAND-15APR19_AS/rpm/BUILD/httpd-2.0.54/srclib/apr/libtool --silent --mode=link gcc    -Wall -DBIG_SECURITY_HOLE  -D_REENTRANT -D_GNU_SOURCE -DAP_HAVE_DESIGNATED_INITIALIZER   -I/opt/LTIB_RB_NG/Internals/Working/ltib-mpc8309-NAND-15APR19_AS/rpm/BUILD/httpd-2.0.54/srclib/apr/include -I/opt/LTIB_RB_NG/Internals/Working/ltib-mpc8309-NAND-15APR19_AS/rpm/BUILD/httpd-2.0.54/srclib/apr-util/include -I. -I/opt/LTIB_RB_NG/Internals/Working/ltib-mpc8309-NAND-15APR19_AS/rpm/BUILD/httpd-2.0.54/os/unix -I/opt/LTIB_RB_NG/Internals/Working/ltib-mpc8309-NAND-15APR19_AS/rpm/BUILD/httpd-2.0.54/server/mpm/prefork -I/opt/LTIB_RB_NG/Internals/Working/ltib-mpc8309-NAND-15APR19_AS/rpm/BUILD/httpd-2.0.54/modules/http -I/opt/LTIB_RB_NG/Internals/Working/ltib-mpc8309-NAND-15APR19_AS/rpm/BUILD/httpd-2.0.54/modules/filters -I/opt/LTIB_RB_NG/Internals/Working/ltib-mpc8309-NAND-15APR19_AS/rpm/BUILD/httpd-2.0.54/modules/proxy -I/opt/LTIB_RB_NG/Internals/Working/ltib-mpc8309-NAND-15APR19_AS/rpm/BUILD/httpd-2.0.54/include -I/opt/LTIB_RB_NG/Internals/Working/ltib-mpc8309-NAND-15APR19_AS/rpm/BUILD/httpd-2.0.54/modules/generators -I/opt/LTIB_RB_NG/Internals/Working/ltib-mpc8309-NAND-15APR19_AS/rpm/BUILD/httpd-2.0.54/modules/dav/main -export-dynamic    -o htpasswd  htpasswd.lo   -lz /opt/LTIB_RB_NG/Internals/Working/ltib-mpc8309-NAND-15APR19_AS/rpm/BUILD/httpd-2.0.54/srclib/pcre/libpcre.la /opt/LTIB_RB_NG/Internals/Working/ltib-mpc8309-NAND-15APR19_AS/rpm/BUILD/httpd-2.0.54/srclib/apr-util/libaprutil-0.la -lexpat /opt/LTIB_RB_NG/Internals/Working/ltib-mpc8309-NAND-15APR19_AS/rpm/BUILD/httpd-2.0.54/srclib/apr/libapr-0.la -lrt -lm -lcrypt -lnsl -ldl
/usr/lib/libexpat.so: file not recognized: File format not recognized
collect2: ld returned 1 exit status
make[2]: *** [htpasswd] Error 1
make[2]: Leaving directory `/opt/LTIB_RB_NG/Internals/Working/ltib-mpc8309-NAND-15APR19_AS/rpm/BUILD/httpd-2.0.54/support'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/LTIB_RB_NG/Internals/Working/ltib-mpc8309-NAND-15APR19_AS/rpm/BUILD/httpd-2.0.54/support'
make: *** [all-recursive] Error 1
error: Bad exit status from /opt/LTIB_RB_NG/Internals/Working/ltib-mpc8309-NAND-15APR19_AS/tmp/rpm-tmp.24766 (%build)

 


RPM build errors:
    Bad exit status from /opt/LTIB_RB_NG/Internals/Working/ltib-mpc8309-NAND-15APR19_AS/tmp/rpm-tmp.24766 (%build)
Build time for httpd: 44 seconds

 

Failed building httpd

 


f_buildrpms() returned an error, exiting
traceback:
 main:560

 


Started: Thu May 16 11:18:35 2019
Ended:   Thu May 16 11:19:36 2019
Elapsed: 61 seconds

 

These packages failed to build:
httpd

 

Build Failed

 

Exiting on error or interrupt

 

I have expat-1.95.8 package along with its patches, md5's in opt/freescale/pkgs and my spec file is also correct even thought I am getting error. I don't understand what could be the reason for this. Please could anyone help me in solving this. I am working to resolve this from 1 week.

 

Thanks in advance...

Outcomes