[Bug 191587] New: [mips] 'strip' corrupts static libraries

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Jul 3 19:58:59 UTC 2014


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191587

            Bug ID: 191587
           Summary: [mips] 'strip' corrupts static libraries
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
               URL: http://bpaste.net/show/8y6wgjoHTK5tpa6qOfwN/
                OS: Any
            Status: Needs Triage
          Severity: Affects Some People
          Priority: Normal
         Component: bin
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: sson at freebsd.org
                CC: garga at FreeBSD.org

In building various ports (such as devel/libpcre) I have noticed that 'strip'
corrupts the static library and the port build will fail.  To reproduce do the
following with an unstripped static library:

  root at erl:/tmp # ls -al libpcre.a 
  -rw-r--r--  1 sson  wheel  404446 Jun 11 18:52 libpcre.a
  root at erl:/tmp # strip --strip-debug libpcre.a 
  root at erl:/tmp # ls -al libpcre.a 
  -rw-r--r--  1 sson  wheel  403506 Jun 11 18:53 libpcre.a
  root at erl:/tmp # ranlib libpcre.a 
  ranlib: warning: can't find .strtab section
  ranlib: fatal: Invalid filename
  root at erl:/tmp # ls -al libpcre.a
  -rw-r--r--  1 sson  wheel  0 Jun 11 18:53 libpcre.a

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list