Opened 15 years ago

Closed 14 years ago

#21234 closed defect (fixed)

libemf @ 1.0.3 - Build failure

Reported by: alexander.zimmermann@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.8.0
Keywords: Cc: arik.cj@…, helgel@…, msgboxx@…, Damien@…, hvitved@…, tecskater@…, phoetmail@…, nerdling (Jeremy Lavergne), ruud@…, konstantin@…, ronhuang@…, jjstickel@…, nox@…, roederja, biobrain@…
Port: libemf

Description

  • MacBookPro5,3 (MacBook Pro - Intel Core 2 Duo - 2,66 GHz)
  • Mac OS X 10.6
alexander@miami:~$ sudo port install libemf
--->  Computing dependencies for libemf
--->  Fetching libemf
--->  Verifying checksum(s) for libemf
--->  Extracting libemf
--->  Configuring libemf
--->  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

Error: Status 1 encountered during processing.

Change History (30)

comment:1 Changed 15 years ago by bloosqr@…

Cc: bloosqr@… added

Cc Me!

comment:2 Changed 15 years ago by mf2k (Frank Schima)

Cc: jjstickel@… removed
Owner: changed from macports-tickets@… to jjstickel@…
Port: libemf added

comment:3 Changed 15 years ago by jjstickel@…

After spending the effort to make the port for libemf, I found that it works very poorly. I am not interested in being the maintainer for it now. If no one else wants to either, then it should probably be removed from the deps of pstoedit.

comment:4 Changed 15 years ago by mf2k (Frank Schima)

Cc: arik.cj@… added

Cc reporter of dup #21244.

comment:5 Changed 15 years ago by 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

comment:6 in reply to:  5 Changed 15 years ago 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 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

comment:7 Changed 15 years ago by helgel@…

Cc: helgel@… added

Cc Me!

comment:8 Changed 15 years ago by bloosqr@…

Cc: bloosqr@… removed

Cc Me!

comment:9 Changed 15 years ago by msgboxx@…

Cc: msgboxx@… added

Cc Me!

comment:10 Changed 15 years ago by miken32 (Michael Newton)

This doesn't directly affect this bug, but probably most people will encounter this bug while trying to install dia.

I edited the dia Portfile to include configure.args --disable-libemf and removed the dependency on the libemf port. All went well.

Perhaps the Portfile for dia should have libemf disabled by default if the libemf port isn't working and won't be maintained. Or at least have it as a variant.

comment:11 in reply to:  10 Changed 15 years ago by jjstickel@…

Replying to miken32@…:

Perhaps the Portfile for dia should have libemf disabled by default if the libemf port isn't working and won't be maintained.

I agree. I originally created the libemf port to provide a means to convert vector graphics to emf via pstoedit. However, I found the resulting emf files did not import well into Microsoft products, which was the whole purpose for me. Unless someone else has found otherwise, we should remove libemf and force it to not be used in pstoedit, dia, etc.

Jonathan

comment:12 Changed 15 years ago by Damien@…

Cc: Damien@… added

Cc Me!

comment:13 Changed 15 years ago by Damien@…

Same problem for me, and same opinion : I need dia, but I don't need emf support (but png and pdf are essential, specially by CLI)

comment:14 Changed 15 years ago by hvitved@…

Cc: hvitved@… added

Cc Me!

comment:15 Changed 15 years ago by tecskater@…

Cc: tecskater@… added

Cc Me!

comment:16 Changed 15 years ago by phoetmail@…

Cc: phoetmail@… added

Cc Me!

comment:17 Changed 15 years ago by phoetmail@…

Can I fix the problem locally on my machine by editing the configure.args as described above?

Where do i find the portfile then?

comment:18 Changed 15 years ago by tecskater@…

/opt/local/var/macports/sources/rsync.macports.org/release/ports/gnome/dia/Portfile

Removed libemf from depends_lib and --disable-libemf to configure.args. That worked for me.

comment:19 in reply to:  18 Changed 15 years ago by phoetmail@…

Replying to tecskater@…:

/opt/local/var/macports/sources/rsync.macports.org/release/ports/gnome/dia/Portfile

Removed libemf from depends_lib and --disable-libemf to configure.args. That worked for me.

thx, this worked fine for me. my portfile is now like this:

[...]
depends_lib \
    path:lib/pkgconfig/cairo.pc:cairo \
    port:freetype \
    port:libart_lgpl \
    port:libpng \
    port:libxml2 \
    port:libxslt \
    port:gettext \
    path:lib/pkgconfig/glib-2.0.pc:glib2 \
    port:gtk2 \
    path:lib/pkgconfig/pango.pc:pango \
    port:popt \
    port:zlib

configure.args \
    --with-cairo \
    --disable-libemf \
    --with-xslt-prefix=${prefix}
[...]

comment:20 Changed 15 years ago by nerdling (Jeremy Lavergne)

Cc: snc@… added

jjstickel: should we drop libemf as phoetmail has shown? Do you want to stay on as the maintainer for libemf?

comment:21 Changed 15 years ago by jjstickel@…

Yes, removing libemf as dependencies from the portfiles of dia, etc. (as shown) seems like the right thing to do. And, no, I do not want to be the maintainer of libemf. I recommend removing libemf from macports all-together since it works poorly at best.

comment:22 Changed 15 years ago by ruud@…

Cc: ruud@… added

Cc Me!

comment:23 Changed 15 years ago by konstantin@…

Cc: konstantin@… added

Cc Me!

comment:24 Changed 15 years ago by ronhuang@…

Cc: ronhuang@… added

Cc Me!

comment:25 Changed 15 years ago by jmroot (Joshua Root)

Cc: jjstickel@… added
Owner: changed from jjstickel@… to macports-tickets@…

Port set to nomaintainer in r60649.

comment:26 Changed 15 years ago by roederja

Cc: nox@… jann@… added

comment:27 Changed 15 years ago by roederja

I removed the libEMF dependency for now (r61606). If someone manages to fix the libEMF port he can add it back.

comment:28 Changed 15 years ago by mf2k (Frank Schima)

Cc: biobrain@… added

Cc reporter of duplicate #24415.

comment:29 Changed 14 years ago by jmroot (Joshua Root)

Cc: ruud@… added; ruud@… removed

comment:30 Changed 14 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.