Re: ORBit 0.3.0: --disable-static doesn't work



sopwith@redhat.com (Elliot Lee) writes:
> On Tue, 22 Sep 1998 15:51:41 +0200 (MET DST), Alexander Jolk
> <jolk@ap-pc513b.physik.uni-karlsruhe.de> wrote: 
> >You can't compile the latest ORBit 0.3.0 (from CVS) using `./configure
> >--disable-static'.  This is because several `Makefile.am's explicitly
> >request `-static' linking.  The affected files are
> >src/idl-compiler/Makefile.am, test/Makefile.am, and
> >test/test-poa/Makefile.am.  I removed the `-static' flag, and ORBit
> >compiled without further problems.
> >
> >Why was static linking requested in the first place?
> 
> Because otherwise the test cases will use already-installed ORBit
> libraries (it's not real static linking, just linking in the ORBit libs
> statically).

Are you sure?  Did you check with ldd?  I though `libtool' took care of
that.  Let's see (I compiled without the `-static'):

(Don't panic: Output of pwd/ldd edited to say `~' instead of my homedir)
  $ pwd
  ~/gnome/ORBit/build/sol2/test 
  $ ../libtool --mode=execute ldd ../src/idl-compiler/orbit-idl 
        libIDL.so.0 =>   ~/gnome/ORBit/build/sol2/src/idl-compiler/../../libIDL/.libs/libIDL.so.0
        libglib-1.1.so.3 =>      ~/sol2/lib/libglib-1.1.so.3
        libm.so.1 =>     /usr/lib/libm.so.1
        libresolv.so.2 =>        /usr/lib/libresolv.so.2
        libnsl.so.1 =>   /usr/lib/libnsl.so.1
        libsocket.so.1 =>        /usr/lib/libsocket.so.1
        libc.so.1 =>     /usr/lib/libc.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        libintl.so.1 =>  /usr/lib/libintl.so.1
        libmp.so.1 =>    /usr/lib/libmp.so.1
        libw.so.1 =>     /usr/lib/libw.so.1

  $ ../libtool --mode=execute ldd ./echo-server
        libORBit.so.0 =>         ~/gnome/ORBit/build/sol2/test/../src/orb/.libs/libORBit.so.0
        libglib-1.1.so.3 =>      ~/sol2/lib/libglib-1.1.so.3
        libm.so.1 =>     /usr/lib/libm.so.1
        libresolv.so.2 =>        /usr/lib/libresolv.so.2
        libnsl.so.1 =>   /usr/lib/libnsl.so.1
        libsocket.so.1 =>        /usr/lib/libsocket.so.1
        libIIOP.so.0 =>  ~/gnome/ORBit/build/sol2/test/../src/IIOP/.libs/libIIOP.so.0
        libORBitutil.so.0 =>     ~/gnome/ORBit/build/sol2/test/../src/ORBitutil/.libs/libORBitutil.so.0
        libc.so.1 =>     /usr/lib/libc.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        libintl.so.1 =>  /usr/lib/libintl.so.1
        libmp.so.1 =>    /usr/lib/libmp.so.1
        libw.so.1 =>     /usr/lib/libw.so.1

  $ grep LD_LIBRARY_PATH echo-server
    # Add our own library path to LD_LIBRARY_PATH
    LD_LIBRARY_PATH="$thisdir/../src/orb/.libs:$thisdir/../src/IIOP/.libs:$thisdir/../src/ORBitutil/.libs:$LD_LIBRARY_PATH"

- Hari
-- 
Raja R Harinath ------------------------------ harinath@cs.umn.edu
"When all else fails, read the instructions."      -- Cahn's Axiom
"Our policy is, when in doubt, do the right thing."   -- Roy L Ash



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