Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Nov 2013 05:56:17 GMT
From:      Paul Koch <paul.koch137@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/183773: dmalloc port incorrectly installs striped .a libraries
Message-ID:  <201311080556.rA85uHWS051203@oldred.freebsd.org>
Resent-Message-ID: <201311080600.rA860164052664@freefall.freebsd.org>

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

>Number:         183773
>Category:       ports
>Synopsis:       dmalloc port incorrectly installs striped .a libraries
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 08 06:00:01 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Paul Koch
>Release:        FreeBSD 10.0 Beta 1
>Organization:
>Environment:
FreeBSD speedy.akips.com 10.0-BETA1 FreeBSD 10.0-BETA1 #0 r256420: Sun Oct 13 01:43:07 UTC 2013     root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
Install devel/dmalloc port.

ls /usr/local/lib/libdmalloc*.a

speedy:$ ls -l /usr/local/lib/libdmalloc*.a
-rwxr-xr-x  1 root  wheel  109092 Nov  8 15:45 /usr/local/lib/libdmalloc.a
-rwxr-xr-x  1 root  wheel  111364 Nov  8 15:45 /usr/local/lib/libdmallocth.a
-rwxr-xr-x  1 root  wheel  113202 Nov  8 15:45 /usr/local/lib/libdmallocthcxx.a
-rwxr-xr-x  1 root  wheel  110930 Nov  8 15:45 /usr/local/lib/libdmallocxx.a

Libraries get installed as 755 instead of 644 like all other .a libs.

nm /usr/local/lib/libdmalloc.a

arg_check.o:
nm: arg_check.o: no symbols

compat.o:
nm: compat.o: no symbols

dmalloc_rand.o:
nm: dmalloc_rand.o: no symbols

dmalloc_tab.o:
nm: dmalloc_tab.o: no symbols

env.o:
nm: env.o: no symbols

heap.o:
nm: heap.o: no symbols

chunk.o:
nm: chunk.o: no symbols

error.o:
nm: error.o: no symbols

malloc.o:
nm: malloc.o: no symbols



The error appears to be in the generated dmalloc Makefile where it uses
INSTALL_PROGRAM to install the libs instead of the INSTALL.

Also, ranlib fails on the port install because the installed libs have already been stripped.

>How-To-Repeat:
Install devel/dmalloc and build a binary which is statically linked against
libdmalloc.  Linker fails because the symbols are stripped from the library.
>Fix:
Don't know.

>Release-Note:
>Audit-Trail:
>Unformatted:



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