[MacPorts] #22597: libemf
MacPorts
noreply at macports.org
Wed Nov 18 11:00:16 PST 2009
#22597: libemf
-----------------------------+----------------------------------------------
Reporter: roel@… | Owner: jjstickel@…
Type: defect | Status: new
Priority: Low | Milestone:
Component: ports | Version: 1.8.1
Keywords: | Port: libemf
-----------------------------+----------------------------------------------
Changes (by jmr@…):
* owner: macports-tickets@… => jjstickel@…
* port: => libemf
* milestone: MacPorts 1.8.2 =>
Old description:
> libemf fails to build on Snow Leopard (10.6.2) 32 bit.
> The problem is that the #ifdef-statement in "include/libEMF/wine/winnt.h"
> does not understand the architecture.
> The package is compiled with the option "-arch x86_64", but this is not
> correct. When I #define __i386__ by hand in the top of the winnt.h file,
> it compiles OK.
>
> ---> Building libemf
> Error: Target org.macports.build returned: shell command " cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_libemf/work/libEMF-1.0.3"
> && /usr/bin/make -j2 all " returned error 2
> Command output: Making all in libEMF
> make[2]: Nothing to be done for `all'.
> make[2]: Nothing to be done for `all-am'.
> Making all in libemf
> if /bin/sh ../libtool --mode=compile /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I.
> -I. -I../config -I../include -I/opt/local/include -O2 -arch x86_64
> -D_REENTRANT -DPTHREADS -MT libemf.lo -MD -MP -MF ".deps/libemf.Tpo" -c
> -o libemf.lo libemf.cpp; \
> then mv -f ".deps/libemf.Tpo" ".deps/libemf.Plo"; else rm -f
> ".deps/libemf.Tpo"; exit 1; fi
> mkdir .libs
> /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I. -I../config -I../include
> -I/opt/local/include -O2 -arch x86_64 -D_REENTRANT -DPTHREADS -MT
> libemf.lo -MD -MP -MF .deps/libemf.Tpo -c libemf.cpp -fno-common -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
> 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: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
> In file included from ../include/libEMF/emf.h:28,
> from libemf.h:31,
> from libemf.cpp:23:
> ../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: *** [all-recursive] Error 1
New description:
libemf fails to build on Snow Leopard (10.6.2) 32 bit.
The problem is that the #ifdef-statement in "include/libEMF/wine/winnt.h"
does not understand the architecture.
The package is compiled with the option "-arch x86_64", but this is not
correct. When I #define __i386__ by hand in the top of the winnt.h file,
it compiles OK.
{{{
---> Building libemf
Error: Target org.macports.build returned: shell command " cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_libemf/work/libEMF-1.0.3"
&& /usr/bin/make -j2 all " returned error 2
Command output: Making all in libEMF
make[2]: Nothing to be done for `all'.
make[2]: Nothing to be done for `all-am'.
Making all in libemf
if /bin/sh ../libtool --mode=compile /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I.
-I. -I../config -I../include -I/opt/local/include -O2 -arch x86_64
-D_REENTRANT -DPTHREADS -MT libemf.lo -MD -MP -MF ".deps/libemf.Tpo" -c -o
libemf.lo libemf.cpp; \
then mv -f ".deps/libemf.Tpo" ".deps/libemf.Plo"; else rm -f
".deps/libemf.Tpo"; exit 1; fi
mkdir .libs
/usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I. -I../config -I../include
-I/opt/local/include -O2 -arch x86_64 -D_REENTRANT -DPTHREADS -MT
libemf.lo -MD -MP -MF .deps/libemf.Tpo -c libemf.cpp -fno-common -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
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: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
In file included from ../include/libEMF/emf.h:28,
from libemf.h:31,
from libemf.cpp:23:
../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: *** [all-recursive] Error 1
}}}
--
Comment:
Please remember to preview and use WikiFormatting, cc the maintainer, and
fill in the Port field. Also please leave the milestone field empty as per
the ticket guidelines.
--
Ticket URL: <http://trac.macports.org/ticket/22597#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list