Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 146680 - media-libs/libwmf-0.2.8.4 fails to compile
Summary: media-libs/libwmf-0.2.8.4 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-07 05:17 UTC by Karl Huysmans
Modified: 2008-02-11 20:00 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to fix libwmf compilation (libwmf-0.2.8.4-ddata.patch,404 bytes, patch)
2006-12-26 03:45 UTC, Charlie Shepherd (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Karl Huysmans 2006-09-07 05:17:14 UTC
On both a new AMD64 system and a new X86 system, compiling libwmf fails with:

In file included from xgd.c:62:
../../src/ipa/xgd/device.h: In function 'wmf_gd_device_open':
../../src/ipa/xgd/device.h:38: error: 'ddata' undeclared (first use in this function)
../../src/ipa/xgd/device.h:38: error: (Each undeclared identifier is reported only once
../../src/ipa/xgd/device.h:38: error: for each function it appears in.)
make[3]: *** [xgd.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -DPACKAGE=\"libwmf\" -DVERSION=\"0.2.8\" -I. -I. -I../.. -I../../include -I../../src -I../../src/extra/gd -I../.. -I/usr/include/freetype2 -march=k8 -O2 -MT svg.lo -MD -MP -MF .deps/svg.Tpo -c svg.c -o svg.o >/dev/null 2>&1
make[3]: Leaving directory `/var/tmp/portage/libwmf-0.2.8.4/work/libwmf-0.2.8.4/src/ipa'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/libwmf-0.2.8.4/work/libwmf-0.2.8.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/libwmf-0.2.8.4/work/libwmf-0.2.8.4'
make: *** [all] Error 2

!!! ERROR: media-libs/libwmf-0.2.8.4 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  libwmf-0.2.8.4.ebuild, line 86:   Called die



emerge --info for the AMD64 system

Portage 2.1-r2 (default-linux/amd64/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.17-gentoo-r7 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.12.4
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=k8 -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sfperms strict"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://ftp.du.se/pub/os/gentoo http://ftp.lug.ro/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.belnet.be/gentoo-portage"
USE="amd64 X a52 aac alsa apache2 arts audiofile avi berkdb bitmap-fonts cdparanoia cdr cli crypt cups divx4linux dlloader dri dv dvd dvdr dvdread encode examples faad fame ffmpeg flac font-server fontserver fortran ftp gd gdbm gif gimpprint gnome gphoto2 gpm gtk2 hal imagemagick imap ipv6 isdnlog jack java jbig kde ldap libg++ mime mp3 mpeg mysql ncurses nls nptl nptlonly nsplugin offensive oggvorbis opengl pam pam_console pcre pdf perl php ppds pppd python qt qt3 quicktime readline reflection samba scanner server session sox spell spl ssl subtitles tcpd threads tiff truetype truetype-fonts type1-fonts udev unicode vorbis webcal wifi xine xorg xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_apm video_cards_ark video_cards_ati video_cards_chips video_cards_cirrus video_cards_cyrix video_cards_dummy video_cards_fbdev video_cards_glint video_cards_i128 video_cards_i810 video_cards_mga video_cards_neomagic video_cards_nv video_cards_rendition video_cards_s3 video_cards_s3virge video_cards_savage video_cards_siliconmotion video_cards_sis video_cards_sisusb video_cards_tdfx video_cards_tga video_cards_trident video_cards_tseng video_cards_v4l video_cards_vesa video_cards_vga video_cards_via video_cards_vmware video_cards_voodoo"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS

For the x86 system

Portage 2.1-r2 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.14-gentoo-r5 i686)
=================================================================
System uname: 2.6.14-gentoo-r5 i686 AMD Opteron(tm) Processor 248
Gentoo Base System version 1.12.4
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/X11/xkb /usr/lib/fax /usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/bind /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://ftp.du.se/pub/os/gentoo http://ftp.lug.ro/gentoo/"
LINGUAS="nl en fr"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.belnet.be/gentoo-portage"
USE="x86 X a52 aac alsa apache2 arts audiofile avi berkdb bitmap-fonts cdparanoia cdr cli crypt cups divx4linux dlloader dri dv dvd dvdr dvdread encode examples faad fame ffmpeg firefox flac font-server fontserver fortran ftp gd gdbm gif gimpprint gnome gphoto2 gpm gtk2 hal imagemagick imap ipv6 isdnlog jack java jbig kde ldap libg++ mime mp3 mpeg mysql ncurses nls nptl nptlonly nsplugin offensive oggvorbis opengl pam pam_console pcre pdf perl php ppds pppd python qt qt3 quicktime readline reflection samba scanner session sox spell spl ssl subtitles tcpd threads tiff truetype truetype-fonts type1-fonts udev unicode vorbis webcal wifi xine xorg xvid zlib elibc_glibc input_devices_evdev input_devices_keyboard input_devices_mouse input_devices_synaptics kernel_linux linguas_nl linguas_en linguas_fr userland_GNU video_cards_i810 video_cards_vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-09-07 05:22:27 UTC
Certainly not a blocker.
Comment 2 Roger 2006-09-12 14:18:11 UTC
blocks my entire emerge -uD world from upgrading (while migrating to 2006.1 profile) if ones system apparently depends on libwmf.

anyways, is ddata provided by ffmpeg?  I forget... but it sounds really familar -- and a new version of ffmpeg just went stable?

Comment 3 Roger 2006-09-12 22:54:36 UTC
The problem lies between econf & emake.

I've just compiled libwmf with all the econf flags omitted.

I'm in the process of going one by one now.


Somebody knows the solution, please speak-up.
Comment 4 Karl Huysmans 2006-09-13 00:04:40 UTC
(In reply to comment #3)
> The problem lies between econf & emake.
> 
> I've just compiled libwmf with all the econf flags omitted.
> 
> I'm in the process of going one by one now.
> 
> 
> Somebody knows the solution, please speak-up.
> 

Enabled gtk flag, now it compiles on both my systems ?!?
Comment 5 Roger 2006-09-13 00:19:02 UTC
 looks like ddata is defined by libwmf as grepping jpeg sources shows no definition of ddata or that the variable is even present w/i the jpeg sources.  It's shown being defined someplace within libwmf & seems to be a local variable and not defined inside of a *.h header file.

Just my two cents... other then that, I commented this line out and re-emerged.

BTW, I'm on X86 & NOT Mac OSX!  (going from Gentoo 2006.0 to 2006.1 profile)
Please change this bug to show:

Product: Gentoo Linux
Component: Other
Hardware: All
OS: All


Maybe revdep-rebuild is failing someplace.

libwmf seems to be a direct dependency of goffice (libgsf depends on libwmf and goffice depends on libgsf).  emerge -C libgsf goffice libwmf and "USE -wmf" emerge -uDN world might be another option to work-around this problem.  All other packages look to have "wmf" use flags to prevent breakage.

(Sorry if I typed too much! :-/ )
Comment 6 Roger 2006-09-13 00:21:12 UTC
Sorry, clipped my top line by accident.

The offendind source of this bug is this line within the libwmf-*.ebuild:

$(use_with jpeg)
Comment 7 jeremy 2006-09-20 16:02:38 UTC
I would vote that this be a blocker.  I'm attempting to install a gentoo 2006.1 system, and I fail while compiling Gnome.  Commenting out  $(use_with jpeg) seems to have worked for me.

USE="-qt -qt3 -qt4 -arts -kde gtk gnome hal avahi ssl unicode dri browserplugin nsplugin mozilla acpi alsa cups cjk dvd usb ffmpeg gstreamer win32codecs mmx mmx2 -mysql truetype wifi X svg png png jpeg2k flac theora vcd spell xmms -motif -oss cli gd gdbm dba gtk2 gtk mad wxwindows ogg freetype gnutls stream cdda live sqlite"
Comment 8 Roger 2006-10-06 00:35:28 UTC
Just noticed this error on emerge -e world here again.


I was thinking the following until it failed & I had to delete the line w/i the ebuild.  Something isn't right here.  I even saw the config output state --without-jpeg && "build w/o jpeg gd support"!  And I still got the error... thing is Makefile/Compile is still searching for function ddata!


(Ignore the following as it doesn't work, but scanning the ebuild, it should shouldn't it?)
More apropriately done:

echo "=media-libs/libwmf-0.2.8.4 -jpeg" >> /etc/portage/package.use


&& How about a version bump to  media-libs/libwmf-0.2.8.4-r1 when fixed?
Comment 9 Jonathan Sailor 2006-11-03 11:09:12 UTC
I'm seeing this too. Enabling gtk doesn't work for me
Comment 10 Jonathan Sailor 2006-11-30 19:20:28 UTC
Enabling the jpeg use flag seems to work.

A simple fix to the problem would be to make libwmf always depend upon and be configured with media-libs/jpeg like so:

--- libwmf-0.2.8.4.ebuild       2006-09-04 01:07:21.000000000 -0400
+++ libwmf-0.2.8.4-r1.ebuild    2006-11-30 19:22:51.000000000 -0500
@@ -18 +18 @@
-IUSE="jpeg X expat xml debug doc gtk gd"
+IUSE="X expat xml debug doc gtk gd"
@@ -27 +27 @@
-       jpeg? ( media-libs/jpeg )
+       media-libs/jpeg
@@ -76 +76 @@
-               $(use_with jpeg) \
+               --with-jpeg \

Gentoo devs: this bug is a disgrace. It prevents many people from updating their system in any easy way, has a trivial fix, and has been unresolved for almost two months. Fix it!
Comment 11 Charlie Shepherd (RETIRED) gentoo-dev 2006-12-01 14:38:02 UTC
(In reply to comment #10)
> A simple fix to the problem would be to make libwmf always depend upon and be
> configured with media-libs/jpeg like so:

sudo env USE="-jpeg" emerge libwmf
<snip>
>>> media-libs/libwmf-0.2.8.4 merged.

WORKSFORME

> Gentoo devs: this bug is a disgrace. It prevents many people from updating
> their system in any easy way, has a trivial fix, and has been unresolved for
> almost two months. Fix it!


Please remember we are all volunteers. This package has no active maintainer. We are not obligated to spend our time fixing it. Your supposed 'fix' forcibly enables jpeg support some users may not want, and is not needed on my system. Please be try and patient. If you are experiencing this bug, adding 'media-libs/libwmf jpeg' to your package.keywords file should fix it.
Comment 12 Jonathan Sailor 2006-12-01 21:37:35 UTC
(In reply to comment #11)
> (In reply to comment #10)
> > A simple fix to the problem would be to make libwmf always depend upon and be
> > configured with media-libs/jpeg like so:
> 
> sudo env USE="-jpeg" emerge libwmf
> <snip>
> >>> media-libs/libwmf-0.2.8.4 merged.
> 
> WORKSFORME

Yes, but it doesn't work for at least Karl, Roger, Jeremy, or I, and that's enough people to be able to say with reasonable confidence that something other than a glitch in somebody's installation is the cause.

> > Gentoo devs: this bug is a disgrace. It prevents many people from updating
> > their system in any easy way, has a trivial fix, and has been unresolved for
> > almost two months. Fix it!
> 
> 
> Please remember we are all volunteers. This package has no active maintainer.

I know that, and I'm sorry to flame. I do truly think Gentoo is a great distro (proof: I use it), but it seems that the QA process in situations like this is lacking.

> We are not obligated to spend our time fixing it. Your supposed 'fix' forcibly

Yet, the package is a dependency of gnome with USE="gnome zlib". That's pretty core to a general-purpose distro, and to have libwmf lacking a maintainer is (IMO) a QA failure if things like this can happen because of it.

> enables jpeg support some users may not want, and is not needed on my system.
> Please be try and patient. If you are experiencing this bug, adding
> 'media-libs/libwmf jpeg' to your package.keywords file should fix it.

It's true that there might be users who would be affected by the change, but I highly doubt there are many, if any. In portage (as of a few hours ago), libwmf is mentioned in only wv, gimp, imagemagick, gimageview, graphicsmagick, inkscape, freetype, abiword-plugins, and libgsf. Chances are that most people who want those pages don't care if jpeg is required or want it included anyway. I think the change should be made to libwmf; unless more than four people complain, it'll have been a net gain.

packages.use (probably what you meant) is a way to fix this. It's a quick-fix and is per-user.
Comment 13 Charlie Shepherd (RETIRED) gentoo-dev 2006-12-17 06:46:41 UTC
I finally managed to reproduce this, with USE="gd -jpeg". I'll try and work out a fix soonish.
Comment 14 Charlie Shepherd (RETIRED) gentoo-dev 2006-12-26 03:45:36 UTC
Created attachment 104735 [details, diff]
Patch to fix libwmf compilation

Can you guys test this patch?
Comment 15 Martin Wegner 2007-01-16 23:26:05 UTC
Proposed patch in comment #14 does NOT work here:

 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -DPACKAGE=\"libwmf\" -DVERSION=\"0.2.8\" -I. -I../.. -I../../include -I../../src -I../../src/extra/gd -I../.. -I/usr/include/freetype2 -march=nocona -O2 -pipe -MT xgd.lo -MD -MP -MF .deps/xgd.Tpo -c xgd.c  -fPIC -DPIC -o .libs/xgd.o
In file included from xgd.c:62:
../../src/ipa/xgd/device.h: In function ‘wmf_gd_device_open’:
../../src/ipa/xgd/device.h:38: error: ‘ddata’ undeclared (first use in this function)
../../src/ipa/xgd/device.h:38: error: (Each undeclared identifier is reported only once
../../src/ipa/xgd/device.h:38: error: for each function it appears in.)
make[3]: *** [xgd.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
Comment 16 Raúl Porcel (RETIRED) gentoo-dev 2008-02-11 20:00:08 UTC
According to the source code, the variable HAVE_LIBJPEG is undefined, therefore makes me think jpeg is mandatory.

Fixed