Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 107440 - Problem: emerge of media-libs/libemf-1.0
Summary: Problem: emerge of media-libs/libemf-1.0
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Mac OSX (show other bugs)
Hardware: PPC OS X
: High normal (vote)
Assignee: Patrick Kursawe (RETIRED)
URL:
Whiteboard:
Keywords:
: 126046 (view as bug list)
Depends on: 127328
Blocks: 133290
  Show dependency tree
 
Reported: 2005-09-27 12:50 UTC by Dirk Schoenberger
Modified: 2006-05-18 09:04 UTC (History)
3 users (show)

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


Attachments
Patch for libemf-1.0.ebuild for libemf-1.0.3 from pstoedit (libemf-patch,666 bytes, patch)
2006-03-21 07:12 UTC, Patrick Kursawe (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Schoenberger 2005-09-27 12:50:21 UTC
While trying to emerge libemf-1.0 I ran into the following problem

g++ -DHAVE_CONFIG_H -I. -I. -I../config -I../include -O2 -pipe -D_REENTRANT -DPTHREADS -c 
libemf.cpp -MT libemf.lo -MD -MP -MF .deps/libemf.TPlo  -fno-common -DPIC -o .libs/libemf.lo
In file included from /usr/include/gcc/darwin/4.0/c++/backward/function.h:59,
                 from libemf.h:29,
                 from libemf.cpp:21:
/usr/include/gcc/darwin/4.0/c++/backward/backward_warning.h:32:2: warning: #warning This file 
includes at least one deprecated or antiquated header. Please consider using one of the 32 headers 
found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the 
<X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To 
disable this warning use -Wno-deprecated.
In file included from ../include/wine/windef.h:16,
                 from ../include/emf.h:27,
                 from libemf.h:33,
                 from libemf.cpp:21:
../include/wine/winnt.h:53:3: error: #error Unknown CPU architecture!
../include/wine/winnt.h:1058:2: error: #error You need to define a CONTEXT for your CPU
../include/wine/winnt.h:1061: error: expected initializer before '*' token
../include/wine/winnt.h:2301: error: 'PCONTEXT' does not name a type
../include/wine/winnt.h:2314: error: 'PCONTEXT' has not been declared
../include/wine/winbase.h:120: error: 'PCONTEXT' does not name a type
../include/wine/winbase.h:1243: error: 'CONTEXT' has not been declared
../include/wine/winbase.h:1377: error: expected ',' or '...' before '*' token
../include/wine/winbase.h:1377: error: ISO C++ forbids declaration of 'CONTEXT' with no type
make[1]: *** [libemf.lo] Error 1
make: *** [all-recursive] Error 1



Reproducible: Always
Steps to Reproduce:
1.
2.
3.




!!! Relying on the shell to locate gcc, this may break
!!! DISTCC, installing gcc-config and setting your current gcc
!!! profile will fix this
Portage 2.0.52-r1 (default-darwin/macos/10.4, gcc-4.0.0, libsystem-7.1-r0, 8.2.0 Power Macintosh)
===============================================================
==
System uname: 8.2.0 Power Macintosh powerpc
macos-20041118
distcc 2.0.1-zeroconf powerpc-apple-darwin7.0 (protocol 1) (default port 3632) [disabled]
dev-lang/python:     [Not Present]
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  [Not Present]
sys-devel/automake:  [Not Present]
sys-devel/binutils:  [Not Present]
sys-devel/libtool:   [Not Present]
virtual/os-headers:  7.1
ACCEPT_KEYWORDS="ppc-macos ~ppc-macos"
AUTOCLEAN="yes"
CBUILD="powerpc-apple-darwin"
CFLAGS="-O2 -pipe"
CHOST="powerpc-apple-darwin"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/
qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig collision-protect distlocks sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/
gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="ppc emboss gdbm gif imagemagick nls png ppc-macos qt sdl slang tiff userland_Darwin 
kernel_Darwin elibc_Darwin"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Max 2005-12-12 11:25:59 UTC
Behaviour confirmed on amd64:

x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../config -I../include -march=
k8 -O2 -pipe -fomit-frame-pointer -D_REENTRANT -DPTHREADS -c libemf.cpp -MT libe
mf.lo -MD -MP -MF .deps/libemf.TPlo  -fPIC -DPIC -o .libs/libemf.lo
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.0.2/include/g++-v4/back
ward/function.h:59,
                 from libemf.h:29,
                 from libemf.cpp:21:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.0.2/include/g++-v4/backward/backward_warning.
h:32:2: warning: #warning This file includes at least one deprecated or antiquat
ed header. Please consider using one of the 32 headers found in section 17.4.1.2
 of the C++ standard. Examples include substituting the <X> header for the <X.h>
 header for C++ includes, or <iostream> instead of the deprecated header <iostre
am.h>. To disable this warning use -Wno-deprecated.
../include/wine/winbase.h: In function 'void* InterlockedCompareExchangePointer(
void**, void*, void*)':
../include/wine/winbase.h:1808: error: cast from 'void*' to 'LONG' loses precisi on
../include/wine/winbase.h:1808: error: cast from 'void*' to 'LONG' loses precisi on
../include/wine/winbase.h: In function 'void* InterlockedExchangePointer(void**,
 void*)':
../include/wine/winbase.h:1813: error: cast from 'void*' to 'LONG' loses precisi on
make[1]: *** [libemf.lo] Error 1
make[1]: Leaving directory `/var/tmp/portage/libemf-1.0/work/libEMF-1.0/libemf'
make: *** [all-recursive] Error 1


emerge --info:

Portage 2.0.53 (default-linux/amd64/2005.1, gcc-4.0.2, glibc-2.3.6-r1,
2.6.14-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.14-gentoo-r3 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.0_pre11
ccache version 2.4 [disabled]
dev-lang/python:     2.3.5-r2, 2.4.2
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-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20-r1
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env
/usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 X a52 acpi aim alsa asf audiofile avi bash-completion berkdb
bitmap-fonts bluetooth bootsplash bzip2 cairo ccache cdr cgi crypt css cups curl
dba dbus dts dvd dvdr dvdread dvi emboss emul-linux-x86 encode epiphany esd exif
expat fam fastbuild fastcgi fat ffmpeg firefox flac foomaticdb
force-cgi-redirect fortran freetype ftp fuse gd gdbm gif gimp glibc-omitfp glitz
glut glx gmail gmailtimestamps gmp gnome gnutls gpgme gphoto2 gpm gstreamer gtk
gtk2 gtkhtml gzip hal hddtemp hpn icq id3 idn imagemagick imlib innodb
insecure-savers jabber java javascript jikes jpeg jpeg2k junit kdeenablefinal
kqemu lame lcms libwww lighttpd live lm_sensors lzw lzw-tiff mad maildir
memcache mime mng moznocompose moznoirc moznomail mozsvg mp3 mpeg mpeg4 mplayer
msession msn multislot music musicbrainz mysql mysqli nautilus ncurses nls nntp
no_wxgtk1 nocd nptl nptlonly nsplugin offensive ogg oggvorbis on-the-fly-crypt
openal openexr opengl openssh oscar pam pam_timestamp pcre pdf pdflib perl php
pic plugin png ppds python quicktime readline real rhythmbox rrdtool rtc ruby
scanner sdl session sharedmem smime sockets softmmu source sox spell sqlite
sqlite3 ssl startup-notification svg symlink sysfs tagwriting tcltk tcpd tetex
theora threads tiff timidity truetype truetype-fonts type1 type1-fonts udev usb
userlocales utf8 vfat videos visualization vorbis webdav wifi wordperfect wv
xattr xine xml2 xmlrpc xpm xrandr xscreensaver xv xvid zlib userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 2 Jon Severinsson 2006-02-16 14:39:18 UTC
Having the same problem on Gentoo/Linux amd64 with gcc 4.0.2.
Considering it appears on both Gentoo/MacOS and Gentoo/Linux, but all reporters use GCC 4.0 I think it should be assigned to the GCC Porting Team rather than the Mac OS X Team, and block bug #117482

Making all in include
make[1]: Entering directory `/var/tmp/portage/libemf-1.0/work/libEMF-1.0/include'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/var/tmp/portage/libemf-1.0/work/libEMF-1.0/include'
Making all in libemf
make[1]: Entering directory `/var/tmp/portage/libemf-1.0/work/libEMF-1.0/libemf'
source='libemf.cpp' object='libemf.lo' libtool=yes \
depfile='.deps/libemf.Plo' tmpdepfile='.deps/libemf.TPlo' \
depmode=gcc3 /bin/sh ../config/depcomp \
/bin/sh ../libtool --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../config -I../include    -march=k8 -O2 -pipe -fomit-frame-pointer -D_REENTRANT -DPTHREADS -c -o libemf.lo `test -f libemf.cpp || echo './'`libemf.cpp
mkdir .libs
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../config -I../include -march=k8 -O2 -pipe -fomit-frame-pointer -D_REENTRANT -DPTHREADS -c libemf.cpp -MT libemf.lo -MD -MP -MF .deps/libemf.TPlo  -fPIC -DPIC -o .libs/libemf.lo
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.0.2/include/g++-v4/backward/function.h:59,
                 from libemf.h:29,
                 from libemf.cpp:21:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.0.2/include/g++-v4/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
../include/wine/winbase.h: In function 'void* InterlockedCompareExchangePointer(void**, void*, void*)':
../include/wine/winbase.h:1808: error: cast from 'void*' to 'LONG' loses precision
../include/wine/winbase.h:1808: error: cast from 'void*' to 'LONG' loses precision
../include/wine/winbase.h: In function 'void* InterlockedExchangePointer(void**, void*)':
../include/wine/winbase.h:1813: error: cast from 'void*' to 'LONG' loses precision
make[1]: *** [libemf.lo] Error 1
make[1]: Leaving directory `/var/tmp/portage/libemf-1.0/work/libEMF-1.0/libemf'
make: *** [all-recursive] Error 1

!!! ERROR: media-libs/libemf-1.0 failed.
Call stack:
  ebuild.sh, line 1894:   Called dyn_compile
  ebuild.sh, line 941:   Called src_compile

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.



Portage 2.1_pre4-r1 (default-linux/amd64/2005.1, gcc-4.0.2, glibc-2.3.6-r2, 2.6.13-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.13-gentoo-r5 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4400+
Gentoo Base System version 1.6.14
ccache version 2.3 [enabled]
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
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 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://trumpetti.atm.tut.fi/gentoo/ http://mirror.gentoo.no/ ftp://ftp.du.se/pub/os/gentoo http://ds.thn.htu.se/linux/gentoo ftp://mirror.pudas.net/gentoo"
LANG="sv_SE.utf8"
LINGUAS="en en_US en_GB sv sv_SE"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/migration-overlay /usr/local/portage/local-overlay"
SYNC="rsync://rsync.se.gentoo.org/gentoo-portage"
USE="amd64 X aac acl acpi alsa audiofile avi bash-completion berkdb bitmap-fonts bzip2 cairo caps crypt cups curl dbus dvd dvdr dvdread emacs emboss encode fbcon ffmpeg firefox flac foomaticdb fortran ftp gif gmp gpm gtk gtk2 hal idn imagemagick imap imlib innodb java javascript jpeg kde kdeenablefinal lcms lzw lzw-tiff mad mjpeg mozilla mp3 mpeg mysql ncurses nls nptl nsplugin ogg opengl oss pam pcre pdf pdflib perl png ppds python qt quicktime readline real samba sdl slp spell sqlite ssl svg tcpd theora tiff truetype truetype-fonts type1-fonts unicode usb userlocales videos vorbis xcomposite xine xml xml2 xpm xv xvid yahoo zip zlib elibc_glibc kernel_linux linguas_en linguas_en_US linguas_en_GB linguas_sv linguas_sv_SE userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LC_ALL, LDFLAGS


Comment 3 Fabian Groffen gentoo-dev 2006-02-17 00:29:15 UTC
I have no objections against that, as it won't be anytime near soon that I will have time to look into it.
Comment 4 Mark Loeser (RETIRED) gentoo-dev 2006-02-25 20:39:45 UTC
These are two completely different errors.

phosphan: is this package still maintained?  It looks like upstream hasn't put out anything since 2002, and the code will probably stop working soon since they are using deprecated headers.
Comment 5 Patrick Kursawe (RETIRED) gentoo-dev 2006-03-07 02:17:42 UTC
(In reply to comment #4)

> phosphan: is this package still maintained?  It looks like upstream hasn't put
> out anything since 2002, and the code will probably stop working soon since
> they are using deprecated headers.

No idea - will have to check when I'm back from my leave. Please be patient.
Comment 6 Mark Loeser (RETIRED) gentoo-dev 2006-03-09 23:00:57 UTC
Well, let us know if it has any chance of being maintained.  Fixing all of this stuff is going to get icky very fast.

I'm removing the blocker and gcc-porting until you let us know what is happening.
Comment 7 Jose daLuz 2006-03-13 09:16:22 UTC
It also happens on amd64 with gcc 4.1.0:

x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../config -I../include -march=athlon64 -O2 -pipe -ffriend-injection -D_REENTRANT -DPTHREADS -c libemf.cpp -MT libemf.lo -MD -MP -MF .deps/libemf.TPlo  -fPIC -DPIC -o .libs/libemf.lo
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.0/include/g++-v4/backward/function.h:59,
                 from libemf.h:29,
                 from libemf.cpp:21:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.0/include/g++-v4/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
../include/wine/winbase.h: In function 'void* InterlockedCompareExchangePointer(void**, void*, void*)':
../include/wine/winbase.h:1808: error: cast from 'void*' to 'LONG' loses precision
../include/wine/winbase.h:1808: error: cast from 'void*' to 'LONG' loses precision
../include/wine/winbase.h: In function 'void* InterlockedExchangePointer(void**, void*)':
../include/wine/winbase.h:1813: error: cast from 'void*' to 'LONG' loses precision

Portage 2.1_pre6 (default-linux/amd64/2006.0, gcc-3.4.5, glibc-2.4-r0, 2.6.15-ck5 x86_64)
=================================================================
System uname: 2.6.15-ck5 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.0_pre16
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2-r1
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-r1
sys-devel/binutils:  2.16.1-r1, 2.16.91.0.3, 2.16.91.0.5, 2.16.91.0.6
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=athlon64 -O2 -pipe -ffriend-injection"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS=""
FEATURES="autoconfig ccache distlocks metadata-transfer nostrip sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/bmg-main /usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="amd64 X aac alsa avi bash-completion berkdb bitmap-fonts bzip2 cairo cdr crypt cups dbus debug dri dvd dvdr eds emboss encode esd firefox flac foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 hal imlib ipv6 java jpeg kde ldap lzw lzw-tiff mad mono mozilla mp3 mpeg ncurses nls nptl nptlonly ogg opengl pam pdflib perl pic png python qt quicktime readline ruby samba sdl spell sqlite ssl tcpd theora tiff truetype truetype-fonts type1-fonts usb vorbis xml2 xpm xv zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU video_cards_vga video_cards_vesa video_cards_nv"
Unset:  ASFLAGS, CTARGET, LDFLAGS, LINGUAS, MAKEOPTS
Comment 8 Patrick Kursawe (RETIRED) gentoo-dev 2006-03-20 23:18:00 UTC
There is a modified version of libEMF which is used by pstoedit - see
http://sourceforge.net/project/showfiles.php?group_id=141853
perhaps this is a better base than our current version. Will have to check this...
Comment 9 Patrick Kursawe (RETIRED) gentoo-dev 2006-03-21 07:12:52 UTC
Created attachment 82782 [details, diff]
Patch for libemf-1.0.ebuild for libemf-1.0.3 from pstoedit

Could someone with amd64 please check? libemf 1.0.3 seems to work fine for gcc 4 without any patches at first glance. See attached patch for the ebuild.
Comment 10 Jose daLuz 2006-03-21 07:35:07 UTC
No go with 1.0.3:

 x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../config -I../include -march=k8 -O2 -pipe -ffriend-injection -D_REENTRANT -DPTHREADS -MT libemf.lo -MD -MP -MF .deps/libemf.Tpo -c libemf.cpp  -fPIC -DPIC -o .libs/libemf.o
In file included from ../include/libEMF/wine/windef.h:16,
                 from ../include/libEMF/emf.h:27,
                 from libemf.h:31,
                 from libemf.cpp:23:
../include/libEMF/wine/winnt.h:45:3: error: #error Unknown CPU architecture!
../include/libEMF/wine/winnt.h:1051:2: error: #error You need to define a CONTEXT for your CPU
../include/libEMF/wine/winnt.h:1054: error: expected initializer before '*' token
../include/libEMF/wine/winnt.h:2294: error: 'PCONTEXT' does not name a type
../include/libEMF/wine/winnt.h:2307: error: 'PCONTEXT' has not been declared
../include/libEMF/wine/winbase.h:120: error: 'PCONTEXT' does not name a type
../include/libEMF/wine/winbase.h:1243: error: 'CONTEXT' has not been declared
../include/libEMF/wine/winbase.h:1377: error: expected ',' or '...' before '*' token
../include/libEMF/wine/winbase.h:1377: error: ISO C++ forbids declaration of 'CONTEXT' with no type
make[1]: *** [libemf.lo] Error 1
make[1]: Leaving directory `/var/tmp/portage/libemf-1.0.3/work/libEMF-1.0.3/libemf'
make: *** [all-recursive] Error 1

!!! ERROR: media-libs/libemf-1.0.3 failed.

Portage 2.1_pre6-r5 (default-linux/amd64/2006.0, gcc-4.1.0, glibc-2.4-r1, 2.6.15-ck7 x86_64)
=================================================================
System uname: 2.6.15-ck7 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.0_pre16
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2-r1
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-r1
sys-devel/binutils:  2.16.1-r1, 2.16.91.0.6, 2.16.91.0.7
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=k8 -O2 -pipe -ffriend-injection"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS=""
FEATURES="autoconfig ccache confcache distlocks metadata-transfer nostrip sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/bmg-main /usr/local/xgl-coffee /usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="amd64 X aac alsa apache2 avi bash-completion berkdb bitmap-fonts bzip2 cairo cdr cli crypt ctype cups dba dbus debug dri dvd dvdr eds emboss encode esd expat fastbuild firefox flac foomaticdb force-cgi-redirect fortran ftp gd gdbm gif glitz gnome gpm gstreamer gtk gtk2 hal imlib ipv6 java jpeg kde ldap lzw lzw-tiff mad memlimit mono mozilla mp3 mpeg ncurses nls nptl nptlonly ogg opengl pam pcre pdflib perl pic png posix python qt quicktime readline ruby samba sdl session simplexml soap sockets spell spl sqlite ssl tcpd theora tiff tokenizer truetype truetype-fonts type1-fonts usb vorbis xml xml2 xpm xsl xv zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU video_cards_vga video_cards_vesa video_cards_nv"
Unset:  ASFLAGS, CTARGET, LDFLAGS, LINGUAS, MAKEOPTS
Comment 11 Patrick Kursawe (RETIRED) gentoo-dev 2006-03-23 09:23:37 UTC
(In reply to comment #10)
> No go with 1.0.3:
> 
>  x86_64-pc-linux-gnu-g++ ...
[...]
> ../include/libEMF/wine/winnt.h:45:3: error: #error Unknown CPU architecture!

OK, the patch needs to be updated for amd64, filed bug #127328.
Comment 12 Patrick Kursawe (RETIRED) gentoo-dev 2006-03-23 09:26:16 UTC
(In reply to comment #1)
> Behaviour confirmed on amd64:
[...]
> ../include/wine/winbase.h: In function 'void* InterlockedCompareExchangePointer(
> void**, void*, void*)':
> ../include/wine/winbase.h:1808: error: cast from 'void*' to 'LONG' loses precision

Completely different problem and most likely shows only up with gcc4.
Comment 13 Patrick Kursawe (RETIRED) gentoo-dev 2006-03-23 09:28:17 UTC
(In reply to comment #0)
> ../include/wine/winnt.h:53:3: error: #error Unknown CPU architecture!
[...]

Doesn't know how to handle ppc-macos-darwin.
Comment 14 Fabian Groffen gentoo-dev 2006-03-24 10:06:53 UTC
(In reply to comment #13)
> (In reply to comment #0)
> > ../include/wine/winnt.h:53:3: error: #error Unknown CPU architecture!
> [...]
> 
> Doesn't know how to handle ppc-macos-darwin.

me neither at this moment.  I guess some profile needs to be added?:wq
Comment 15 Mark Loeser (RETIRED) gentoo-dev 2006-04-30 17:45:12 UTC
*** Bug 126046 has been marked as a duplicate of this bug. ***
Comment 16 Patrick Kursawe (RETIRED) gentoo-dev 2006-05-18 09:04:09 UTC
Well, looks like there's no working patch around. As long as nobody can write one, I close this as CANTFIX.