[MacPorts] #17221: libmng-1.0.10 fails to build with 10.4 and +universal

MacPorts noreply at macports.org
Thu Nov 13 04:12:49 PST 2008


#17221: libmng-1.0.10 fails to build with 10.4 and +universal
---------------------------------------+------------------------------------
  Reporter:  jeremy at jeremysanders.net  |       Owner:  macports-tickets at lists.macosforge.org
      Type:  defect                    |      Status:  new                                  
  Priority:  Normal                    |   Milestone:  Port Bugs                            
 Component:  ports                     |     Version:  1.6.0                                
Resolution:                            |    Keywords:                                       
      Port:  libmng                    |  
---------------------------------------+------------------------------------
Changes (by ryandesign at macports.org):

  * port:  => libmng


Old description:

> I can't get libmng to build (to try to build qt4-mac). This is with Mac
> OS X 10.4.8 and port 1.6 and +universal.
>
> {{{
> --->  Building libmng with target all
> 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_libmng/work/libmng-1.0.10"
> && make all " returned error 2
> Command output: /opt/local/include/jconfig.h:12:1: warning:
> "HAVE_STDLIB_H" redefined
> <command line>:1:1: warning: this is the location of the previous
> definition
> In file included from /opt/local/include/jpeglib.h:24,
>                  from libmng_types.h:197,
>                  from libmng.h:386,
>                  from libmng_write.c:46:
> /opt/local/include/jconfig.h:12:1: warning: "HAVE_STDLIB_H" redefined
> <command line>:1:1: warning: this is the location of the previous
> definition
>  /usr/bin/gcc-4.0 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"
> -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\"
> -DPACKAGE=\"libmng\" -DVERSION=\"1.0.9\" -DPROTOTYPES=1 -D__PROTOTYPES=1
> -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
> -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
> -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1
> -DHAVE_DLFCN_H=1 -DSTDC_HEADERS=1 -DMNG_BUILD_SO=1 -DMNG_SUPPORT_FULL=1
> -DMNG_SUPPORT_READ=1 -DMNG_SUPPORT_WRITE=1 -DMNG_SUPPORT_DISPLAY=1
> -DMNG_SUPPORT_DYNAMICMNG=1 -DMNG_ACCESS_CHUNKS=1 -DMNG_STORE_CHUNKS=1
> -DMNG_ERROR_TELLTALE=1 -DHAVE_LIBZ=1 -DHAVE_LIBJPEG=1 -DHAVE_LIBLCMS=1
> -DMNG_FULL_CMS=1 -I. -I/opt/local/include -I/opt/local/include
> -I/opt/local/include -I/opt/local/include -O2 -isysroot
> /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc -c libmng_write.c -o
> libmng_write.o >/dev/null 2>&1
> /bin/sh ./libtool --tag=CC   --mode=compile /usr/bin/gcc-4.0
> -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
> -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libmng\"
> -DVERSION=\"1.0.9\" -DPROTOTYPES=1 -D__PROTOTYPES=1 -DSTDC_HEADERS=1
> -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
> -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
> -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1
> -DHAVE_DLFCN_H=1 -DSTDC_HEADERS=1 -DMNG_BUILD_SO=1 -DMNG_SUPPORT_FULL=1
> -DMNG_SUPPORT_READ=1 -DMNG_SUPPORT_WRITE=1 -DMNG_SUPPORT_DISPLAY=1
> -DMNG_SUPPORT_DYNAMICMNG=1 -DMNG_ACCESS_CHUNKS=1 -DMNG_STORE_CHUNKS=1
> -DMNG_ERROR_TELLTALE=1 -DHAVE_LIBZ=1 -DHAVE_LIBJPEG=1 -DHAVE_LIBLCMS=1
> -DMNG_FULL_CMS=1 -I.   -I/opt/local/include -I/opt/local/include
> -I/opt/local/include -I/opt/local/include  -O2 -isysroot
> /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc -c -o libmng_zlib.lo
> libmng_zlib.c
>  /usr/bin/gcc-4.0 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"
> -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\"
> -DPACKAGE=\"libmng\" -DVERSION=\"1.0.9\" -DPROTOTYPES=1 -D__PROTOTYPES=1
> -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
> -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
> -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1
> -DHAVE_DLFCN_H=1 -DSTDC_HEADERS=1 -DMNG_BUILD_SO=1 -DMNG_SUPPORT_FULL=1
> -DMNG_SUPPORT_READ=1 -DMNG_SUPPORT_WRITE=1 -DMNG_SUPPORT_DISPLAY=1
> -DMNG_SUPPORT_DYNAMICMNG=1 -DMNG_ACCESS_CHUNKS=1 -DMNG_STORE_CHUNKS=1
> -DMNG_ERROR_TELLTALE=1 -DHAVE_LIBZ=1 -DHAVE_LIBJPEG=1 -DHAVE_LIBLCMS=1
> -DMNG_FULL_CMS=1 -I. -I/opt/local/include -I/opt/local/include
> -I/opt/local/include -I/opt/local/include -O2 -isysroot
> /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc -c libmng_zlib.c
> -fno-common -DPIC -o .libs/libmng_zlib.o
> In file included from /opt/local/include/jpeglib.h:24,
>                  from libmng_types.h:197,
>                  from libmng.h:386,
>                  from libmng_zlib.c:55:
> /opt/local/include/jconfig.h:12:1: warning: "HAVE_STDLIB_H" redefined
> <command line>:1:1: warning: this is the location of the previous
> definition
> In file included from /opt/local/include/jpeglib.h:24,
>                  from libmng_types.h:197,
>                  from libmng.h:386,
>                  from libmng_zlib.c:55:
> /opt/local/include/jconfig.h:12:1: warning: "HAVE_STDLIB_H" redefined
> <command line>:1:1: warning: this is the location of the previous
> definition
>  /usr/bin/gcc-4.0 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"
> -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\"
> -DPACKAGE=\"libmng\" -DVERSION=\"1.0.9\" -DPROTOTYPES=1 -D__PROTOTYPES=1
> -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
> -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
> -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1
> -DHAVE_DLFCN_H=1 -DSTDC_HEADERS=1 -DMNG_BUILD_SO=1 -DMNG_SUPPORT_FULL=1
> -DMNG_SUPPORT_READ=1 -DMNG_SUPPORT_WRITE=1 -DMNG_SUPPORT_DISPLAY=1
> -DMNG_SUPPORT_DYNAMICMNG=1 -DMNG_ACCESS_CHUNKS=1 -DMNG_STORE_CHUNKS=1
> -DMNG_ERROR_TELLTALE=1 -DHAVE_LIBZ=1 -DHAVE_LIBJPEG=1 -DHAVE_LIBLCMS=1
> -DMNG_FULL_CMS=1 -I. -I/opt/local/include -I/opt/local/include
> -I/opt/local/include -I/opt/local/include -O2 -isysroot
> /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc -c libmng_zlib.c -o
> libmng_zlib.o >/dev/null 2>&1
> /bin/sh ./libtool --tag=CC   --mode=link /usr/bin/gcc-4.0  -O2 -isysroot
> /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc -version-info 1:0:0
> -L/opt/local/lib -arch i386 -arch ppc -L/opt/local/lib -L/opt/local/lib
> -L/opt/local/lib -o libmng.la -rpath /opt/local/lib libmng_callback_xs.lo
> libmng_chunk_io.lo libmng_chunk_prc.lo libmng_chunk_xs.lo libmng_cms.lo
> libmng_display.lo libmng_dither.lo libmng_error.lo libmng_filter.lo
> libmng_hlapi.lo libmng_jpeg.lo libmng_object_prc.lo libmng_pixels.lo
> libmng_prop_xs.lo libmng_read.lo libmng_trace.lo libmng_write.lo
> libmng_zlib.lo  -lz  -ljpeg -llcms
> /usr/bin/gcc-4.0 -dynamiclib ${wl}-undefined ${wl}dynamic_lookup -o
> .libs/libmng.1.0.0.dylib  .libs/libmng_callback_xs.o
> .libs/libmng_chunk_io.o .libs/libmng_chunk_prc.o .libs/libmng_chunk_xs.o
> .libs/libmng_cms.o .libs/libmng_display.o .libs/libmng_dither.o
> .libs/libmng_error.o .libs/libmng_filter.o .libs/libmng_hlapi.o
> .libs/libmng_jpeg.o .libs/libmng_object_prc.o .libs/libmng_pixels.o
> .libs/libmng_prop_xs.o .libs/libmng_read.o .libs/libmng_trace.o
> .libs/libmng_write.o .libs/libmng_zlib.o  -L/opt/local/lib -lz
> /opt/local/lib/libjpeg.dylib /opt/local/lib/liblcms.dylib  -isysroot
> /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc -arch i386 -arch ppc
> -install_name  /opt/local/lib/libmng.1.dylib -compatibility_version 2
> -current_version 2.0 -Wl,-single_module
> ld: flag: -undefined dynamic_lookup can't be used with
> MACOSX_DEPLOYMENT_TARGET environment variable set to: 10.1
> /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/libtool: internal link edit
> command failed
> lipo: can't figure out the architecture type of: /var/tmp//ccTrFEFE.out
> make: *** [libmng.la] Error 1
>
> Error: The following dependencies failed to build: libmng libpng
> Error: Status 1 encountered during processing.
> }}}
>
> Is this similar to 16286?

New description:

 I can't get libmng to build (to try to build qt4-mac). This is with Mac OS
 X 10.4.8 and port 1.6 and +universal.

 {{{
 --->  Building libmng with target all
 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_libmng/work/libmng-1.0.10"
 && make all " returned error 2
 Command output: /opt/local/include/jconfig.h:12:1: warning:
 "HAVE_STDLIB_H" redefined
 <command line>:1:1: warning: this is the location of the previous
 definition
 In file included from /opt/local/include/jpeglib.h:24,
                  from libmng_types.h:197,
                  from libmng.h:386,
                  from libmng_write.c:46:
 /opt/local/include/jconfig.h:12:1: warning: "HAVE_STDLIB_H" redefined
 <command line>:1:1: warning: this is the location of the previous
 definition
  /usr/bin/gcc-4.0 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"
 -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\"
 -DPACKAGE=\"libmng\" -DVERSION=\"1.0.9\" -DPROTOTYPES=1 -D__PROTOTYPES=1
 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1
 -DHAVE_DLFCN_H=1 -DSTDC_HEADERS=1 -DMNG_BUILD_SO=1 -DMNG_SUPPORT_FULL=1
 -DMNG_SUPPORT_READ=1 -DMNG_SUPPORT_WRITE=1 -DMNG_SUPPORT_DISPLAY=1
 -DMNG_SUPPORT_DYNAMICMNG=1 -DMNG_ACCESS_CHUNKS=1 -DMNG_STORE_CHUNKS=1
 -DMNG_ERROR_TELLTALE=1 -DHAVE_LIBZ=1 -DHAVE_LIBJPEG=1 -DHAVE_LIBLCMS=1
 -DMNG_FULL_CMS=1 -I. -I/opt/local/include -I/opt/local/include
 -I/opt/local/include -I/opt/local/include -O2 -isysroot
 /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc -c libmng_write.c -o
 libmng_write.o >/dev/null 2>&1
 /bin/sh ./libtool --tag=CC   --mode=compile /usr/bin/gcc-4.0
 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
 -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libmng\"
 -DVERSION=\"1.0.9\" -DPROTOTYPES=1 -D__PROTOTYPES=1 -DSTDC_HEADERS=1
 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1 -DHAVE_DLFCN_H=1
 -DSTDC_HEADERS=1 -DMNG_BUILD_SO=1 -DMNG_SUPPORT_FULL=1
 -DMNG_SUPPORT_READ=1 -DMNG_SUPPORT_WRITE=1 -DMNG_SUPPORT_DISPLAY=1
 -DMNG_SUPPORT_DYNAMICMNG=1 -DMNG_ACCESS_CHUNKS=1 -DMNG_STORE_CHUNKS=1
 -DMNG_ERROR_TELLTALE=1 -DHAVE_LIBZ=1 -DHAVE_LIBJPEG=1 -DHAVE_LIBLCMS=1
 -DMNG_FULL_CMS=1 -I.   -I/opt/local/include -I/opt/local/include
 -I/opt/local/include -I/opt/local/include  -O2 -isysroot
 /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc -c -o libmng_zlib.lo
 libmng_zlib.c
  /usr/bin/gcc-4.0 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"
 -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\"
 -DPACKAGE=\"libmng\" -DVERSION=\"1.0.9\" -DPROTOTYPES=1 -D__PROTOTYPES=1
 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1
 -DHAVE_DLFCN_H=1 -DSTDC_HEADERS=1 -DMNG_BUILD_SO=1 -DMNG_SUPPORT_FULL=1
 -DMNG_SUPPORT_READ=1 -DMNG_SUPPORT_WRITE=1 -DMNG_SUPPORT_DISPLAY=1
 -DMNG_SUPPORT_DYNAMICMNG=1 -DMNG_ACCESS_CHUNKS=1 -DMNG_STORE_CHUNKS=1
 -DMNG_ERROR_TELLTALE=1 -DHAVE_LIBZ=1 -DHAVE_LIBJPEG=1 -DHAVE_LIBLCMS=1
 -DMNG_FULL_CMS=1 -I. -I/opt/local/include -I/opt/local/include
 -I/opt/local/include -I/opt/local/include -O2 -isysroot
 /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc -c libmng_zlib.c
 -fno-common -DPIC -o .libs/libmng_zlib.o
 In file included from /opt/local/include/jpeglib.h:24,
                  from libmng_types.h:197,
                  from libmng.h:386,
                  from libmng_zlib.c:55:
 /opt/local/include/jconfig.h:12:1: warning: "HAVE_STDLIB_H" redefined
 <command line>:1:1: warning: this is the location of the previous
 definition
 In file included from /opt/local/include/jpeglib.h:24,
                  from libmng_types.h:197,
                  from libmng.h:386,
                  from libmng_zlib.c:55:
 /opt/local/include/jconfig.h:12:1: warning: "HAVE_STDLIB_H" redefined
 <command line>:1:1: warning: this is the location of the previous
 definition
  /usr/bin/gcc-4.0 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"
 -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\"
 -DPACKAGE=\"libmng\" -DVERSION=\"1.0.9\" -DPROTOTYPES=1 -D__PROTOTYPES=1
 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1
 -DHAVE_DLFCN_H=1 -DSTDC_HEADERS=1 -DMNG_BUILD_SO=1 -DMNG_SUPPORT_FULL=1
 -DMNG_SUPPORT_READ=1 -DMNG_SUPPORT_WRITE=1 -DMNG_SUPPORT_DISPLAY=1
 -DMNG_SUPPORT_DYNAMICMNG=1 -DMNG_ACCESS_CHUNKS=1 -DMNG_STORE_CHUNKS=1
 -DMNG_ERROR_TELLTALE=1 -DHAVE_LIBZ=1 -DHAVE_LIBJPEG=1 -DHAVE_LIBLCMS=1
 -DMNG_FULL_CMS=1 -I. -I/opt/local/include -I/opt/local/include
 -I/opt/local/include -I/opt/local/include -O2 -isysroot
 /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc -c libmng_zlib.c -o
 libmng_zlib.o >/dev/null 2>&1
 /bin/sh ./libtool --tag=CC   --mode=link /usr/bin/gcc-4.0  -O2 -isysroot
 /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc -version-info 1:0:0
 -L/opt/local/lib -arch i386 -arch ppc -L/opt/local/lib -L/opt/local/lib
 -L/opt/local/lib -o libmng.la -rpath /opt/local/lib libmng_callback_xs.lo
 libmng_chunk_io.lo libmng_chunk_prc.lo libmng_chunk_xs.lo libmng_cms.lo
 libmng_display.lo libmng_dither.lo libmng_error.lo libmng_filter.lo
 libmng_hlapi.lo libmng_jpeg.lo libmng_object_prc.lo libmng_pixels.lo
 libmng_prop_xs.lo libmng_read.lo libmng_trace.lo libmng_write.lo
 libmng_zlib.lo  -lz  -ljpeg -llcms
 /usr/bin/gcc-4.0 -dynamiclib ${wl}-undefined ${wl}dynamic_lookup -o
 .libs/libmng.1.0.0.dylib  .libs/libmng_callback_xs.o
 .libs/libmng_chunk_io.o .libs/libmng_chunk_prc.o .libs/libmng_chunk_xs.o
 .libs/libmng_cms.o .libs/libmng_display.o .libs/libmng_dither.o
 .libs/libmng_error.o .libs/libmng_filter.o .libs/libmng_hlapi.o
 .libs/libmng_jpeg.o .libs/libmng_object_prc.o .libs/libmng_pixels.o
 .libs/libmng_prop_xs.o .libs/libmng_read.o .libs/libmng_trace.o
 .libs/libmng_write.o .libs/libmng_zlib.o  -L/opt/local/lib -lz
 /opt/local/lib/libjpeg.dylib /opt/local/lib/liblcms.dylib  -isysroot
 /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc -arch i386 -arch ppc
 -install_name  /opt/local/lib/libmng.1.dylib -compatibility_version 2
 -current_version 2.0 -Wl,-single_module
 ld: flag: -undefined dynamic_lookup can't be used with
 MACOSX_DEPLOYMENT_TARGET environment variable set to: 10.1
 /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/libtool: internal link edit
 command failed
 lipo: can't figure out the architecture type of: /var/tmp//ccTrFEFE.out
 make: *** [libmng.la] Error 1

 Error: The following dependencies failed to build: libmng libpng
 Error: Status 1 encountered during processing.
 }}}

 Is this similar to #16286?

--

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


More information about the macports-tickets mailing list