Opened 15 years ago

Closed 15 years ago

#21754 closed defect (worksforme)

libwmf configure syntax error

Reported by: dominikbrugger@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: libwmf gdk-pixbuf pkg-config Cc: ryandesign (Ryan Carsten Schmidt)
Port: libwmf

Description

Installation of libwmf fails with a configure syntax error concerning a check for GDK_PIXBUF although the gdk-pixbuf package is installed.

Here is the complete error log:

Executing: /opt/local/bin/port install libwmf +expat
Port command started with PID 28327
Computing dependencies for libwmf
Configuring libwmf
Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_libwmf/work/libwmf-0.2.8.4" && ./configure --prefix=/opt/local --with-jpeg --without-x --with-fontdir=/opt/local/share/fonts/libwmf " returned error 2
Command output: checking for snprintf... yes
checking for vfscanf... yes
checking for X... disabled
checking expat.h usability... yes
checking expat.h presence... yes
checking for expat.h... yes
checking for XML_ParserFree in -lexpat... yes
checking for freetype-config... /opt/local/bin/freetype-config
checking for FT_Init_FreeType in -lfreetype... yes
checking ft2build.h usability... yes
checking ft2build.h presence... yes
checking for ft2build.h... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for gzputs in -lz... yes
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking for png_write_image in -lpng... yes
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking for jpeg_CreateCompress in -ljpeg... yes
checking gd.h usability... yes
checking gd.h presence... yes
checking for gd.h... yes
checking for gdClipSetAdd in -lgd... no
./configure: line 13672: syntax error near unexpected token `GDK_PIXBUF,gdk-pixbuf-2.0'
./configure: line 13672: `	PKG_CHECK_MODULES(GDK_PIXBUF,gdk-pixbuf-2.0 >= 2.1.2,'
Error: Status 1 encountered during processing.

Change History (5)

comment:1 Changed 15 years ago by blb@…

Does it work if you install the pkgconfig port?

comment:2 Changed 15 years ago by dominikbrugger@…

The pkg-config port is installed properly, e.g. on the command line I get the following:

$ pkg-config --variable=gtk_binary_version gtk+-2.0
2.10.0

In configure the offending part seems to be:

PKG_CHECK_MODULES(GDK_PIXBUF,gdk-pixbuf-2.0 >= 2.1.2,
		GTK_VERSION=`$PKG_CONFIG --variable=gtk_binary_version gtk+-2.0`
		GDK_PIXBUF_DIR="gtk-2.0/$GTK_VERSION/loaders"
		wmf_gdk_pixbuf=yes
	,	wmf_gdk_pixbuf=no
	)

but have no clue why it fails.

comment:3 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

Please selfupdate to make sure you have the latest MacPorts and port definitions, then clean libwmf and try again with debug output:

sudo port selfupdate
sudo port clean libwmf
sudo port -d install libwmf +expat build.jobs=1 2>&1 | tee ~/Desktop/libwmf.txt

If it fails again, please attach libwmf.txt from your desktop to this ticket so we can compare your output to ours.

EDITED: added +expat variant to instructions

comment:4 in reply to:  3 Changed 15 years ago by dominikbrugger@…

Ok. It now builds installs fine. The executables, e.g. wmf2eps also work. Thanks.

comment:5 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: worksforme
Status: newclosed

Ok, not sure what the problem was. Maybe your ports were out of date and one of the prior updates fixed this problem.

Note: See TracTickets for help on using tickets.