Opened 15 years ago

Closed 15 years ago

Last modified 5 years ago

#5250 closed defect (invalid)

BUG: par2 Portfile bug

Reported by: johnrosshunt@… Owned by: julian@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc:
Port: par2

Description (last modified by ryandesign (Ryan Schmidt))

par2 doesn't build under OS X 10.4.2 and xcode 2.1. A fix is included below.

diff -urN Portfile.old Portfile
--- Portfile.old        2005-10-03 21:07:15.000000000 -0500
+++ Portfile    2005-10-03 21:08:09.000000000 -0500
@@ -18,7 +18,7 @@
 distname       par2cmdline-${version}
 patchfiles     stricmp-define.patch
 configure.args  --mandir=${prefix}/share/man
-configure.env   CPPFLAGS="-L${prefix}/lib -I${prefix}/include" \
+configure.env   LDFLAGS="-L${prefix}/lib" CPPFLAGS="-I${prefix}/include" \
                 CFLAGS="-no-cpp-precomp -flat_namespace -undefined suppress"
 
 platform darwin 8 {

Attachments (1)

par2.patch (527 bytes) - added by johnrosshunt@… 15 years ago.
Patch to par2 Portfile

Download all attachments as: .zip

Change History (7)

Changed 15 years ago by johnrosshunt@…

Attachment: par2.patch added

Patch to par2 Portfile

comment:1 Changed 15 years ago by johnrosshunt@…

For the curious, the error was:

--->  Configuring par2
checking build system type... powerpc-apple-darwin8.2.0
checking host system type... powerpc-apple-darwin8.2.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for C++ compiler default output file name... configure: error: C++ compiler cannot create executables
See `config.log' for more details.
Error: Target com.apple.configure returned: configure failure: shell command "cd "/opt/local/var/db/dports/build/file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_archivers_par2/work/par2cmdline-0.4" && CPPFLAGS="-L/opt/local/lib -I/opt/local/include" CFLAGS="-no-cpp-precomp -flat_namespace -undefined suppress" CC=/usr/bin/gcc-3.3 CXX=/usr/bin/g++-3.3 ./configure --prefix=/opt/local --mandir=/opt/local/share/man" returned error 77
Command output: checking build system type... powerpc-apple-darwin8.2.0
checking host system type... powerpc-apple-darwin8.2.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for C++ compiler default output file name... configure: error: C++ compiler cannot create executables
See `config.log' for more details.

Warning: the following items did not execute (for par2): com.apple.build com.apple.configure
Last edited 5 years ago by ryandesign (Ryan Schmidt) (previous) (diff)

comment:2 Changed 15 years ago by mww@…

Owner: changed from darwinports-bugs@… to julian@…
Summary: par2 Portfile bugBUG: par2 Portfile bug

comment:3 Changed 15 years ago by julian@…

Wow, crazy, I totally forgot I submitted this portfile. I'll see about incorporating the patch and resubmitting or whatever I have to do..

comment:4 Changed 15 years ago by johnrosshunt@…

Sorry, I mis-reported the bug for this Portfile. The problem was actually a CXXFLAGS variable that had an invalid "-W" setting for g++-3.3. Once I cleared the variable it compiled fine using g++-3.3. So, maybe the fix is to add CXXFLAGS="" to the configure.env? Anyway, thanks for responding.

comment:5 Changed 15 years ago by toby@…

Resolution: invalid
Status: newclosed

No, user error... don't set CXXFLAGS

comment:6 Changed 5 years ago by ryandesign (Ryan Schmidt)

Description: modified (diff)
Port: par2 added
Priority: HighNormal
Note: See TracTickets for help on using tickets.