Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#19953 closed defect (fixed)

librsvg-2.26.0 Configure error - bad freetype2.pc file

Reported by: cgtobi@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: librsvg ppc tiger Cc: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Port: freetype librsvg

Description (last modified by jmroot (Joshua Root))

$ sudo port install librsvg
Password:

--->  Configuring librsvg
Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_librsvg/work/librsvg-2.26.0" && ./configure --prefix=/opt/local --enable-pixbuf-loader --with-svgz " returned error 1
Command output: checking if /usr/bin/gcc-4.0 static flag -static works... no
checking if /usr/bin/gcc-4.0 supports -c -o file.o... yes
checking if /usr/bin/gcc-4.0 supports -c -o file.o... (cached) yes
checking whether the /usr/bin/gcc-4.0 linker (/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin8.11.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for ANSI C header files... (cached) yes
checking whether /usr/bin/gcc-4.0 and cc understand -c and -o together... yes
checking whether byte ordering is bigendian... yes
checking for some Win32 platform... no
checking for native Win32... no
checking for pkg-config... /opt/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GLIB... yes
checking for LIBRSVG... configure: error: Package requirements (        gdk-pixbuf-2.0 >= 1.3.7         glib-2.0 >= 2.12.0      libxml-2.0 >= 2.4.7     pangoft2 >= 1.2.0       pangocairo >= 1.10.0    cairo >= 1.2.0  cairo-png >= 1.2.0     fontconfig >= 1.0.1
        freetype2) were not met:

Libs.private field occurs twice in '/opt/local/lib/pkgconfig/freetype2.pc'

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBRSVG_CFLAGS
and LIBRSVG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.


Error: Status 1 encountered during processing.

Change History (6)

comment:1 Changed 15 years ago by cgtobi@…

Cc: cgtobi@… added

Cc Me!

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

Cc: cgtobi@… removed
Description: modified (diff)
Owner: changed from macports-tickets@… to ryandesign@…
Port: freetype added
Summary: librsvg-2.26.0 Configure error - build failure - Tiger (ppc)librsvg-2.26.0 Configure error - bad freetype2.pc file

comment:3 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Could you please attach the file /opt/local/lib/pkgconfig/freetype2.pc?

comment:4 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: mcalhoun@… added
Status: newassigned

Never mind -- I can reproduce the problem on my system now, after rebuilding freetype universal with both 32-bit and 64-bit architectures, following the changes made for #19101. Both freetype2.pc and freetype-config now contain #ifndefs for __LP64__.

--- freetype-config.old
+++ freetype-config.new
@@ -144,7 +144,11 @@
   if test "$enable_shared" = "yes" ; then
     eval "rpath=\"$hardcode_libdir_flag_spec\""
   fi
+#ifndef __LP64__
+  libs="-lfreetype -lz -Wl,-framework,CoreServices -Wl,-framework,ApplicationServices"
+#else /* __LP64__ */
   libs="-lfreetype -lz "
+#endif /* __LP64__ */
   if test "$libdir" != "/usr/lib" && test "$libdir" != "/usr/lib64"; then
     echo -L$libdir $rpath $libs
   else
--- freetype2.pc.old
+++ freetype2.pc.new
@@ -8,5 +8,9 @@
 Version: 9.20.3
 Requires:
 Libs: -L${libdir} -lfreetype
+#ifndef __LP64__
+Libs.private: -lz -Wl,-framework,CoreServices -Wl,-framework,ApplicationServices
+#else /* __LP64__ */
 Libs.private: -lz 
+#endif /* __LP64__ */
 Cflags: -I${includedir}/freetype2 -I${includedir}

What should we do about this? For one thing, I think muniversal should issue a fatal error if a difference is encountered in .pc files; I don't know of any way to merge these files.

comment:5 in reply to:  4 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to ryandesign@…:

For one thing, I think muniversal should issue a fatal error if a difference is encountered in .pc files; I don't know of any way to merge these files.

I filed #21953 for this request.

comment:6 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

I'm no longer able to reproduce this problem.

Note: See TracTickets for help on using tickets.