Bug 163121

Summary: Build issue with graphics/gegl
Product: Ports & Packages Reporter: freebsd
Component: Individual Port(s)Assignee: freebsd-gnome (Nobody) <gnome>
Status: Closed FIXED    
Severity: Affects Only Me CC: gnome
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
config.log none

Description freebsd 2011-12-08 11:30:10 UTC
	port configure fails:
root@cakebox /export/ports/graphics/gegl > make
===>  Found saved configuration for gegl-0.1.6
===>  Extracting for gegl-0.1.8_1
=> SHA256 Checksum OK for gegl-0.1.8.tar.bz2.
===>  Patching for gegl-0.1.8_1
===>  Applying FreeBSD patches for gegl-0.1.8_1
/usr/bin/sed -i.bak -e '10s|\\||; 11,13d' /var/tmp/export/ports/graphics/gegl/work/gegl-0.1.8/Makefile.am
/usr/bin/sed -i.bak -e 's|-T||' /var/tmp/export/ports/graphics/gegl/work/gegl-0.1.8/docs/Makefile.am /var/tmp/export/ports/graphics/gegl/work/gegl-0.1.8/docs/Makefile.in
/usr/bin/sed -i.bak -e 's|\(lua\)\(5\.1\)|\1-\2|g' /var/tmp/export/ports/graphics/gegl/work/gegl-0.1.8/configure
/usr/bin/sed -i.bak -e 's|/usr/bin/ruby|/usr/bin/env ruby|' /var/tmp/export/ports/graphics/gegl/work/gegl-0.1.8/tools/gobj2dot.rb
===>   gegl-0.1.8_1 depends on executable: g-ir-scanner - found
===>   gegl-0.1.8_1 depends on executable: enscript - found
===>   gegl-0.1.8_1 depends on file: /usr/local/bin/sdl-config - found
===>   gegl-0.1.8_1 depends on executable: gmake - found
===>   gegl-0.1.8_1 depends on file: /usr/local/bin/intltool-extract - found
===>   gegl-0.1.8_1 depends on executable: pkg-config - found
===>   gegl-0.1.8_1 depends on shared library: babl-0.1 - found
===>   gegl-0.1.8_1 depends on shared library: execinfo.1 - found
===>   gegl-0.1.8_1 depends on shared library: cairo.2 - found
===>   gegl-0.1.8_1 depends on shared library: graph - found
===>   gegl-0.1.8_1 depends on shared library: jpeg.11 - found
===>   gegl-0.1.8_1 depends on shared library: IlmImf.6 - found
===>   gegl-0.1.8_1 depends on shared library: png.6 - found
===>   gegl-0.1.8_1 depends on shared library: rsvg-2.2 - found
===>   gegl-0.1.8_1 depends on shared library: SDL-1.2.11 - found
===>   gegl-0.1.8_1 depends on shared library: lua-5.1.1 - found
===>   gegl-0.1.8_1 depends on shared library: atk-1.0.0 - found
===>   gegl-0.1.8_1 depends on shared library: glib-2.0.0 - found
===>   gegl-0.1.8_1 depends on shared library: gtk-x11-2.0.0 - found
===>   gegl-0.1.8_1 depends on shared library: pango-1.0.0 - found
===>  Configuring for gegl-0.1.8_1
checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/local/bin/gmkdir -p
checking for gawk... gawk
checking whether gmake sets $(MAKE)... yes
checking whether to disable maintainer-specific portions of Makefiles... yes
checking for gcc... gcc46
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc46 accepts -g... yes
checking for gcc46 option to accept ISO C89... none needed
checking for style of include used by gmake... GNU
checking dependency style of gcc46... gcc3
checking whether we are using the GNU C++ compiler... yes
checking whether g++46 accepts -g... yes
checking dependency style of g++46... gcc3
checking whether gmake sets $(MAKE)... (cached) yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking build system type... i386-portbld-freebsd8.2
checking host system type... i386-portbld-freebsd8.2
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc46... /usr/local/bin/ld
checking if the linker (/usr/local/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... (cached) 262144
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... no
checking how to convert i386-portbld-freebsd8.2 file names to i386-portbld-freebsd8.2 format... func_convert_file_noop
checking how to convert i386-portbld-freebsd8.2 file names to toolchain format... func_convert_file_noop
checking for /usr/local/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc46 object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... cpp46
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc46 supports -fno-rtti -fno-exceptions... no
checking for gcc46 option to produce PIC... -fPIC -DPIC
checking if gcc46 PIC flag -fPIC -DPIC works... yes
checking if gcc46 static flag -static works... yes
checking if gcc46 supports -c -o file.o... yes
checking if gcc46 supports -c -o file.o... (cached) yes
checking whether the gcc46 linker (/usr/local/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... freebsd8.2 ld.so
checking how to hardcode library paths into programs... immediate
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... no
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... no
checking how to run the C++ preprocessor... g++46 -E
checking for ld used by g++46... /usr/local/bin/ld
checking if the linker (/usr/local/bin/ld) is GNU ld... yes
checking whether the g++46 linker (/usr/local/bin/ld) supports shared libraries... yes
checking for g++46 option to produce PIC... -fPIC -DPIC
checking if g++46 PIC flag -fPIC -DPIC works... yes
checking if g++46 static flag -static works... yes
checking if g++46 supports -c -o file.o... yes
checking if g++46 supports -c -o file.o... (cached) yes
checking whether the g++46 linker (/usr/local/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... freebsd8.2 ld.so
checking how to hardcode library paths into programs... immediate
checking for GNUC variadic macros... yes
checking for ISO C99 variadic macros in C... yes
checking for ISO C99 variadic macros in C++... yes
checking whether to turn on debugging... no
checking whether to turn on profiling... no
checking for C/C++ restrict keyword... __restrict
checking for aclocal flags...
checking for target architecture... i386-portbld-freebsd8.2
checking for dynamic library filename suffix... .so
checking for some Darwin platform... no
checking for some Win32 platform... no
checking for native Win32... no
checking to see if compiler understands -mmmx... yes
checking whether we can compile MMX code... yes
checking to see if compiler understands -msse... yes
checking to see if compiler understands -ftree-vectorize... yes
checking to see if compiler understands -ffast-math... yes
checking whether we can compile SSE code... yes
checking for perl5... /usr/bin/perl5
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for gobject-introspection... yes
checking for fsync... yes
checking for BABL... yes
checking for pkg-config... (cached) /usr/local/bin/pkg-config
checking pkg-config is at least version 0.16... yes
checking for GLIB - version >= 2.28.0... yes (version 2.28.8)
checking for DEP... yes
checking for bind_textdomain_codeset... no
configure: error:
*** Check for bind_textdomain_codeset() failed!  This is required.

===>  Script "configure" failed unexpectedly.
Please run the gnomelogalyzer, available from
"http://www.freebsd.org/gnome/gnomelogalyzer.sh", which will diagnose the
problem and suggest a solution. If - and only if - the gnomelogalyzer cannot
solve the problem, report the build failure to the FreeBSD GNOME team at
gnome@FreeBSD.org, and attach (a)
"/var/tmp/export/ports/graphics/gegl/work/gegl-0.1.8/config.log", (b) the
output of the failed make command, and (c) the gnomelogalyzer output. Also,
it might be a good idea to provide an overview of all packages installed on
your system (i.e. an `ls /var/db/pkg`). Put your attachment up on any website,
copy-and-paste into http://freebsd-gnome.pastebin.com, or use send-pr(1) with
the attachment. Try to avoid sending any attachments to the mailing list
(gnome@FreeBSD.org), because attachments sent to FreeBSD mailing lists are
usually discarded by the mailing list software.
*** Error code 1

Stop in /export/ports/graphics/gegl.
*** Error code 1

Stop in /export/ports/graphics/gegl.
root@cakebox /export/ports/graphics/gegl > ./gnomelogalyzer.sh

Generating build log. Please wait... done.

The cause of your build failure is not known to gnomelogalyzer.sh.  Before
e-mailing the build log to the FreeBSD GNOME team at freebsd-gnome@FreeBSD.org,
TRY EACH OF THE FOLLOWING:

  * If you are generating your own logfile, make sure to generate it with
    something similar to:
          "make 2>&1 | tee /path/to/logfile" (sh/bash/ksh/zsh) or
          "make |& tee /path/to/logfile" (csh/tcsh)
        * Make sure your cvsup(1) configuration file specifies the 'ports-all'
          collection
        * Run cvsup(1) and attempt the build again
        * Check /usr/ports/UPDATING for information pertinent to your build
          failure
        * 99% of the commonly reported build failures can be solved by
          running "portupgrade -a"
        * Read the FAQs at http://www.FreeBSD.org/gnome/
        * Search the archives of freebsd-gnome@FreeBSD.org.  Archives can be
          searched at http://www.freebsd.org/gnome/index.html#search

If you have not performed each of the above suggestions, don't bother asking
for help.  The chances are good that you'll simply be told to perform one of
the aforementioned steps.

Fix: This fix is a hack and the issue should probably be fixed
        differently:

--- Makefile.orig       2011-12-08 12:09:28.000000000 +0100
+++ Makefile    2011-12-08 12:14:43.000000000 +0100
@@ -44,7 +44,7 @@
 GNU_CONFIGURE= yes
 CONFIGURE_ARGS+=--without-vala
 CPPFLAGS+=     -I${LOCALBASE}/include
-LDFLAGS+=      -L${LOCALBASE}/lib -lexecinfo
+LDFLAGS+=      -L${LOCALBASE}/lib -lexecinfo -lintl

 GEGL_MINOR=    107
 PLIST_SUB+=    GEGL_MINOR="${GEGL_MINOR}"
How-To-Repeat: 	build the port with:
CC=gcc46
CXX=g++46
CPP=cpp46
Comment 1 alexander.kuehn 2011-12-08 11:59:37 UTC
Sorry, this should have been in the subject. This is for  
graphics/gegl-0.1.8_1.
Comment 2 Ryan Steinmetz freebsd_committer freebsd_triage 2011-12-08 12:51:03 UTC
Responsible Changed
From-To: freebsd-ports-bugs->gnome

Over to maintainer
Comment 3 Andriy Gapon freebsd_committer freebsd_triage 2011-12-08 21:25:48 UTC
Please see this: http://article.gmane.org/gmane.os.freebsd.current/138089

-- 
Andriy Gapon
Comment 4 dfilter service freebsd_committer freebsd_triage 2012-03-14 15:24:23 UTC
mezz        2012-03-14 15:24:09 UTC

  FreeBSD ports repository

  Modified files:
    graphics/gegl        Makefile 
  Log:
  Fix the build by add -lintl.
  
  PR:             ports/163121
  Submitted by:   freebsd@nagilum.org
  Feature safe:   yes
  
  Revision  Changes    Path
  1.32      +2 -1      ports/graphics/gegl/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 5 Jeremy Messenger freebsd_committer freebsd_triage 2012-03-14 15:24:44 UTC
State Changed
From-To: open->closed

It's a bug in its configure. It shouldn't expect for other *.pc files to take 
care for gegl. See in the configure.ac at 474 line: 

----------------------------------- 
# Check for bind_textdomain_codeset, including -lintl if GLib brings it in. 
gegl_save_LIBS=$LIBS 
LIBS="$LIBS $GLIB_LIBS" 
AC_CHECK_FUNCS(bind_textdomain_codeset,, 
[..] 
----------------------------------- 

The glib-2.0.pc doesn't has any of -lintl: 

# pkg-config --libs glib-2.0 
-L/usr/local/lib -lglib-2.0 

I have added USE_GETTEXT=yes with your fix. Thanks!