Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#15449 closed defect (fixed)

source-highlight 2.9 build failure

Reported by: greystone@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: source-highlight boost_regex Cc: sanchom (Sancho McCann), davis@…
Port:

Description

On Mac OS 10.5.2, on a fresh install of MacPorts 1.6, I receive the following error attempting to install source-highlight 1.9. Please note that this is the same build error as that of #14329, except I have boost version @1.35.0_0+darwin_9 installed, whereas the closed bug mentioned that upgrading to boost @1.34.1-2 fixed this problem.

...
checking whether the compiler has ios_base... yes
checking whether the Boost::Regex library is available... yes
checking for main in -lboost_regex... no
checking for main in -lboost_regex-/usr/bin/gcc-4.0... no
checking for main in -lboost_regex-/usr/bin/gcc-4.0-mt... no
checking for main in -lboost_regex-/usr/bin/gcc-4.0-mt-s... no
checking for main in -lboost_regex-/usr/bin/gcc-4.0-s... no
checking for main in -llibboost_regex... no
checking for main in -llibboost_regex-/usr/bin/gcc-4.0... no
checking for main in -llibboost_regex-/usr/bin/gcc-4.0-mt... no
checking for main in -llibboost_regex-/usr/bin/gcc-4.0-mt-s... no
checking for main in -llibboost_regex-/usr/bin/gcc-4.0-s... no
checking for main in -lboost_regex-mgw... no
checking for main in -lboost_regex-mgw... (cached) no
checking for main in -lboost_regex-mgw-mt... no
checking for main in -lboost_regex-mgw-mt-s... no
checking for main in -lboost_regex-mgw-s... no
configure: error: Could not link against boost_regex-mgw-s !

Error: Status 1 encountered during processing.

Change History (7)

comment:1 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: sanchom@… added

Issue confirmed. I'm running Mac OS X 10.5.3 on a MacBook Pro, Xcode 3.0, MacPorts trunk@37255. source-highlight builds properly if boost @1.34.1_3 is installed, but fails if boost @1.35.0_0 is installed.

comment:2 Changed 16 years ago by davis@…

Cc: davis@… added

Cc Me!

comment:3 Changed 16 years ago by geoff.tench@…

I modified the Portfile so that source-highlight 2.9 builds and runs with boost 1.35.0:

--- Portfile.original	2008-07-08 14:17:07.000000000 +1000
+++ Portfile	2008-07-08 14:25:00.000000000 +1000
@@ -23,7 +23,8 @@
     rmd160 6611fc22dfcead5157517eb6c321aaa2be5fbe1b
 
 configure.args  --infodir=${prefix}/share/info \
-                --mandir=${prefix}/share/man
+                --mandir=${prefix}/share/man \
+		--with-boost-regex=boost_regex-mt
 
 test.run        yes
 test.target     check

This might not be the ideal solution, but it got me over this particular hurdle until a MacPorts guru comes along and tidies it up.

comment:4 in reply to:  3 ; Changed 16 years ago by davis@…

Replying to geoff.tench@gmail.com:

I modified the Portfile so that source-highlight 2.9 builds and runs with boost 1.35.0:

Dumb question from a newbie. What "Portfile" are you showing a diff for? Would you mind providing an absolute path in /opt/local? Did you then just run 'sudo port install source-highlight' to use that Portfile?

I'd love to get this working on my iMac. Surprisingly, after moving my sites from Fedora Linux that use PHP, Rails, Tomcat, MySQL, and Imagemagick; source-highlight is the only missing piece.

comment:5 in reply to:  4 Changed 16 years ago by geoff.tench@…

Replying to davis@guydavis.ca:

Dumb question from a newbie. What "Portfile" are you showing a diff for? Would you mind providing an absolute path in /opt/local? Did you then just run 'sudo port install source-highlight' to use that Portfile?

Sorry about that, I assumed a bit more than I should have done... The path to the Portfile in question is:

/opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/source-highlight/Portfile

This assumes the default MacPorts prefix of "/opt/local", and using rsync for updates. After making the change (having first created a backup copy of the Portfile, even though the original was only a sync away), running "sudo port install source-highlight" did the trick. Sadly, there's no maintainer listed in the Portfile, so I'm not sure what the likelihood is of a fix getting into the repository.

comment:6 Changed 16 years ago by raimue (Rainer Müller)

Resolution: fixed
Status: newclosed

Committed in r38161.

comment:7 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.