[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Pandora] [offtopic] linking with external .a files
From: |
uaca |
Subject: |
Re: [Pandora] [offtopic] linking with external .a files |
Date: |
Sun, 30 Mar 2003 13:02:54 +0200 |
User-agent: |
Mutt/1.3.28i |
5~On Sat, Mar 29, 2003 at 10:03:43PM +0100, address@hidden wrote:
>
> Hi
>
>
> How should I build a component with an external .a file?
>
> I want to add features to a component already build and now I want to add
> some external funcionality, with it's available as a .a file
>
> where should begin?
finally It seems I've got it running by hand, I found the following problems
while compiling pandora with --enable-all-static in the linking stage:
/home/ulisses/w/pandora-12-12-02/libpandora/.libs/libputil.a(ltdl.o): In
function ys_dl_open':
/home/ulisses/w/pandora-12-12-02/libpandora/ltdl.c:971: undefined reference
to lopen'
/home/ulisses/w/pandora-12-12-02/libpandora/ltdl.c:975: undefined reference
to lerror'
/home/ulisses/w/pandora-12-12-02/libpandora/ltdl.c:975: undefined reference
to lerror'
/home/ulisses/w/pandora-12-12-02/libpandora/.libs/libputil.a(ltdl.o): In
function ys_dl_close':
/home/ulisses/w/pandora-12-12-02/libpandora/ltdl.c:988: undefined reference
to lclose'
/home/ulisses/w/pandora-12-12-02/libpandora/ltdl.c:990: undefined reference
to lerror'
/home/ulisses/w/pandora-12-12-02/libpandora/ltdl.c:990: undefined reference
to lerror'
/home/ulisses/w/pandora-12-12-02/libpandora/.libs/libputil.a(ltdl.o): In
function ys_dl_sym':
/home/ulisses/w/pandora-12-12-02/libpandora/ltdl.c:1003: undefined reference
to lsym'
/home/ulisses/w/pandora-12-12-02/libpandora/ltdl.c:1007: undefined reference
to lerror'
/home/ulisses/w/pandora-12-12-02/libpandora/ltdl.c:1007: undefined reference
to lerror'
this seems to happen because the link command like doesn't include
/usr/lib/libdl.a (I fixed manually in the Makefile)
previously to that
I find the following message
/bin/sh ../libtool --mode=link g++ -g -O2 -pipe -fno-rtti -fno-exceptions
-g -fno-weak -Wall -Wno-u
nused -Wmissing-prototypes -Wstrict-prototypes -O2 -D_REENTRANT -o
pandora -all-static -export-dynamic -dlopen ../pandora_components/libpbase.la
-dlopen
../pandora_components/libpcache.la -dlopen ../pandora_components/libpcontrol.la
-dlopen
../pandora_components/libpcore.la -dlopen ../pandora_compo
nents/libpdns.la -dlopen ../pandora_components/libpeval.la -dlopen
../pandora_components/libpguile.la -dlopen ../pandora_components/libphttp.la
-dlopen
../pandora_components/libpicmp.la -dlopen ../pandora_components/libpicp.la
-dlopen ../pandora_components/libpip.la -dlopen
../pandora_components/libprpc.la -dlopen ../pandora_components/libpsys.la
-dlopen
../pandora_components/libptcp.la -dlopen ../pandora_components/libptest.la
-dlopen ../pandora_components/libpudp.la
-dlopen ../pandora_components/libpvvm.la -dlopen
../pandora_components/libpw2n.la main.o
../libpandora/libpandora.la
libtool: link: warning: C_LIBTOOL_DLOPEN' not used. Assuming no dlopen support.
^^^^^^^^^^^^^^^^^
some info about libtool:
grep libtool configure.log
checking if libtool supports shared libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
appending configuration tag "GCJ" to libtool
checking whether libtool supports -dlopen/-dlpreopen... no
^^^^^^^^^^^^^^^^^^^^^^^^
checking if libtool supports shared libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
appending configuration tag "GCJ" to libtool
what development environment do you use? (OS/distro, gcc version...)
I'm using redhat-7.2:
gcc version 2.96 20000731 (Red Hat Linux 7.2 2.96-112.7.2)
glibc-2.2.4-31
glibc-devel-2.2.4-31
libstdc++-devel-2.96-112.7.2
libstdc++-2.96-112.7.2
binutils-2.11.90.0.8-12 (maybe this is an upgraded version)
This is pandora as of 12-12-2002 but also happens exactly with pandora-current
Debian GNU/Linux: a dream come true
-----------------------------------------------------------------------------
"Computers are useless. They can only give answers." Pablo Picasso
---> Visita http://www.valux.org/ para saber acerca de la <---
---> AsociaciĆ³n Valenciana de Usuarios de Linux <---