[MacPorts] #21234: libemf @ 1.0.3 - Build failure

MacPorts noreply at macports.org
Tue Sep 15 23:43:14 PDT 2009


#21234: libemf @ 1.0.3 - Build failure
-------------------------------------------------+--------------------------
 Reporter:  alexander.zimmermann@…               |       Owner:  jjstickel@…      
     Type:  defect                               |      Status:  new              
 Priority:  Normal                               |   Milestone:                   
Component:  ports                                |     Version:  1.8.0            
 Keywords:                                       |        Port:  libemf           
-------------------------------------------------+--------------------------

Comment(by arik.cj@…):

 still cannot work, but the error changed

 {{{
 DEBUG: Found port in
 file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/graphics/libemf
 DEBUG: Changing to port directory:
 /opt/local/var/macports/sources/rsync.macports.org/release/ports/graphics/libemf
 DEBUG: OS Platform: darwin
 DEBUG: OS Version: 10.0.0
 DEBUG: Mac OS X Version: 10.6
 DEBUG: System Arch: i386
 DEBUG: setting option os.universal_supported to yes
 DEBUG: org.macports.load registered provides 'load', a pre-existing
 procedure. Target override will not be provided
 DEBUG: org.macports.unload registered provides 'unload', a pre-existing
 procedure. Target override will not be provided
 DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-
 existing procedure. Target override will not be provided
 DEBUG: Reading variant descriptions from
 /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
 DEBUG: adding the default universal variant
 DEBUG: Requested variant darwin is not provided by port libemf.
 DEBUG: Requested variant i386 is not provided by port libemf.
 DEBUG: Requested variant macosx is not provided by port libemf.
 --->  Computing dependencies for libemf
 DEBUG: Executing org.macports.main (libemf)
 DEBUG: Skipping completed org.macports.fetch (libemf)
 DEBUG: Skipping completed org.macports.checksum (libemf)
 DEBUG: Skipping completed org.macports.extract (libemf)
 DEBUG: Skipping completed org.macports.patch (libemf)
 DEBUG: Skipping completed org.macports.configure (libemf)
 --->  Building libemf
 DEBUG: Executing org.macports.build (libemf)
 DEBUG: Environment: CPATH='/opt/local/include'
 LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.6'
 DEBUG: Assembled 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 -j1 all'
 Making all in include
 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
  /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
 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 -j1 all " returned error 2
 Command output: Making all in include
 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
  /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

 DEBUG: Backtrace: 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 -j1 all " returned error 2
 Command output: Making all in include
 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
  /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

     while executing
 "command_exec build"
     (procedure "portbuild::build_main" line 9)
     invoked from within
 "$procedure $targetname"
 Warning: the following items did not execute (for libemf):
 org.macports.activate org.macports.build org.macports.destroot
 org.macports.install
 Error: Status 1 encountered during processing.

 }}}

 Replying to [comment:5 davshaonr@…]:
 > I got dia and libemf to install, at least the i386 version, on a Macbook
 2.1 running 10.6.1, stock install of Xcode 3.2 from the Snow Leopard DVD
 apart from checking 10.4 sdk support.
 >
 > 1) Install as many dependencies of dia and libemf as variant universal
 as possible.
 >
 > 2) sudo port -d install libemf configure.compiler=gcc-4.0
 configure.build_arch=i386
 >
 > 3) sudo port -d install dia configure.compiler=gcc-4.0
 configure.build_arch=i386

-- 
Ticket URL: <http://trac.macports.org/ticket/21234#comment:6>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list