| 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: |
|
||||||
Responsible Changed From-To: freebsd-ports-bugs->ade Over to maintainer. Responsible Changed From-To: ade->freebsd-ports-bugs Return to the fold after releasing autotools back into the wild. 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 Responsible Changed From-To: freebsd-ports-bugs->ade Reassign to the man that didn't run away far enough and fast enough. 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. 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. |
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.