Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Jul 2011 21:57:39 GMT
From:      Alex Samorukov <samm@os2.kiev.ua>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/159046: dtrace library is linked with a wrong flags on -CURRENT
Message-ID:  <201107192157.p6JLvdR7048398@red.freebsd.org>
Resent-Message-ID: <201107192200.p6JM0KWJ011500@freefall.freebsd.org>

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

>Number:         159046
>Category:       misc
>Synopsis:       dtrace library is linked with a wrong flags on -CURRENT
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 19 22:00:20 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Alex Samorukov
>Release:        9.0-CURRENT
>Organization:
netart
>Environment:
FreeBSD test9.local 9.0-CURRENT FreeBSD 9.0-CURRENT #0: Tue Jul 19 22:51:31 CEST 2011     root@test9.local:/usr/obj/usr/src/sys/DTRACE  amd64

>Description:
/usr/src/cddl/lib/drti/Makefile contain correct $PICFLAG to link drti.o with -fpic. The problem is that this macros is not defined, because wrong include is used: bsd.prog.mk instead of bsd.lib.mk (where this macros is defined). 

>How-To-Repeat:
try to build userland dtrace app on 9-CURRENT. It will fail:

usr/bin/ld: php.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC

>Fix:
--- Makefile.orig       2011-07-19 23:53:43.000000000 +0200
+++ Makefile    2011-07-19 23:56:32.000000000 +0200
@@ -18,4 +18,4 @@
                -I${OPENSOLARIS_SYS_DISTDIR}/uts/common \
                -DPIC ${PICFLAG}
 
-.include <bsd.prog.mk>
+.include <bsd.lib.mk>


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



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