guile-gtk-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 1.9.11 ffi reference bug


From: steve tell
Subject: Re: 1.9.11 ffi reference bug
Date: Thu, 19 Feb 2009 21:57:10 -0500 (EST)

On Thu, 19 Feb 2009, Greg Troxel wrote:


I am trying to get guile-gnome-platform 0.16.1 to build on NetBSD via
pkgsrc.  g-wrap 1.9.11 has g-wrap-2.0-guile.pc.in which contains:

Libs: -L${libdir} -lgwrap-guile-runtime -lgwrap-core-runtime @GUILE_LDFLAGS@ 
@LIBFFI_LIBS_INSTALLED@
Cflags: @STD_CFLAGS@ -I${includedir} @GUILE_CFLAGS@ @LIBFFI_CFLAGS_INSTALLED@

This seems buggy for two reasons:

1) the _INSTALLED variant of LIBFFI_CFLAGS is not substituted by configure:

gdt 276 /usr/pkgsrc/devel/g-wrap/work/g-wrap-1.9.11/guile > egrep LIBFFI_CFL 
../config.status
s,@LIBFFI_CFLAGS@,|#_!!_#|-I/usr/pkg/include  ,g

2) libffi is a dependency, so the .pc file should just use the normal
dependency mechanism.

Is anyone else seeing this problem?

gdt 279 /usr/pkgsrc/devel/g-wrap/work/g-wrap-1.9.11/guile > pkg-config 
g-wrap-2.0-guile --cflags
-std=gnu99 -pthread @LIBFFI_CFLAGS_INSTALLED@ -I/usr/pkg/include
gdt 280 /usr/pkgsrc/devel/g-wrap/work/g-wrap-1.9.11/guile > pkg-config 
g-wrap-2.0-guile --libs
-I/usr/pkg/include -pthread -Wl,-R/usr/pkg/lib @LIBFFI_LIBS_INSTALLED@ 
-L/usr/pkg/lib -lgwrap-guile-runtime -lgwrap-core-runtime -lguile -lgmp -lcrypt 
-lm -lltdl


Yes... I recently released an application that uses guile-gnome-platform, and had several reports of users bumping into exactly this when building the dependencies.

The current Fedora RPMs patch g-wrap-2.0-guile.pc.in, dropping the _INSTALLED suffix from those substitutions. An OpenSuse user discovered the same fix, and a similar patch was posted to guile-gtk-general last April.


So while perhaps your suggestion (2) above ought to be considered,
if you were to patch like this, pkgsrc would at least be in good company...






Attachment: g-wrap-1.9.11-libffi.patch
Description: g-wrap libffi patch


reply via email to

[Prev in Thread] Current Thread [Next in Thread]