Opened 8 years ago

Closed 8 years ago

#37795 closed defect (fixed)

nzbget: configure fails with clang: error: "libpar2 library not found"

Reported by: dinge345@… Owned by: ryandesign (Ryan Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc: neverpanic (Clemens Lang)
Port: nzbget

Description (last modified by ryandesign (Ryan Schmidt))

Installing nzbget with a fresh macports installation fails. However, when forcing llvm-gcc it works (via 'port install nzbget configure.compiler=llvm-gcc-4.2'). Maybe it has something to do with the precompiled packages? However, building libpar2 from source via '-s' did not help.

See also: changeset:97802.

Attachments (1)

main.log (29.8 KB) - added by dinge345@… 8 years ago.

Download all attachments as: .zip

Change History (3)

Changed 8 years ago by dinge345@…

Attachment: main.log added

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

Cc: cal@… added
Owner: changed from macports-tickets@… to ryandesign@…
Status: newassigned
Summary: nzbget still requires gccnzbget: configure fails with clang: error: "libpar2 library not found"

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 ##
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 []'

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.

comment:2 Changed 8 years ago by ryandesign (Ryan Schmidt)

Description: modified (diff)
Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.