Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* How to build a shared library on DEC alpha 3.2
@ 1998-08-06  4:00 boucheau
  1998-08-06  4:00 ` Joe Mario
  0 siblings, 1 reply; 5+ messages in thread
From: boucheau @ 1998-08-06  4:00 UTC (permalink / raw)


Hi,
I try to build a shared library on DEC alpha V3.2 using the following
commands:

/bin/cc -c -g GccOptimizedFlags -fpic -Dlint -DPOSIX_SOURCE  -DOSF
-Dalpha -DSYSV -DRE_DECLARE_SIGNALS -Dbsd -taso -migrate -assume
noaligned_object -I. -I/vb/source -I/vb/source/include -I/DEC/include
-I/usr/local/include
-I/usr/include/X11 -IIsm_Extra_Osi_Inc_Dir /vb/source/vb_version.c
touch .vb_version~
/bin/cc -shared -Dbsd -taso -migrate -assume noaligned_object -threads \

   vb_version.o -L/vb/DEC/lib -L/vb/DEC/shared_lib -warning_unresolved
-lm   \
          -o libvb_version.so

When I execute a binary C doing a dlopen of this shared library, I got
the error message

 dlopen: Cannot map library :/vb/DEC/shared_lib/libvb_version.so

If I override my libvb_version.so by a system shared library (for
example /usr/shlib/libots.so)
the dlopen is well performed.
my shared lib and the system shared lib has not the same format:
$ file libvb_version.so
libvb_version.so:      COFF format alpha dynamically linked, demand
paged executable or object module not stripped - version 3.11-8
$ file libots.so
libots.so_s1:   COFF format alpha shared library, demand paged
executable or object module not stripped - version 3.11-8
So my problem comes from a bad construction of my shared lib, but how
build a shared library ?
Thanks in advance.








^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1998-08-07  4:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-08-06  4:00 How to build a shared library on DEC alpha 3.2 boucheau
1998-08-06  4:00 ` Joe Mario
1998-08-06  4:00   ` boucheau
1998-08-06  4:00   ` Tim Mooney
1998-08-07  4:00     ` Joe Mario

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox