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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

1,876 Views
kaparthisowmya
Contributor I

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...

0 Kudos
3 Replies

1,626 Views
Pavel
NXP Employee
NXP Employee

See attached file.


Have a great day,
Pavel Chubakov

-------------------------------------------------------------------------------
Note:

This thread is continued as a private discussion with the submitter,
NXP support is not following the thread anymore.
-------------------------------------------------------------------------------

0 Kudos

1,626 Views
Pavel
NXP Employee
NXP Employee

Usually Ubuntu 10 32bit or Ubuntu 12 32 bit is used for LTIB.

Use the following command sequence for LTIB using under Ubuntu 14.

 

sudo apt-get install autoconf automake libtool gettext xorg-dev patch g++ rpm zlib1g-dev m4 bison libncurses5-dev libglib2.0-dev gettext build-essential tcl intltool libxml2-dev liborbit2-dev libx11-dev ccache flex uuid-dev liblzo2-dev

sudo apt-get install mtd-utils

sudo aptitude -y install ia32-libs libc6-dev-i386 lib32z1

+++++++++++++++++++++++++++++++++++++++

// comment in the "ltib" file

            glibc           2.2.4

            glibc-headers   0

#            glibc-devel     0

            binutils        2.11.90

            libstdc++       0

            gcc             2.96

            gcc-c++         2.96

            sudo            0

#            zlib            0

            zlib-devel      0

            rpm             0

#            rpm-build       0

            wget            0

            ncurses         5.1

            ncurses-devel   0

            m4              0

            bison           0

            patch           0

#            flex            0      # added to the host packages we install

#            texinfo         0      # added to the host packages we install

            gettext         0

#            autoconf        2.54   # added to the host packages we install

#            libtool         1.4.2  # added to the host packages we install

#            byacc           0      # needed?  report was for 8548 install

++++++++++++++++++++++++++++++++++++++++

To configure this, as root using the command "/usr/sbin/visudo",

and add the following line in the User privilege section:

 

pavel ALL = NOPASSWD: /usr/bin/rpm, /opt/freescale/ltib/usr/bin/rpm

+++++++++++++++++++++++++++++++++++++++++

// remove the lkc-1.4 folder if this folder is prsent in the /opt/freescale/ltib/usr/src/rpm/BUILD folder

 

// Use oneiricltibpatch.tgz

// this patch changes

// lkc.spec in the /ltib-mpc8360epb-20071016/dist/lfs-5.1/lkc folder

// sparse.spec in the /ltib-mpc8360epb-20071016/dist/lfs-5.1/sparse folder

// adds lkc-1.4-lib.patch  lkc-1.4-lib.patch.md5  sparse-0.4-fixlabel.patch  sparse-0.4-fixlabel.patch.md5

// to the /opt/freescale/pkgs folder

++++++++++++++++++++++++++++++++++++++++

// if the re is the folder "mtd" in the folder "/opt/freescale/ltib/usr/src/rpm/BUILD", delete this "mtd" folder and

// chnge the "/opt/freescale/pkgs/mtd-utils-20060302-cf-byteswap_h-1.patch"  file.

// Find the following lines:

+#if !defined _BYTESWAP_H && !defined _NETINET_IN_H

+# error "Never use <bits/byteswap.h> directly; include <byteswap.h> instead."

+#endif

 

// modify this line to the following:

+//#if !defined _BYTESWAP_H && !defined _NETINET_IN_H

+//# error "Never use <bits/byteswap.h> directly; include <byteswap.h> instead."

+//#endif


Have a great day,
Pavel Chubakov

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

1,626 Views
kaparthisowmya
Contributor I

when  I am trying to download this patch oneiricltibpatch.tgz, It is not found anywhere. could you please provide me the link to download this patch...

when trying to download this libraries in my ubuntu 14.04(64 bit OS). I am not able to  install this packages it shows as below

########################################################################

No candidate version found for ia32-libs
No candidate version found for ia32-libs
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.

#######################################################################

and I have the same expat.so problem which I specified earlier....

0 Kudos