Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Jan 1997 20:03:47 +0100 (CET)
From:      Ollivier Robert <roberto@keltia.freenix.fr>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/2404: ldd(1) displays some shared libs paths incorrectly
Message-ID:  <199701071903.UAA15338@keltia.freenix.fr>
Resent-Message-ID: <199701071950.LAA07312@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         2404
>Category:       bin
>Synopsis:       It displays libfoo.N.M as '-llibfoo.so.N.M version 0.0'
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan  7 11:50:03 PST 1997
>Last-Modified:
>Originator:     Ollivier Robert
>Organization:
Usenet Canal Historique
>Release:        FreeBSD 3.0-CURRENT i386
>Environment:

FreeBSD keltia.freenix.fr 3.0-CURRENT FreeBSD 3.0-CURRENT #33: Sat Dec 21 12:57:17 CET 1996     roberto@keltia.freenix.fr:/src/src/sys/compile/DKELTIA  i386

    Current from Dec. 21st.

    Perl 5.003_19

>Description:

    When linking an executable with a shared object, link with the
    following command:

    gcc -o foo foo.o libbar.so.N.M

    ldd -v foo produces a weird output:

   ...
  Shared object dependencies:
    -llibfoo.so.N.M    version 0.0
    -lc                version 3.0
  ...

  real example:

  % /usr/bin/ld -e start -dc -dp -o suidperl /usr/lib/crt0.o
  -L/usr/local/lib -R/usr/local/lib/perl5/i386-freebsd/5.00319/CORE
  perlmain.o sperl.o lib/auto/DynaLoader/DynaLoader.a libperl.so.3.19
  -lm -lc -lcrypt /usr/lib/libgcc.a -lc /usr/lib/libgcc.a 

  % ldd -v suidperl
  ...
  Shared object dependencies:
    -llibperl.so.3.19  version 0.0
    -lm                version 2.0
    -lc                version 3.0
    -lcrypt            version 2.0
  Shared object additional paths:
    /usr/local/lib/perl5/i386-freebsd/5.00319/CORE
  Relocations:
  ... 

>How-To-Repeat:

	See above or try to compile Perl5.003_NN with shared libperl (any
    subversion of NN should have the same problem).


>Fix:
	
	Unknown.

    Workaround is to specify '-lperl' instead of the real complete
    name (libperl.so.3.19).



>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199701071903.UAA15338>