Bug 72114

Summary: [PATCH] libtool15 chokes on gcc34 on 4-STABLE
Product: Ports & Packages Reporter: Chris BeHanna <chris>
Component: Individual Port(s)Assignee: Ade Lovett <ade>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Chris BeHanna 2004-09-26 22:50:27 UTC
Attempting to build ports that use C code using libtool15 and gcc34 results in
link-time failures (references to C++ symbols).  Linking with g++34 solves the
problem, but libtool15 doesn't know how to do that.

Fix: Apply the following patch to /usr/ports/devel/libtool15/files/patch-ltmain.sh,
then reinstall libtool15 as described in the "How-To-Repeat" section.  Now,
using gcc34 from ports to build mysql will succeed.  I've tested this by
installing both mysql 4.0 client and server, and by upgrading kdebase3 and
kdelibs3.
How-To-Repeat: Install libtool15 as follows:

    cd /usr/ports/devel/libtool15
    env CC=/usr/local/bin/gcc34 CXX=/usr/local/bin/g++34 \
    LD=/usr/local/bin/g++34 make install

Next, try installing the mysql 4.0 client:

    cd /usr/ports/databases/mysql40-client
    env CC=/usr/local/bin/gcc34 CXX=/usr/local/bin/g++34 \
    LD=/usr/local/bin/g++34 make install

This will bomb at link-time.  mysql40-server will suffer similarly.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2004-09-27 04:35:14 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ade

Over to maintainer.
Comment 2 Ade Lovett freebsd_committer freebsd_triage 2005-03-07 17:48:17 UTC
Responsible Changed
From-To: ade->freebsd-ports-bugs

Return to the fold after releasing autotools back into the wild.
Comment 3 Volker Stolz freebsd_committer freebsd_triage 2005-04-14 10:13:42 UTC
Hm, while I see the problem, I strongly doubt that this is going to  
integrate seemlessly into the ports infrastructure as you can't mix  
different values for CC/CXX in any case. Or is this possible?

Volker
Comment 4 Mark Linimon freebsd_committer freebsd_triage 2005-06-15 07:43:39 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ade

Reassign to the man that didn't run away far enough and fast enough.
Comment 5 Ade Lovett freebsd_committer freebsd_triage 2005-06-17 00:58:59 UTC
State Changed
From-To: open->feedback

I really can't see how I can fold this type of change in without 
seriously damaging other parts of the tree where respecting CC and 
CXX are absolutely required.
Comment 6 Ade Lovett freebsd_committer freebsd_triage 2005-07-08 07:16:45 UTC
State Changed
From-To: feedback->closed

Sat in feedback (admittedly after a long time of investigation) 
with no response, primarily due to submitters email bouncing at 
the SMTP level. 

Proposed solution is not an option; breaks too much other stuff, 
and there are no similar reports on either 5-STABLE or 6-CURRENT 
(mainly because gcc34 is the in-tree compiler there). 

As such, reap the PR and close.