Opened 13 years ago
Closed 13 years ago
#32851 closed defect (fixed)
logrotate fails to build with clang
Reported by: | steve@… | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.0.3 |
Keywords: | clang | Cc: | pixilla (Bradley Giesbrecht) |
Port: | logrotate |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
ld exits with message 'ld: library not found for -lpopt
' and a ls returns:
steve-mini:~ root# ls /opt/local/lib/*popt* /opt/local/lib/libpopt.0.dylib /opt/local/lib/libpopt.dylib /opt/local/lib/libpopt.a /opt/local/lib/libpopt.la
Attachments (1)
Change History (7)
comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign@… added |
---|---|
Description: | modified (diff) |
Port: | logrotate added |
Resolution: | → invalid |
Status: | new → closed |
Summary: | logrotate fails to build → logrotate fails to build when broken bzip2 from Fink is installed |
comment:2 Changed 13 years ago by steve@…
Resolution: | invalid |
---|---|
Status: | closed → reopened |
That build log was incorrect, that was the before I removed fink. Attached is the new one with the linker error.
comment:3 Changed 13 years ago by steve@…
The issue is apparent in line 119:
:info:build /Developer/usr/bin/clang -arch x86_64 -g logrotate.o log.o config.o basenames.o -lpopt -L/opt/local/include -o logrotate
The flag should be -L/opt/local/lib instead of -L/opt/local/include. I am uncertain as to the best way to patch the makefile to address this.
comment:4 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign@… removed |
---|---|
Keywords: | clang added |
Owner: | changed from macports-tickets@… to ryandesign@… |
Status: | reopened → new |
Summary: | logrotate fails to build when broken bzip2 from Fink is installed → logrotate fails to build with clang |
Thanks. We didn't notice this problem until people started using Xcode 4.2, on which we default to the clang compiler, which does not use the CPATH / LIBRARY_PATH variables that would otherwise have told it where to find popt.
comment:5 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | pixilla@… added |
---|
comment:6 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
The problem is:
You have Fink installed. (Specifically, you have Fink's bzip2 program, but not Fink's bzip2 library, therefore Fink's bzip2 program doesn't work.) It is not supported to have another package manager or files installed by it installed while using MacPorts. Please decide whether you would like to use MacPorts or Fink, and uninstall the other and all software installed by it.