Bug 136815 - graphics/dia: wmf.cpp:64:19: error: emf.h: No such file or directory
Summary: graphics/dia: wmf.cpp:64:19: error: emf.h: No such file or directory
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-gnome (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-16 13:10 UTC by O. Hartmann
Modified: 2009-07-26 22:56 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description O. Hartmann 2009-07-16 13:10:08 UTC
Updating graphics/dia with 'portmaster -dav' or (re)installing graphics/dia ends up with the trailing error:

gmake[3]: Entering directory `/usr/ports/graphics/dia/work/dia-0.97/plug-ins/wmf'
/bin/sh ../../libtool --tag=CXX   --mode=compile c++ -DHAVE_CONFIG_H -I. -I../.. -I../../intl -I../../lib  -D_THREAD_SAFE -D_REENTRANT -I/usr/loc
al/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include -I/usr/local/include/atk-1.0 -I/usr/local/include/cairo -I/usr/local/include/pango-1.0 -I/usr
/local/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/pixman-1 -I/usr/local/include/freetype2 -I/us
r/local/include/libxml2 -I/usr/local/include/libart-2.0     -I/usr/local/include  -O2 -pipe -march=nocona -fno-strict-aliasing -MT wmf.lo -MD -MP
 -MF .deps/wmf.Tpo -c -o wmf.lo wmf.cpp
mkdir .libs
 c++ -DHAVE_CONFIG_H -I. -I../.. -I../../intl -I../../lib -D_THREAD_SAFE -D_REENTRANT -I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/inclu
de -I/usr/local/include/atk-1.0 -I/usr/local/include/cairo -I/usr/local/include/pango-1.0 -I/usr/local/include -I/usr/local/include/glib-2.0 -I/u
sr/local/lib/glib-2.0/include -I/usr/local/include/pixman-1 -I/usr/local/include/freetype2 -I/usr/local/include/libxml2 -I/usr/local/include/liba
rt-2.0 -I/usr/local/include -O2 -pipe -march=nocona -fno-strict-aliasing -MT wmf.lo -MD -MP -MF .deps/wmf.Tpo -c wmf.cpp  -fPIC -DPIC -o .libs/wm
f.o

wmf.cpp:64:19: error: emf.h: No such file or directory
wmf.cpp:108: error: 'HDC' in namespace 'W32' does not name a type
wmf.cpp:111: error: 'HDC' in namespace 'W32' does not name a type
wmf.cpp:116: error: 'HPEN' in namespace 'W32' does not name a type
wmf.cpp:118: error: 'HFONT' in namespace 'W32' does not name a type
[...]
wmf.cpp:1359: error: 'ReleaseDC' is not a member of 'W32'
wmf.cpp: In function 'PluginInitResult dia_plugin_init(PluginInfo*)':
wmf.cpp:1411: warning: deprecated conversion from string constant to 'gchar*'
gmake[3]: *** [wmf.lo] Error 1
gmake[3]: Leaving directory `/usr/ports/graphics/dia/work/dia-0.97/plug-ins/wmf'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/ports/graphics/dia/work/dia-0.97/plug-ins'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/graphics/dia/work/dia-0.97'
gmake: *** [all] Error 2
*** Error code 1

Stop in /usr/ports/graphics/dia.

===>>> make failed for graphics/dia
===>>> Aborting update

===>>> Update for dia-0.96.1_6,1 failed
===>>> Aborting update

How-To-Repeat: Try to install ports/graphics/dia
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2009-07-16 13:10:18 UTC
Responsible Changed
From-To: freebsd-ports-bugs->gnome

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Alexander Logvinov 2009-07-16 14:17:16 UTC
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello!

On 16.07.2009 22:06 O. Hartmann wrote:
> wmf.cpp:64:19: error: emf.h: No such file or directory
> wmf.cpp:108: error: 'HDC' in namespace 'W32' does not name a type
> wmf.cpp:111: error: 'HDC' in namespace 'W32' does not name a type
> wmf.cpp:116: error: 'HPEN' in namespace 'W32' does not name a type
> wmf.cpp:118: error: 'HFONT' in namespace 'W32' does not name a type
 Could you try this patch?

http://people.freebsd.org/~avl/patches/dia-0.9.7_2.diff

- --
Best regards,
Alexander Logvinov <ports@logvinov.com>
PGP: 0x1C47D5C0 http://people.freebsd.org/~avl/avl.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (FreeBSD)

iEYEARECAAYFAkpfKFwACgkQ4TVBdhxH1cCGdwCglLYSrlBhh1dhjFRCoDl/MyV7
/wMAoKNLS8uNSS9gSdr4XYC8VJrVQDsq
=ANRP
-----END PGP SIGNATURE-----
Comment 3 dfilter service freebsd_committer freebsd_triage 2009-07-20 16:53:43 UTC
avl         2009-07-20 15:53:34 UTC

  FreeBSD ports repository

  Modified files:
    graphics/dia         Makefile pkg-plist 
  Log:
  - Fix build on i386 with libemf installed
  - Disable wmf filter build for !i386
  
  PR:             ports/136815
  Submitted by:   O. Hartmann <ohartman AT zedat.fu-berlin.de>
  Reviewed by:    marcus, mezz (GNOME team)
  Approved by:    tabthorpe (mentor)
  
  Revision  Changes    Path
  1.73      +12 -2     ports/graphics/dia/Makefile
  1.31      +2 -0      ports/graphics/dia/pkg-plist
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 4 Alexander Logvinov freebsd_committer freebsd_triage 2009-07-26 22:56:02 UTC
State Changed
From-To: open->closed

Committed. Thanks!