Bug 18947

Summary: pkgconfig files for libgd contain unresolved @LIBICONV@
Product: Mageia Reporter: Ethan Merritt <eamerritt>
Component: RPM PackagesAssignee: David GEIGER <geiger.david68210>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: luigiwalser
Version: 5   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: lib64gd-devel-2.2.2-1.1.mga5 CVE:
Status comment:
Bug Depends on: 18938    
Bug Blocks:    

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