Ticket #3548 (closed defect: fixed)
p5-GD port is broken
| Reported by: | jon@… | Owned by: | macports-tickets@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.0 |
| Keywords: | Cc: | ||
| Port: |
Description
the p5-gd port is broken. It install OK, but is unusable. Example:
/opt/local/bin/perl -e 'use GD;'
dyld: NSLinkModule() error dyld: Symbol not found: _libiconv_close
Referenced from: /opt/local/lib/libgd.2.dylib Expected in: flat namespace
Trace/BPT trap
Attachments
Change History
comment:3 Changed 8 years ago by jon@…
Upgrading the version of the module in the Portfile to 2.23 seems not to help.
At the configure stage, the following error appears, which may be relevant:
Unrecognized argument in LIBS ignored: '/opt/local/lib/libiconv.dylib'
comment:5 Changed 8 years ago by jon@…
Makefile.PL picks up the library settings using "gdlib-config --libs". This appears to be broken, giving a full path to a library file, not a switch to pass to the linker:
[jon@ridley ports]$ gdlib-config --libs -lXpm -lX11 -ljpeg -lfontconfig -lfreetype -lpng12 -lz /opt/local/lib/libiconv.dylib
Changed 8 years ago by jon@…
- Attachment p5-gd.Portfile added
portfile with workaround for broken gdlib-config

