public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug dynamic-link/14295] New: git master generates broken sotruss wrapper script
@ 2012-06-25 20:04 dschepler at gmail dot com
  2012-06-25 21:24 ` [Bug dynamic-link/14295] " schwab@linux-m68k.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: dschepler at gmail dot com @ 2012-06-25 20:04 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=14295

             Bug #: 14295
           Summary: git master generates broken sotruss wrapper script
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: dynamic-link
        AssignedTo: unassigned@sourceware.org
        ReportedBy: dschepler@gmail.com
    Classification: Unclassified


The sotruss script generated by the build process contains the line:

lib='/usr/$LIB/audit/sotruss-lib.so'

Therefore, if I try to run it, it gives the error message:

ERROR: ld.so: object '/usr/$LIB/audit/sotruss-lib.so' cannot be loaded as audit
interface: cannot open shared object file; ignored.

(Unsure what component best fits -- choosing dynamic-linker for now since it's
generated under the elf/ subdirectory.)

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug dynamic-link/14295] git master generates broken sotruss wrapper script
  2012-06-25 20:04 [Bug dynamic-link/14295] New: git master generates broken sotruss wrapper script dschepler at gmail dot com
@ 2012-06-25 21:24 ` schwab@linux-m68k.org
  2012-06-25 22:03 ` dschepler at gmail dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: schwab@linux-m68k.org @ 2012-06-25 21:24 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=14295

Andreas Schwab <schwab@linux-m68k.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #1 from Andreas Schwab <schwab@linux-m68k.org> 2012-06-25 21:24:21 UTC ---
The script only works with the installed library.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug dynamic-link/14295] git master generates broken sotruss wrapper script
  2012-06-25 20:04 [Bug dynamic-link/14295] New: git master generates broken sotruss wrapper script dschepler at gmail dot com
  2012-06-25 21:24 ` [Bug dynamic-link/14295] " schwab@linux-m68k.org
@ 2012-06-25 22:03 ` dschepler at gmail dot com
  2012-06-25 23:55 ` dschepler at gmail dot com
  2014-06-13 14:59 ` fweimer at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: dschepler at gmail dot com @ 2012-06-25 22:03 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=14295

--- Comment #2 from Daniel Schepler <dschepler at gmail dot com> 2012-06-25 22:03:07 UTC ---
(In reply to comment #1)
> The script only works with the installed library.

Umm, OK, I tried "make install install_root=~/sources/libc-install" and
~/sources/libc-install/usr/bin/sotruss still contains that line:
lib='/usr/$LIB/audit/sotruss-lib.so'

In fact, I originally detected this while doing a preliminary adaptation of
Debian packaging to glibc git (minus most of the Debian-specific patches for
eglibc 2.13).  But I also reproduced this in unpatched glibc git.  In the
Debian packages, also, the sotruss script doesn't work, with the same error
message I reported in the original message.  The package does have an
sotruss-lib.so file, which of course won't be found if LD_AUDIT is set to look
in /usr/$LIB instead of /usr/lib64.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug dynamic-link/14295] git master generates broken sotruss wrapper script
  2012-06-25 20:04 [Bug dynamic-link/14295] New: git master generates broken sotruss wrapper script dschepler at gmail dot com
  2012-06-25 21:24 ` [Bug dynamic-link/14295] " schwab@linux-m68k.org
  2012-06-25 22:03 ` dschepler at gmail dot com
@ 2012-06-25 23:55 ` dschepler at gmail dot com
  2014-06-13 14:59 ` fweimer at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: dschepler at gmail dot com @ 2012-06-25 23:55 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=14295

--- Comment #3 from Daniel Schepler <dschepler at gmail dot com> 2012-06-25 23:54:49 UTC ---
Ah, now I see -- $LIB is an alias interpreted by the dynamic linker.  If I run
the script under strace with Debian eglibc installed, I do see it searching for
/usr/lib/x86_64-linux-gnu/audit/sotruss-lib.so.  So I guess the real issue is
that I must have missed the Debian-specific patch that makes $LIB expand to the
correct multi-arch directory.

Sorry for the noise...

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug dynamic-link/14295] git master generates broken sotruss wrapper script
  2012-06-25 20:04 [Bug dynamic-link/14295] New: git master generates broken sotruss wrapper script dschepler at gmail dot com
                   ` (2 preceding siblings ...)
  2012-06-25 23:55 ` dschepler at gmail dot com
@ 2014-06-13 14:59 ` fweimer at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: fweimer at redhat dot com @ 2014-06-13 14:59 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=14295

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

end of thread, other threads:[~2014-06-13 14:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-25 20:04 [Bug dynamic-link/14295] New: git master generates broken sotruss wrapper script dschepler at gmail dot com
2012-06-25 21:24 ` [Bug dynamic-link/14295] " schwab@linux-m68k.org
2012-06-25 22:03 ` dschepler at gmail dot com
2012-06-25 23:55 ` dschepler at gmail dot com
2014-06-13 14:59 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).