ports/155546: libtool doesn't work properly if not using built in compiler

Stephen Montgomery-Smith stephen at missouri.edu
Mon Mar 14 00:50:07 UTC 2011


>Number:         155546
>Category:       ports
>Synopsis:       libtool doesn't work properly if not using built in compiler
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 14 00:50:06 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Stephen Montgomery-Smith
>Release:        FreeBSD 7.4-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD wilberforce 7.4-PRERELEASE FreeBSD 7.4-PRERELEASE #0: Wed Dec 1 20:53:06 CST 2010 stephen at wilberforce:/usr/obj/usr/src/sys/GENERIC i386


	
>Description:
	

If you are using a compiler, like gcc45, in a port, then libtool doesn't always work properly.
>How-To-Repeat:
Try to build the vis5d+ port.

You will get an error like this

multiple definition of `__i686.get_pc_thunk.bx
	
>Fix:

	

Here is one suggestion.  It causes libtool to respect $CC and $CXX.  But you would have to do this for the other tools used for linking.

This will add a new file called patch-configure.

diff -urN /usr/ports/devel/libtool/files/patch-configure libtool/files/patch-configure
--- /usr/ports/devel/libtool/files/patch-configure	1970-01-01 00:00:00.000000000 +0000
+++ libtool/files/patch-configure	2011-03-01 04:29:41.000000000 +0000
@@ -0,0 +1,26 @@
+--- configure.bak	2010-09-22 14:44:17.000000000 +0000
++++ configure	2011-03-01 04:23:35.000000000 +0000
+@@ -27526,7 +27526,9 @@
+ old_archive_cmds=$lt_old_archive_cmds
+ 
+ # A language specific compiler.
+-CC=$lt_compiler
++if test -z "\$CC"; then \\
++  CC=$lt_compiler
++fi
+ 
+ # Is the compiler the GNU compiler?
+ with_gcc=$GCC
+@@ -27872,7 +27874,11 @@
+ old_archive_cmds=$lt_old_archive_cmds_CXX
+ 
+ # A language specific compiler.
+-CC=$lt_compiler_CXX
++if test -z "\$CXX"; then \\
++  CC=$lt_compiler_CXX
++else
++  CC=\$CXX
++fi
+ 
+ # Is the compiler the GNU compiler?
+ with_gcc=$GCC_CXX

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



More information about the freebsd-ports-bugs mailing list