#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 Carsten 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)
Change History (7)
Changed 19 years ago by johnrosshunt@…
Attachment: | par2.patch added |
---|
comment:1 Changed 19 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
comment:2 Changed 19 years ago by mww@…
Owner: | changed from darwinports-bugs@… to julian@… |
---|---|
Summary: | par2 Portfile bug → BUG: par2 Portfile bug |
comment:3 Changed 19 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 19 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 19 years ago by toby@…
Resolution: | → invalid |
---|---|
Status: | new → closed |
No, user error... don't set CXXFLAGS
comment:6 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|---|
Port: | par2 added |
Priority: | High → Normal |
Note: See
TracTickets for help on using
tickets.
Patch to par2 Portfile