Bug 18947 - pkgconfig files for libgd contain unresolved @LIBICONV@
Summary: pkgconfig files for libgd contain unresolved @LIBICONV@
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 5
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: David GEIGER
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 18938
Blocks:
  Show dependency treegraph
 
Reported: 2016-07-15 05:05 CEST by Ethan Merritt
Modified: 2016-07-26 21:13 CEST (History)
1 user (show)

See Also:
Source RPM: lib64gd-devel-2.2.2-1.1.mga5
CVE:
Status comment:


Attachments

Description Ethan Merritt 2016-07-15 05:05:47 CEST
Description of problem:

Autoconfigure of programs depending on libgd fail after recent update to lib64gd-devel-2.2.2-1.1.mga5 because the files /usr/lib64/pkgconfig/gdlib.pc and /usr/bin/multiarch-x86_64-linux/gdlib-config contain an unexpanded macro @LIBICONV@

This should normally be null, since linux does not require a separate libiconv.so

Version-Release number of selected component (if applicable):

lib64gd-devel-2.2.2-1.1.mga5

How reproducible:


Steps to Reproduce:
1.  Run ./configure script for program that checks for libgd.  In my case this was gnuplot

2.  autoconf fails to detect libgd because the flags provided by pkgconfig are not valid.  Error in config.log

configure:10790: gcc -o conftest -Wall -fPIC -g -O2 -Wno-uninitialized -Wdeclaration-after-statement -Wno-unused-function -Wno-sign-compare   -I/usr/include  -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -L/usr/lib64 conftest.c -lgd  -ldl -lm -lcerf  -lgd -lm -L/usr/lib64 -lz -lpng16 -lfreetype -lfontconfig -lfreetype -ljpeg -lXpm -lX11 -ltiff -lwebp @LIBICONV@ >&5
gcc: error: @LIBICONV@: No such file or directory
configure:10790: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gnuplot"
| #define PACKAGE_TARNAME "gnuplot"
| #define PACKAGE_VERSION "5.1"
| #define PACKAGE_STRING "gnuplot 5.1"
|



3. Simpler test:

$ gdlib-config --libs
-lgd -lm -L/usr/lib64 -lz -lpng16 -lfreetype -lfontconfig -lfreetype -ljpeg -lXpm -lX11 -ltiff -lwep @LIBICONV@
Comment 1 Samuel Verschelde 2016-07-15 12:39:16 CEST
David Geiger, this one's for you, guessing from the commit history.

CC: (none) => luigiwalser
Assignee: bugsquad => geiger.david68210

Comment 2 David Walser 2016-07-15 12:52:02 CEST
David already fixed it in SVN.  I'm just waiting for a fix for upstream issue #248 and then will push the build.

Depends on: (none) => 18938

Comment 3 David Walser 2016-07-26 21:13:23 CEST
Fixed in:
http://advisories.mageia.org/MGASA-2016-0258.html

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.