Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 29724 - pstoedit does not find the include files emf.h (media-libs/libemf) or mingpp.h (should be in media-libs/ming)
Summary: pstoedit does not find the include files emf.h (media-libs/libemf) or mingpp....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor
Assignee: Text-Markup Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-26 22:52 UTC by Tim Cera
Modified: 2003-10-02 07:26 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Cera 2003-09-26 22:52:24 UTC
> emerge pstoedit 
... 
checking for main in -lming... yes 
checking for mingpp.h... no 
configure: WARNING: ** libming driver is disabled. 
checking for Magick++-config... /usr/bin/Magick++-config 
checking for version of "ImageMagick++" ... you seem to have a compatible version 
checking for main in -lEMF... yes 
checking for emf.h... no 
configure: WARNING: ** Cannot find emf.h. libEMF supports are disabled. 
... 
 
The mingpp.h file does not exist in media-libs/ming, but does exist in the distfile file. 
 
The emf.h file is in /usr/include/libEMF  (possible fix presented below). 

Reproducible: Always
Steps to Reproduce:
1. emerge ming libemf pstoedit 
2. pstoedit does not support ming or emf formats because it can't find the include 
files. 
Actual Results:  
pstoedit didn't support ming or emf formats 

Expected Results:  
support ming and emf formats 

EMF 
Here is the diff between pstoedit-3.32.ebuild and an edited pstoedit-3.33.ebuild that 
correctly finds the emf.h file.  I also added dependencies.  
 
3c3 
< # $Header: /home/cvsroot/gentoo-x86/media-gfx/pstoedit/pstoedit-3.32.ebuild,v 
1.6 2003/09/06 23:56:39 msterret Exp $ 
--- 
> # $Header: /home/cvsroot/gentoo-x86/media-gfx/pstoedit/pstoedit-3.33.ebuild,v 
1.2 2003/09/06 23:56:39 msterret Exp $ 
16c16 
< KEYWORDS="x86 ppc" 
--- 
> KEYWORDS="~x86 ~ppc" 
18a19,20 
>       media-libs/libemf 
>       media-gfx/imagemagick 
27c29 
<       econf 
--- 
>       econf --with-libemf-include=/usr/include/libEMF 
 
MING 
The ming problem I thought I had licked by 'doins mingpp.h' in the ming ebuild.  
Worked to install it in /usr/include, but pstoedit complained about: 
... 
configure: WARNING: mingpp.h: present but cannot be compiled 
configure: WARNING: mingpp.h: check for missing prerequisite headers? 
configure: WARNING: mingpp.h: proceeding with the preprocessor's result 
configure: WARNING:     ## ------------------------------------ ## 
configure: WARNING:     ## Report this to bug-autoconf@gnu.org. ## 
configure: WARNING:     ## ------------------------------------ ## 
... 
and failed in the compile with problems in the mingpp.h. 
 
The important capability, I think is EMF support, since that is the only format that I 
could find work to import editable vector objects into OpenOffice.org. 
 
'emerge info' might be a little bit too much for this problem but here is it anyway... 
Portage 2.0.49-r3 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.20-gentoo-r6) 
================================================================= 
System uname: 2.4.20-gentoo-r6 i586 AMD-K6(tm) 3D processor 
ccache version 2.2 [enabled] 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-march=k6 -O3 -pipe -m3dnow -mmmx -fomit-frame-pointer" 
CHOST="i586-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config 
/usr/kde/2/share/config /usr/kde/3/share/config 
/usr/X11R6/lib/X11/xkb:/usr/kde/3.1/share/config:/usr/share/config" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
CXXFLAGS="-march=k6 -O3 -pipe -m3dnow -mmmx -fomit-frame-pointer" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="sandbox ccache autoaddcvs" 
GENTOO_MIRRORS="http://gentoo.oregonstate.edu 
http://distro.ibiblio.org/pub/Linux/distributions/gentoo" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="x86 oss apm cups encode foomaticdb gif jpeg gnome libg++ libwww mad mmx 
mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gtkhtml alsa 
gdbm berkdb readline arts bonobo svga tcltk java postgres X sdl gpm tcpd pam ssl 
perl python esd imlib oggvorbis gtk qt kde motif opengl mozilla gphoto2 cdr aavm 
apache2 evms2 flash gd gtk2 lcms moznocompose moznoirc moznomail pcmcia pda 
plotutils tiff type1 usb vim-with-x wmf Xaw3d xml xvid -avi -crypt -mikmod -slang"
Comment 1 Mike Gardiner (RETIRED) gentoo-dev 2003-10-01 11:01:38 UTC
Okay, i'm just confirming this behaviour and I've looked into it briefly
and you're 100% correct in your testing and emf fix so far. Will look into
it more asap.
Comment 2 Mike Gardiner (RETIRED) gentoo-dev 2003-10-02 07:26:01 UTC
Okay, thanks for your report. The EMF support is fixed, thanks for your patch
which was helpful. Onto ming support, I'm quoting from the readme.txt in
the pstoedit archive here:

"Note - currently support for SWF needs several patches to be applied to
the libming. 
All these were sent to the ming maintainer but so far not released officially.

So you need to wait until the official release of those - or in urgent cases
contact me."

I'm surprised this hasnt been noticed before, so thankyou for pointing it
out. I'm going to remove ming support from the ebuild until such a time as
the patches are applied to ming and it is actually possible to build pstoedit
with it.

Fixes have been applied and this is no available in cvs. Thanks for your
help.