#40123 closed defect (fixed)
gd2 @2.1.0: missing support for libpng, libtiff, libfreetype, libfontconfig, libxpm
Reported by: | gallafent | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | mojca (Mojca Miklavec), KurtPfeifle (Kurt Pfeifle), gallafent | |
Port: | gd2 |
Description (last modified by mojca (Mojca Miklavec))
Main.log attached.
Gnuplot fails to build with:
undefined symbol _gdImagePng for architecture x86_64
Attachments (1)
Change History (14)
Changed 11 years ago by gallafent
comment:2 Changed 11 years ago by gallafent
Apologies forgot to cc maintainer mojca@… … but can't see how to add to cc list now ticket already created!
System info:
Xcode 4.6.2 Build version 4H1003 Darwin Humber.local 11.4.2 Darwin Kernel Version 11.4.2: Thu Aug 23 16:26:45 PDT 2012; root:xnu-1699.32.7~1/RELEASE_I386 i386
comment:3 follow-up: 4 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign@… added; william@… removed |
---|---|
Owner: | changed from macports-tickets@… to mojca@… |
I noticed this error on the Snow Leopard buildbot too. It built fine on my Mountain Lion system.
comment:4 Changed 11 years ago by KurtPfeifle (Kurt Pfeifle)
Replying to ryandesign@…:
I noticed this error on the Snow Leopard buildbot too. It built fine on my Mountain Lion system.
I'm seeing the exact same failure on Mountain Lion. Was about to create a ticket, but saw that this one was created a few minutes ago already.
comment:5 follow-up: 7 Changed 11 years ago by mojca (Mojca Miklavec)
It built fine on Lion as well. Now the buildbot failed for all three (10.6, 10.7 and 10.8).
Ticket #29266 seems related to this problem.
comment:6 Changed 11 years ago by mojca (Mojca Miklavec)
... and I'm almost sure that the ticket should be assigned to gd2
, not to gnuplot
.
comment:7 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | kurt.pfeifle@… added |
---|
Replying to mojca@…:
Ticket #29266 seems related to this problem.
Good memory (or searching)!
That was 2 years ago. Back then the problem was that a rogue libpng-config in /usr/bin/ was being found instead of the MacPorts one, and it didn't work, causing PNG support to be silently disabled in gd2.
Are those of you experiencing the problem building from source or using our binary packages? Do you have any libpng-config in /usr/bin/?
comment:8 Changed 11 years ago by mojca (Mojca Miklavec)
Build logs from https://build.macports.org/builders/buildports-snowleopard-x86_64/builds/19566/steps/compile/logs/stdio:
checking for deflate in -lz... yes checking for LIBPNG... no checking for LIBFREETYPE... no ... ** Configuration summary for libgd 2.1.0: Support for Zlib: yes Support for PNG library: no Support for JPEG library: yes Support for VPX library: no Support for TIFF library: no Support for Freetype 2.x library: no Support for Fontconfig library: no Support for Xpm library: no Support for pthreads: yes
comment:9 Changed 11 years ago by mojca (Mojca Miklavec)
Cc: | mojca@… added; ryandesign@… removed |
---|---|
Description: | modified (diff) |
Owner: | changed from mojca@… to ryandesign@… |
Port: | gd2 added |
Summary: | Gnuplot build failure: undefined symbol _gdImagePng for architecture x86_64 → gd2: missing support for libpng (undefined symbol _gdImagePng) |
Version: | 2.2.0 |
comment:10 follow-up: 12 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)
Port: | gnuplot removed |
---|---|
Status: | new → assigned |
Summary: | gd2: missing support for libpng (undefined symbol _gdImagePng) → gd2 @2.1.0: missing support for libpng, libtiff, libfreetype, libfontconfig, libxpm |
comment:11 Changed 11 years ago by gallafent
find /usr/bin -iname '*libpng*'
… does not return anything. My system uses binary packages where available, otherwise builds from source (as per building gnuplot from source here!)
The following might be of interest:
Humber:bmbztj williamg$ sudo port clean gd2 ---> Cleaning gd2 Humber:bmbztj williamg$ sudo port install gd2 ---> Computing dependencies for gd2 ---> Cleaning gd2 ---> Updating database of binaries: 100.0% ---> Scanning binaries for linking errors: 100.0% ---> Found 4 broken file(s), matching files to ports ---> Found 2 broken port(s), determining rebuild order ---> Rebuilding in order gnuplot @4.6.3 +aquaterm+luaterm+pangocairo+x11 graphviz @2.32.0 +pangocairo+x11 ---> Computing dependencies for gnuplot ---> Building gnuplot Error: org.macports.build for port gnuplot returned: command execution failed Please see the log file for port gnuplot for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_math_gnuplot/gnuplot/main.log
(The failure is with the same error.)
If I force an uninstallation of gd2, then try again, the binary package is used:
---> Computing dependencies for gd2 ---> Fetching archive for gd2 ---> Attempting to fetch gd2-2.1.0_0+x11.darwin_11.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/gd2 ---> Attempting to fetch gd2-2.1.0_0+x11.darwin_11.x86_64.tbz2 from http://lil.fr.packages.macports.org/gd2 ---> Attempting to fetch gd2-2.1.0_0+x11.darwin_11.x86_64.tbz2.rmd160 from http://lil.fr.packages.macports.org/gd2 ---> Installing gd2 @2.1.0_0+x11 ---> Activating gd2 @2.1.0_0+x11 ---> Cleaning gd2
Gnuplot build then fails with the same error.
I tried building gd2 from source with:
sudo port -s install gd2 +x11
… this time graphviz was rebuilt first, successfully, and then gnuplot, successfully!
It looks, then, as if the problem is with the binary package of gd2 … does this make sense? Terminal output of this successful build follows:
Humber:bmbztj williamg$ sudo port -s install gd2 +x11 ---> Computing dependencies for gd2 ---> Fetching distfiles for gd2 ---> Attempting to fetch libgd-2.1.0.tar.xz from http://mse.uk.distfiles.macports.org/sites/distfiles.macports.org/gd2 ---> Attempting to fetch libgd-2.1.0.tar.xz from http://lil.fr.distfiles.macports.org/gd2 ---> Attempting to fetch libgd-2.1.0.tar.xz from http://fco.it.distfiles.macports.org/mirrors/macports-distfiles/gd2 ---> Attempting to fetch libgd-2.1.0.tar.xz from http://her.gr.distfiles.macports.org/mirrors/macports/mpdistfiles/gd2 ---> Attempting to fetch libgd-2.1.0.tar.xz from https://bitbucket.org/libgd/gd-libgd/downloads ---> Verifying checksums for gd2 ---> Extracting gd2 ---> Applying patches to gd2 ---> Configuring gd2 ---> Building gd2 ---> Staging gd2 into destroot ---> Installing gd2 @2.1.0_0+x11 ---> Activating gd2 @2.1.0_0+x11 ---> Cleaning gd2 ---> Updating database of binaries: 100.0% ---> Scanning binaries for linking errors: 100.0% ---> Found 4 broken file(s), matching files to ports ---> Found 2 broken port(s), determining rebuild order ---> Rebuilding in order graphviz @2.32.0 +pangocairo+x11 gnuplot @4.6.3 +aquaterm+luaterm+pangocairo+x11 ---> Computing dependencies for graphviz ---> Fetching distfiles for graphviz ---> Verifying checksums for graphviz ---> Extracting graphviz ---> Applying patches to graphviz ---> Configuring graphviz ---> Building graphviz ---> Staging graphviz into destroot ---> Installing graphviz @2.32.0_1+pangocairo+x11 ---> Cleaning graphviz ---> Computing dependencies for graphviz ---> Deactivating graphviz @2.32.0_0+pangocairo+x11 ---> Cleaning graphviz ---> Activating graphviz @2.32.0_1+pangocairo+x11 ---> Cleaning graphviz ---> Computing dependencies for gnuplot ---> Building gnuplot ---> Staging gnuplot into destroot ---> Installing gnuplot @4.6.3_2+aquaterm+luaterm+pangocairo+x11 ---> Cleaning gnuplot ---> Computing dependencies for gnuplot ---> Deactivating gnuplot @4.6.3_1+aquaterm+luaterm+pangocairo+x11 ---> Cleaning gnuplot ---> Activating gnuplot @4.6.3_2+aquaterm+luaterm+pangocairo+x11 ---> Cleaning gnuplot ---> Updating database of binaries: 100.0% ---> Scanning binaries for linking errors: 100.0% ---> No broken files found.
comment:12 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | william@… added |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
Replying to ryandesign@…:
No PNG, VPX, TIFF, FreeType, FontConfig, or XPM? Yeesh. Perhaps I'm missing a pkgconfig dependency :(
Yup. r109420.
Main.log for gnuplot, indicating missing symbol when linking gnuplot