ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ltib] Asterisk 1.6.2 build error for libxml2


From: Nirmala
Subject: Re: [Ltib] Asterisk 1.6.2 build error for libxml2
Date: Tue, 12 Jan 2010 09:28:08 -0500
User-agent: Thunderbird 2.0.0.22 (X11/20090625)


Hi Stuart ,
I'm cross comping for the powerpc and the configure command in the spec file is as follows $ ./configure --prefix=/usr --host=powerpc-linux --build=i686-pc-linux-gnu --disable-xmldoc
Now i don't see that error however there is another error related to mxml

below is the steps i followed
------------------------------------------------------------------------------------------------------------------------------------------------------
./ltib -p asterisk -m scbuild

make[2]: Entering directory `/home/nirmala/ltib-mpc8272ads-20080623/rpm/BUILD/asterisk-1.6.2.0/menuselect/mxml'
if test -f config.status; then \
./config.status --recheck; \
./config.status; \
else \
./configure; \
fi
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
make[2]: *** [config.h] Error 1
make[2]: Leaving directory `/home/nirmala/ltib-mpc8272ads-20080623/rpm/BUILD/asterisk-1.6.2.0/menuselect/mxml'
make[1]: *** [mxml/libmxml.a] Error 2
make[1]: Leaving directory `/home/nirmala/ltib-mpc8272ads-20080623/rpm/BUILD/asterisk-1.6.2.0/menuselect'
make: *** [menuselect/menuselect] Error 2
--------------------------------------------------------------------------------------------------------------------------------------------
I've seen the above error in the past and resolved it by running
make menuselect ( at asterisk build directory under LTIB )
but for some reason i still get below error related to mxml
================================================================================ make[1]: Entering directory `/home/nirmala/ltib-mpc8272ads-20080623/rpm/BUILD/asterisk-1.6.2.0/menuselect'
gcc -g -c -D_GNU_SOURCE -Wall -c -o menuselect_stub.o menuselect_stub.c
gcc -o menuselect menuselect.o strcompat.o menuselect_stub.o mxml/libmxml.a
ld: menuselect.o: Relocations in generic ELF (EM: 3)
menuselect.o: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[1]: *** [menuselect] Error 1
make[1]: Leaving directory `/home/nirmala/ltib-mpc8272ads-20080623/rpm/BUILD/asterisk-1.6.2.0/menuselect'
make: *** [menuselect/menuselect] Error 2
================================================================================ as mentioned earlier, building asterisk for powerpc using asterisk configure with --target and --build options followed by make HOST_CC the build is successful which indicates that library dependencies are met. for some reason Ltib asterisk build fails for linking mxml library for powerpc.

Appreciate your help in this regard.

Thank You
Nirmala





Stuart Hughes wrote:
Hi Nirmala,

LTIB doesn't split target packages into pkg/pkg-dev (sub-packages). Any dependency on a -dev pkg would be something to do with host side dependencies.

You can't go into directories and run ./configure unless you're in the LTIB shell. Even then you need to be careful as the spec file may be passing a number of commands (you need to incorporate them).

You will get different results when using LTIB or natively building, but that's because LTIB is building for the target (cross-compiling).

To resolve this you need to start again (clean of your failed build) and look at the actual failure but studying config.log. If the failure is a missing host -dev package, then add it with your package manager. If it's to do with the target environment you need to figure out what needs changes, or possibly add --disable-xmldoc to the configure in the .spec file you created for the updated asterisk

Regards, Stuart

Nirmala wrote:
Hi Stuart,

I'm trying to port asterisk-1.4.21.1 to asterisk-1.6.2.0. build failed for libxml2 package , However after including libxml2 in the ltib package list , asterisk build failed again for xmldoc. I'm wondering if ltib (8.1.2) package needs libxml2-dev package to solve this problem, for some reason ltib package list does not have ltibxml2-dev development package to include.

asterisk build steps followed through ltib
1. ./ltib -p asterisk -m prep
2. ./ltib -p asterisk -m scbuild
ltib asterisk build gave following error
---------------------
checking for xml2-config... xml2-config
configure: *** XML documentation will not be available because the 'libxml2' development package is missing. configure: *** Please run the 'configure' script with the '--disable-xmldoc' parameter option
configure: *** or install the 'libxml2' development package.
----------------------
from the asterisk-1.6.2.0 directory ran the configure script with disable xmldoc
3. ./configure --disable-xmldoc
4. again build the asterisk through ltib
./ltib -p asterisk -m scbuild
build throws same above error.

Infact building asterisk with make utility (make all) the asterisk build is successful , the error occurs only if tried to build asterisk throght ltib build.

any help would be appreciated.

Thank You
Nirmala






_______________________________________________
LTIB home page: http://ltib.org

Ltib mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/ltib









reply via email to

[Prev in Thread] Current Thread [Next in Thread]