Re: Missing symbols during armel build tentative
Am 22.05.2012 21:28, schrieb xavier grave:
> Hi,
>
> During a build of polyorb 2.8~20110207 on the armel architecture I get
> following errors :
> ADA_PROJECT_PATH="/home/xavier/labo_polyorb/org.debian.polyorb/projects:/home/xavier/labo_polyorb/org.debian.polyorb/projects:$ADA_PROJECT_PATH"
>
>
gnatmake -P polyorb_tools_po_catref.gpr --create-missing-dirs
> -L/home/xavier/labo_polyorb/org.debian.polyorb/lib -XLibversion=3
> -XLibtype=DYNAMIC -R -j1 -cargs -bargs -E gnatbind -shared -E -I- -x
> /home/xavier/labo_polyorb/org.debian.polyorb/DYNAMIC/tools/po_catref/po_catref.ali
>
>
gnatlink
> /home/xavier/labo_polyorb/org.debian.polyorb/DYNAMIC/tools/po_catref/po_catref.ali
>
>
-shared-libgcc -Wl,--as-needed
> -L/home/xavier/labo_polyorb/org.debian.polyorb/lib -R
> -L/home/xavier/labo_polyorb/org.debian.polyorb/DYNAMIC/lib/
> -lpolyorb-setup
> -L/home/xavier/labo_polyorb/org.debian.polyorb/DYNAMIC/lib/
> -lpolyorb-corba-cos-time
> -L/home/xavier/labo_polyorb/org.debian.polyorb/DYNAMIC/lib/
> -lpolyorb-corba-cos-notification
> -L/home/xavier/labo_polyorb/org.debian.polyorb/DYNAMIC/lib/
> -lpolyorb-corba-cos-naming
> -L/home/xavier/labo_polyorb/org.debian.polyorb/DYNAMIC/lib/ -lpolyorb-dsa
> -L/home/xavier/labo_polyorb/org.debian.polyorb/DYNAMIC/lib/ -lpolyorb-moma
> -L/home/xavier/labo_polyorb/org.debian.polyorb/DYNAMIC/lib/
> -lpolyorb-corba-portableinterceptor
> -L/home/xavier/labo_polyorb/org.debian.polyorb/DYNAMIC/lib/
> -lpolyorb-corba-dynamicany
> -L/home/xavier/labo_polyorb/org.debian.polyorb/DYNAMIC/lib/
> -lpolyorb-giop-miop
> -L/home/xavier/labo_polyorb/org.debian.polyorb/DYNAMIC/lib/
> -lpolyorb-giop-iiop
> -L/home/xavier/labo_polyorb/org.debian.polyorb/DYNAMIC/lib/
> -lpolyorb-giop-diop
> -L/home/xavier/labo_polyorb/org.debian.polyorb/DYNAMIC/lib/
> -lpolyorb-corba-cos-event-impl
> -L/home/xavier/labo_polyorb/org.debian.polyorb/DYNAMIC/lib/
> -lpolyorb-corba-cos-ir-impl
> -L/home/xavier/labo_polyorb/org.debian.polyorb/DYNAMIC/lib/
> -lpolyorb-corba-messaging
> -L/home/xavier/labo_polyorb/org.debian.polyorb/DYNAMIC/lib/
> -lpolyorb-corba-iop
> -L/home/xavier/labo_polyorb/org.debian.polyorb/DYNAMIC/lib/ -lpolyorb-giop
> -L/home/xavier/labo_polyorb/org.debian.polyorb/DYNAMIC/lib/
> -lpolyorb-corba-cos-event
> -L/home/xavier/labo_polyorb/org.debian.polyorb/DYNAMIC/lib/
> -lpolyorb-corba -L/home/xavier/labo_polyorb/org.debian.polyorb/DYNAMIC/lib/
> -lpolyorb -o
> /home/xavier/labo_polyorb/org.debian.polyorb/DYNAMIC/tools/po_catref/po_catref
>
>
/home/xavier/labo_polyorb/org.debian.polyorb/DYNAMIC/lib//libpolyorb-giop.so:
> undefined reference to `pthread_create'
> /home/xavier/labo_polyorb/org.debian.polyorb/DYNAMIC/lib//libpolyorb-giop.so:
>
>
undefined reference to `pthread_key_create'
> /home/xavier/labo_polyorb/org.debian.polyorb/DYNAMIC/lib//libpolyorb-giop.so:
>
>
undefined reference to `pthread_getspecific'
> /home/xavier/labo_polyorb/org.debian.polyorb/DYNAMIC/lib//libpolyorb-giop.so:
>
>
undefined reference to `pthread_attr_setstacksize'
> /home/xavier/labo_polyorb/org.debian.polyorb/DYNAMIC/lib//libpolyorb-giop.so:
>
>
undefined reference to `pthread_kill'
> /home/xavier/labo_polyorb/org.debian.polyorb/DYNAMIC/lib//libpolyorb-giop.so:
>
>
undefined reference to `pthread_sigmask'
> /home/xavier/labo_polyorb/org.debian.polyorb/DYNAMIC/lib//libpolyorb-giop.so:
>
>
undefined reference to `pthread_setspecific'
> /home/xavier/labo_polyorb/org.debian.polyorb/DYNAMIC/lib//libpolyorb-giop.so:
>
>
undefined reference to `pthread_mutexattr_init'
> collect2: ld returned 1 exit status gnatlink: error when calling
> /usr/bin/gcc-4.6 gnatmake: *** link failed.
>
> For example the symbol pthread_mutexattr_init is present in
> /usr/lib/arm-linux-gnueabi/libpthread.a (found using command : nm -A
> /usr/lib/arm-linux-gnueabi/libpthread.* | grep pthread_mutexattr_init |
> grep T) but I get the same error is I add a -largs
> /usr/lib/arm-linux-gnueabi/libpthread.a to the build.
>
> I dug a little the debian ada list without finding any reference to such
> problem already arising.
>
> Does anyone with Ada/gcc experience have an idea of the source problem ?
> Any help welcome :)
try without the --as-needed? I just sent a fix for #680292 which should fix
this soonish.
it looks like libpolyorb-giop.so wants linking with -pthread. So maybe pass
-pthread to the link command (don't pass -lpthread directly).
Matthias
Reply to: