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

Re: Almost finished porting gnat-4.6 to GNU/Hurd



On Thu, 2012-03-22 at 19:16 +0100, Ludovic Brenta wrote:
> Svante Signell writes:

> > #0  0x01050b10 in
> > system__task_primitives__operations__specific__initializeXnn@plt ()
> > from /usr/lib/i386-gnu/libgnarl-4.6.so.1
> > #1  0x0105de9f in system.task_primitives.operations.initialize (
> >     environment_task=0x8066b00) at s-taprop.adb:1420
> 
> This calls
> 
> pthread_key_create (ATCB_Key'Access, null);
> 
> at s-tpopsp-posix-foreign.adb:50; here ATCB_Key is an aliased global
> variable declared at s-taprop-posix.adb:86, so its access value cannot
> be null.  MAybe what is happening is that pthread_key_create is itself
> an unresolved symbol?  What does
> 
> ldd music123
> 
> say?
> 
> What does
> 
> ldd /usr/lib/i386-gnu/libgnarl-4.6.so.1
> 
> say?
> 
> They should be both linked with libpthread, or Hurd's equivalent.

Thank you for your reply. Looks like both are linked against libpthread.
The commands above result in the following:

ldd ./music123
libgnarl-4.6.so.1 => /usr/lib/i386-gnu/libgnarl-4.6.so.1 (0x0103e000)
libgnat-4.6.so.1 => /usr/lib/i386-gnu/libgnat-4.6.so.1 (0x01076000)
libpthread.so.0.3 => /lib/libpthread.so.0.3 (0x01389000)
librt.so.1 => /lib/i386-gnu/librt.so.1 (0x01399000)
libgcc_s.so.1 => /lib/i386-gnu/libgcc_s.so.1 (0x0139d000)
libc.so.0.3 => /lib/i386-gnu/libc.so.0.3 (0x013ba000)
/lib/ld.so => /lib/ld.so.1 (0x00001000)
libm.so.6 => /lib/i386-gnu/libm.so.6 (0x0154f000)
libihash.so.0.3 => /lib/libihash.so.0.3 (0x01575000)
libmachuser.so.1 => /lib/i386-gnu/libmachuser.so.1 (0x01579000)
libhurduser.so.0.3 => /lib/i386-gnu/libhurduser.so.0.3 (0x0158d000)
libpthread-stubs.so.0 => /lib/i386-gnu/libpthread-stubs.so.0 (0x015b3000

ldd /usr/lib/i386-gnu/libgnarl-4.6.so.1
libpthread.so.0.3 => /lib/libpthread.so.0.3 (0x01076000)
libgcc_s.so.1 => /lib/i386-gnu/libgcc_s.so.1 (0x01086000)
libc.so.0.3 => /lib/i386-gnu/libc.so.0.3 (0x010a3000)
libihash.so.0.3 => /lib/libihash.so.0.3 (0x01239000)
/lib/ld.so.1 (0x00001000)
libmachuser.so.1 => /lib/i386-gnu/libmachuser.so.1 (0x0123c000)
libhurduser.so.0.3 => /lib/i386-gnu/libhurduser.so.0.3 (0x01250000)
libpthread-stubs.so.0 => /lib/i386-gnu/libpthread-stubs.so.0
(0x01276000)



Reply to: