[MacPorts] #37795: nzbget: configure fails with clang: error: "libpar2 library not found" (was: nzbget still requires gcc)
MacPorts
noreply at macports.org
Sun Jan 27 06:25:22 PST 2013
#37795: nzbget: configure fails with clang: error: "libpar2 library not found"
-------------------------+--------------------------
Reporter: dinge345@… | Owner: ryandesign@…
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.1.2
Resolution: | Keywords:
Port: nzbget |
-------------------------+--------------------------
Changes (by ryandesign@…):
* status: new => assigned
* owner: macports-tickets@… => ryandesign@…
* cc: cal@… (added)
Comment:
Note that llvm-gcc is not gcc.
The log says:
{{{
checking libpar2/libpar2.h usability... no
checking libpar2/libpar2.h presence... yes
configure: WARNING: libpar2/libpar2.h: present but cannot be compiled
configure: WARNING: libpar2/libpar2.h: check for missing prerequisite
headers?
configure: WARNING: libpar2/libpar2.h: see the Autoconf documentation
configure: WARNING: libpar2/libpar2.h: section "Present But Cannot Be
Compiled"
configure: WARNING: libpar2/libpar2.h: proceeding with the preprocessor's
result
configure: WARNING: libpar2/libpar2.h: in the future, the compiler will
take precedence
configure: WARNING: ## ------------------------------------------- ##
configure: WARNING: ## Report this to hugbug at users.sourceforge.net ##
configure: WARNING: ## ------------------------------------------- ##
checking for libpar2/libpar2.h... yes
checking for library containing _ZN12Par2RepairerC1Ev... -lpar2
checking for libpar2 linking... no
configure: error: "libpar2 library not found"
}}}
The config.log shows why this is:
{{{
/opt/local/include/libpar2/par2fileformat.h:87:25: error: flexible array
member 'entries' of non-POD element type 'FILEVERIFICATIONENTRY []'
FILEVERIFICATIONENTRY entries[];
^
}}}
So this is #31667, a bug in libpar2.
nzbget had been blacklist clang for this reason since r86546. This was
inexplicably removed in r97802. Since I still get the same problem as you
do, I've put it back in r102073.
--
Ticket URL: <https://trac.macports.org/ticket/37795#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list