Libextractor:Cross compilation Error

View: New views
9 Messages — Rating Filter:   Alert me  

Libextractor:Cross compilation Error

by Tomy Joseph :: Rate this Message:

| View Threaded | Show Only this Message


Hi,
I tried the following steps to cross compile Libextractor:
1: ./configure target=mips-linux --host=mips-linux build=i686-pc-linux-gnu
--prefix=/home/tomy/File/extractor (Tried without :build=i686-pc-linux-gnu
)
2: make : this time I am getting the following errors:
=======================================
In file included from extractor.c:21:
../../src/include/platform.h:60:19: iconv.h: No such file or directory
==========================================================
During Configuration I got the following logs regarding iconv:
===================================================
checking for iconv... no, consider installing GNU libiconv

checking iconv.h usability... no
checking iconv.h presence... no
checking for iconv.h... no
========================================================

but in normal x86 Compilation I found that all the checks for iconv is
yes...

Could you please tell me the exact problem??  Also I tried with Configure
options like --with-libiconv-prefix[=DIR] --without-libiconv-prefix..



Tomy P. Joseph
Samsung ODC,
L&T Infotech,Plot No. 25-30,
EPIP I Phase Industrial Area,
Whitefield,Bangalore-66.
Mobile: +919448856102
Fax:+91-80-8525233.

( ) L&T Infotech Proprietary & Confidential
( ) L&T Infotech Confidential
(+) L&T Infotech Internal Use only
( ) General Business Information

Larsen & Toubro Infotech Ltd.

www.Lntinfotech.com

This Document is classified as:

L&T Infotech Proprietary   L&T Infotech Confidential   L&T Infotech Internal Use Only   L&T Infotech General Business  

This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.

______________________________________________________________________

_______________________________________________
bug-libextractor mailing list
bug-libextractor@...
http://lists.gnu.org/mailman/listinfo/bug-libextractor

Re: Libextractor:Cross compilation Error

by Christian Grothoff :: Rate this Message:

| View Threaded | Show Only this Message

LE generally does not cross-compile; I was not aware that iconv was a problem,
but the generated code for the printable-extractors certainly prevents
cross-compilation at this point (you can disable those with
the --disable-printable).

My best guess for the iconv problem is that your cross-compiler looks for
iconv.h in a different location and does not find it there.

Good luck!

Christian

On Thursday 18 December 2008 09:13:16 pm Tomy Joseph wrote:

> Hi,
> I tried the following steps to cross compile Libextractor:
> 1: ./configure target=mips-linux --host=mips-linux build=i686-pc-linux-gnu
>
> --prefix=/home/tomy/File/extractor (Tried without :build=i686-pc-linux-gnu
>
> )
> 2: make : this time I am getting the following errors:
> =======================================
> In file included from extractor.c:21:
> ../../src/include/platform.h:60:19: iconv.h: No such file or directory
> ==========================================================
> During Configuration I got the following logs regarding iconv:
> ===================================================
> checking for iconv... no, consider installing GNU libiconv
>
> checking iconv.h usability... no
> checking iconv.h presence... no
> checking for iconv.h... no
> ========================================================
>
> but in normal x86 Compilation I found that all the checks for iconv is
> yes...
>
> Could you please tell me the exact problem??  Also I tried with Configure
> options like --with-libiconv-prefix[=DIR] --without-libiconv-prefix..
>
>
> Tomy P. Joseph
> Samsung ODC,
> L&T Infotech,Plot No. 25-30,
> EPIP I Phase Industrial Area,
> Whitefield,Bangalore-66.
> Mobile: +919448856102
> Fax:+91-80-8525233.
>
> ( ) L&T Infotech Proprietary & Confidential
> ( ) L&T Infotech Confidential
> (+) L&T Infotech Internal Use only
> ( ) General Business Information
>
> Larsen & Toubro Infotech Ltd.
> www.Lntinfotech.com
>
> This Document is classified as:
>
> L&T Infotech Proprietary   L&T Infotech Confidential   L&T Infotech
> Internal Use Only   L&T Infotech General Business
>
> This Email may contain confidential or privileged information for the
> intended recipient (s) If you are not the intended recipient, please do
> not use or disseminate the information, notify the sender and delete it
> from your system.
>
> ______________________________________________________________________




_______________________________________________
bug-libextractor mailing list
bug-libextractor@...
http://lists.gnu.org/mailman/listinfo/bug-libextractor

Re: Libextractor:Cross compilation Error

by Tomy Joseph :: Rate this Message:

| View Threaded | Show Only this Message


Hi,
I have cross compiled libiconv and then linked the libraries with libextractor. But still I am getting errors related to iconv.

I tried the following steps to cross compile Libextractor:
./configure --target=mips-linux --host=i686-pc-linux-gnu --prefix=/home/tomy/libextr/ --disable-printable --with-libiconv=yes --with-libiconv-prefix=/home/tomy/libiconv/ (This directory contains all iconv libs,bin etc.)

But during make...
============================================================================================================================
/opt/uclibc-toolchain/ifx-lxdb-1-2/gcc-3.3.6/toolchain-mips/bin/../lib/gcc-lib/mips-linux-uclibc/3.3.6/../../../../mips-linux-uclibc/bin/ld: warning: libltdl.so.3, needed by ../../src/main/.libs/libextractor.so, not found (try using -rpath or -rpath-link)
extract.o(.text+0x550): In function `iconvHelper':
/smb/josepht/libextractor-0.5.18/src/main/iconv.c:36: undefined reference to `libiconv'
extract.o(.text+0x604):/smb/josepht/libextractor-0.5.18/src/main/iconv.c:44: undefined reference to `libiconv'
extract.o(.text+0x6f0): In function `printSelectedKeywords':
/smb/josepht/libextractor-0.5.18/src/main/extract.c:186: undefined reference to `libiconv_open'
extract.o(.text+0x7b0):/smb/josepht/libextractor-0.5.18/src/main/extract.c:214: undefined reference to `libiconv_close'
extract.o(.text+0x960): In function `printSelectedKeywordsGrepFriendly':
/smb/josepht/libextractor-0.5.18/src/main/extract.c:234: undefined reference to `libiconv_open'
extract.o(.text+0x9e0):/smb/josepht/libextractor-0.5.18/src/main/extract.c:262: undefined reference to `libiconv_close'
../../src/main/.libs/libextractor.so: undefined reference to `lt_dlgetsearchpath'
../../src/main/.libs/libextractor.so: undefined reference to `lt_dlerror'
../../src/main/.libs/libextractor.so: undefined reference to `lt_dlclose'
../../src/main/.libs/libextractor.so: undefined reference to `lt_dlexit'
../../src/main/.libs/libextractor.so: undefined reference to `lt_dlsetsearchpath'
../../src/main/.libs/libextractor.so: undefined reference to `lt_dlopenext'
../../src/main/.libs/libextractor.so: undefined reference to `lt_dlsym'
../../src/main/.libs/libextractor.so: undefined reference to `lt_dlinit'
===================================================================================================================

Could u pls tell me the exact problem ??

tnks& rgds,
tomy.

Larsen & Toubro Infotech Ltd.

www.Lntinfotech.com

This Document is classified as:

L&T Infotech Proprietary   L&T Infotech Confidential   L&T Infotech Internal Use Only   L&T Infotech General Business  

This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.

______________________________________________________________________

_______________________________________________
bug-libextractor mailing list
bug-libextractor@...
http://lists.gnu.org/mailman/listinfo/bug-libextractor

Re: Libextractor:Cross compilation Error

by lcimmier@actech-innovation.com :: Rate this Message:

| View Threaded | Show Only this Message

Hi,

It looks like you missed another library : libltdl (the first line of your post)
Try to compile with adding "--enable-ltdl-install" while configuring libextractor...
Here, my configuration line (which work for powerpc cross-compilation)

./configure --prefix=%{_prefix} --host=i686 --build=powerpc-linux \
   --enable-glib --enable-ltdl-install --with-libiconv-prefix=$DEV_IMAGE/usr \
   --disable-printable --disable-glibtest --disable-gtktest

Hope this will help !

Regards

CimCim

Le jeudi 22 janvier 2009 à 14:03 +0530, Tomy Joseph a écrit :

Hi,
I have cross compiled libiconv and then linked the libraries with libextractor. But still I am getting errors related to iconv.

I tried the following steps to cross compile Libextractor:
./configure --target=mips-linux --host=i686-pc-linux-gnu --prefix=/home/tomy/libextr/ --disable-printable --with-libiconv=yes --with-libiconv-prefix=/home/tomy/libiconv/ (This directory contains all iconv libs,bin etc.)

But during make...
============================================================================================================================
/opt/uclibc-toolchain/ifx-lxdb-1-2/gcc-3.3.6/toolchain-mips/bin/../lib/gcc-lib/mips-linux-uclibc/3.3.6/../../../../mips-linux-uclibc/bin/ld: warning: libltdl.so.3, needed by ../../src/main/.libs/libextractor.so, not found (try using -rpath or -rpath-link)
extract.o(.text+0x550): In function `iconvHelper':
/smb/josepht/libextractor-0.5.18/src/main/iconv.c:36: undefined reference to `libiconv'
extract.o(.text+0x604):/smb/josepht/libextractor-0.5.18/src/main/iconv.c:44: undefined reference to `libiconv'
extract.o(.text+0x6f0): In function `printSelectedKeywords':
/smb/josepht/libextractor-0.5.18/src/main/extract.c:186: undefined reference to `libiconv_open'
extract.o(.text+0x7b0):/smb/josepht/libextractor-0.5.18/src/main/extract.c:214: undefined reference to `libiconv_close'
extract.o(.text+0x960): In function `printSelectedKeywordsGrepFriendly':
/smb/josepht/libextractor-0.5.18/src/main/extract.c:234: undefined reference to `libiconv_open'
extract.o(.text+0x9e0):/smb/josepht/libextractor-0.5.18/src/main/extract.c:262: undefined reference to `libiconv_close'
../../src/main/.libs/libextractor.so: undefined reference to `lt_dlgetsearchpath'
../../src/main/.libs/libextractor.so: undefined reference to `lt_dlerror'
../../src/main/.libs/libextractor.so: undefined reference to `lt_dlclose'
../../src/main/.libs/libextractor.so: undefined reference to `lt_dlexit'
../../src/main/.libs/libextractor.so: undefined reference to `lt_dlsetsearchpath'
../../src/main/.libs/libextractor.so: undefined reference to `lt_dlopenext'
../../src/main/.libs/libextractor.so: undefined reference to `lt_dlsym'
../../src/main/.libs/libextractor.so: undefined reference to `lt_dlinit'
===================================================================================================================

Could u pls tell me the exact problem ??

tnks& rgds,
tomy.

Larsen & Toubro Infotech Ltd.
www.Lntinfotech.com

This Document is classified as:

L&T Infotech Proprietary   L&T Infotech Confidential   L&T Infotech Internal Use Only   L&T Infotech General Business  

This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.
______________________________________________________________________
_______________________________________________
bug-libextractor mailing list
bug-libextractor@...
http://lists.gnu.org/mailman/listinfo/bug-libextractor

_______________________________________________
bug-libextractor mailing list
bug-libextractor@...
http://lists.gnu.org/mailman/listinfo/bug-libextractor

Parent Message unknown Re: Libextractor:Cross compilation Error

by lcimmier@actech-innovation.com :: Rate this Message:

| View Threaded | Show Only this Message

Hum,
Is the error about libltdl still there ?
If yes, you'll probably need to add this library (cross compilation, etc...)

I hope that this library will also fix the libiconv problem, cause it defines some useful open/close function, that may break iconv...

Let me know how it works !

Regards

CimCim

Le jeudi 22 janvier 2009 à 15:47 +0530, Tomy Joseph a écrit :

Hi...

I have tried like this...
./configure --target=mips-linux --host=i686-pc-linux-gnu --build=mips-linux --prefix=/smb/josepht/libextr/ --enable-glib --enable-ltdl-install --with-libiconv=yes --with-libiconv-prefix=/smb/josepht/libiconv/ --disable-printable --disable-glibtest --disable-gtktest


but still same errors...





Tomy P. Joseph
Samsung ODC,
L&T Infotech,Plot No. 25-30,
EPIP I Phase Industrial Area,
Whitefield,Bangalore-66.
Mobile: +919448856102
Fax:+91-80-8525233.

( ) L&T Infotech Proprietary & Confidential
( ) L&T Infotech Confidential
(+) L&T Infotech Internal Use only
( ) General Business Information

Larsen & Toubro Infotech Ltd.
www.Lntinfotech.com

This Document is classified as:

L&T Infotech Proprietary   L&T Infotech Confidential   L&T Infotech Internal Use Only   L&T Infotech General Business  

This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.
______________________________________________________________________

_______________________________________________
bug-libextractor mailing list
bug-libextractor@...
http://lists.gnu.org/mailman/listinfo/bug-libextractor

Parent Message unknown Re: Libextractor:Cross compilation Error

by Tomy Joseph :: Rate this Message:

| View Threaded | Show Only this Message


Hi.
In libextrator configure -help only  --disable-libtool-lock is there...But I found some error in the config.log file after the configuration..


configure:23448: checking for iconv
configure:23480: /opt/uclibc-toolchain/ifx-lxdb-1-2/gcc-3.3.6/toolchain-mips/bin/mips-linux-uclibc-gcc-3.3.6 -o conftest -g -O2 -I/smb/josepht/libiconv//include -L/smb/josepht/libiconv/lib/ conftest.c  >&5
/tmp/ccy1ZYzx.o(.text+0x34): In function `main':
/smb/josepht/libextractor-0.5.18/conftest.c:54: undefined reference to `libiconv_open'
/tmp/ccy1ZYzx.o(.text+0x60):/smb/josepht/libextractor-0.5.18/conftest.c:55: undefined reference to `libiconv'
/tmp/ccy1ZYzx.o(.text+0x78):/smb/josepht/libextractor-0.5.18/conftest.c:56: undefined reference to `libiconv_close'
collect2: ld returned 1 exit status

Will it create some problem??

Tomy P. Joseph
Samsung ODC,
L&T Infotech,Plot No. 25-30,
EPIP I Phase Industrial Area,
Whitefield,Bangalore-66.
Mobile: +919448856102
Fax:+91-80-8525233.

( ) L&T Infotech Proprietary & Confidential
( ) L&T Infotech Confidential
(+) L&T Infotech Internal Use only
( ) General Business Information

Larsen & Toubro Infotech Ltd.

www.Lntinfotech.com

This Document is classified as:

L&T Infotech Proprietary   L&T Infotech Confidential   L&T Infotech Internal Use Only   L&T Infotech General Business  

This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.

______________________________________________________________________

_______________________________________________
bug-libextractor mailing list
bug-libextractor@...
http://lists.gnu.org/mailman/listinfo/bug-libextractor

Re: Libextractor:Cross compilation Error

by Tomy Joseph :: Rate this Message:

| View Threaded | Show Only this Message


Hi..

Yes ...

-uclibc/bin/ld: warning: libltdl.so.3, needed by ../../src/main/.libs/libextractor.so, not found (try using -rpath or -rpath-link)

I added  libltdl.so aslo...

Tomy P. Joseph
Samsung ODC,
L&T Infotech,Plot No. 25-30,
EPIP I Phase Industrial Area,
Whitefield,Bangalore-66.
Mobile: +919448856102
Fax:+91-80-8525233.

( ) L&T Infotech Proprietary & Confidential
( ) L&T Infotech Confidential
(+) L&T Infotech Internal Use only
( ) General Business Information

Larsen & Toubro Infotech Ltd.

www.Lntinfotech.com

This Document is classified as:

L&T Infotech Proprietary   L&T Infotech Confidential   L&T Infotech Internal Use Only   L&T Infotech General Business  

This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.

______________________________________________________________________

_______________________________________________
bug-libextractor mailing list
bug-libextractor@...
http://lists.gnu.org/mailman/listinfo/bug-libextractor

Re: Libextractor:Cross compilation Error

by lcimmier@actech-innovation.com :: Rate this Message:

| View Threaded | Show Only this Message

Well...
So, is the libltdl problem solved ?

It still looks like that the libiconv.so isn't found by ld.
Is the -L/smb/josepht/libiconv/lib/ path correct ?
Does this directory contains libiconv.so/libiconv.so.x/libiconv.so.x.y.z/libiconv.a ?

Have a look at that point, and tell me what's happen !

Regards
CimCim

Le jeudi 22 janvier 2009 à 16:49 +0530, Tomy Joseph a écrit :

Hi.
In libextrator configure -help only  --disable-libtool-lockis there...But I found some error in the config.log file after the configuration..


configure:23448: checking for iconv
configure:23480: /opt/uclibc-toolchain/ifx-lxdb-1-2/gcc-3.3.6/toolchain-mips/bin/mips-linux-uclibc-gcc-3.3.6 -o conftest -g -O2 -I/smb/josepht/libiconv//include -L/smb/josepht/libiconv/lib/ conftest.c  >&5
/tmp/ccy1ZYzx.o(.text+0x34): In function `main':
/smb/josepht/libextractor-0.5.18/conftest.c:54: undefined reference to `libiconv_open'
/tmp/ccy1ZYzx.o(.text+0x60):/smb/josepht/libextractor-0.5.18/conftest.c:55: undefined reference to `libiconv'
/tmp/ccy1ZYzx.o(.text+0x78):/smb/josepht/libextractor-0.5.18/conftest.c:56: undefined reference to `libiconv_close'
collect2: ld returned 1 exit status

Will it create some problem??

Tomy P. Joseph
Samsung ODC,
L&T Infotech,Plot No. 25-30,
EPIP I Phase Industrial Area,
Whitefield,Bangalore-66.
Mobile: +919448856102
Fax:+91-80-8525233.

( ) L&T Infotech Proprietary & Confidential
( ) L&T Infotech Confidential
(+) L&T Infotech Internal Use only
( ) General Business Information

Larsen & Toubro Infotech Ltd.
www.Lntinfotech.com

This Document is classified as:

L&T Infotech Proprietary   L&T Infotech Confidential   L&T Infotech Internal Use Only   L&T Infotech General Business  

This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.
______________________________________________________________________
_______________________________________________
bug-libextractor mailing list
bug-libextractor@...
http://lists.gnu.org/mailman/listinfo/bug-libextractor

_______________________________________________
bug-libextractor mailing list
bug-libextractor@...
http://lists.gnu.org/mailman/listinfo/bug-libextractor

Parent Message unknown Re: Libextractor:Cross compilation Error

by Tomy Joseph :: Rate this Message:

| View Threaded | Show Only this Message


Hi,
About libiconv error, strongly I believe that it is there in Configuration . Because We can see the same error in config.log file. If u have some free time please do a final check..


Tomy P. Joseph
Samsung ODC,
L&T Infotech,Plot No. 25-30,
EPIP I Phase Industrial Area,
Whitefield,Bangalore-66.
Mobile: +919448856102
Fax:+91-80-8525233.

( ) L&T Infotech Proprietary & Confidential
( ) L&T Infotech Confidential
(+) L&T Infotech Internal Use only
( ) General Business Information

Larsen & Toubro Infotech Ltd.

www.Lntinfotech.com

This Document is classified as:

L&T Infotech Proprietary   L&T Infotech Confidential   L&T Infotech Internal Use Only   L&T Infotech General Business  

This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.

______________________________________________________________________

_______________________________________________
bug-libextractor mailing list
bug-libextractor@...
http://lists.gnu.org/mailman/listinfo/bug-libextractor