Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Dec 2006 14:32:40 GMT
From:      Vladimir Timofeev<vovkasm@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/106216: deve/libgsf-gnome configure error
Message-ID:  <200612021432.kB2EWeXK020955@www.freebsd.org>
Resent-Message-ID: <200612021440.kB2Ee5Bn034452@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         106216
>Category:       ports
>Synopsis:       deve/libgsf-gnome configure error
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Dec 02 14:40:05 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Vladimir Timofeev
>Release:        6.2-PRERELEASE
>Organization:
>Environment:
FreeBSD vov.home 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #14: Sat Nov 25 22:33:36 MSK 2006     root@vov.home:/usr/obj/usr/src/sys/VOV1  i386
>Description:
When I try to build devel/libgsf-gnome, I take this error:

..
===>  Configuring for libgsf-gnome-1.14.3
checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether gmake sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... cc
checking for C compiler default output file name... 
configure: error: C compiler cannot create executables
See `config.log' for more details.
===>  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)
"/usr/ports/devel/libgsf-gnome/work/libgsf-1.14.3/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


Lines from config.log:
======================
..
configure:2898: $? = 0
configure:2905: cc -v >&5
Using built-in specs.
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 3.4.6 [FreeBSD] 20060305
configure:2908: $? = 0
configure:2915: cc -V >&5
cc: `-V' option must have argument
configure:2918: $? = 1
configure:2941: checking for C compiler default output file name
configure:2968: cc -O2 -pipe -march=athlon-xp -I/usr/X11R6/include -I/usr/local/include -L/usr/X11R6/lib -L/usr/local/lib -lgsf-1 conftest.c  >&5
/usr/local/lib/libxml2.so.5: undefined reference to `pthread_equal'
configure:2971: $? = 1
configure:3009: result: 
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "libgsf"
| #define PACKAGE_TARNAME "libgsf"
| #define PACKAGE_VERSION "1.14.3"
| #define PACKAGE_STRING "libgsf 1.14.3"
| #define PACKAGE_BUGREPORT "http://bugzilla.gnome.org/enter_bug.cgi?product=libgsf"
| #define PACKAGE "libgsf"
| #define VERSION "1.14.3"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:3015: error: C compiler cannot create executables
See `config.log' for more details.
..

>How-To-Repeat:
(cd /usr/ports/devel/libgsf-gnome; make)
>Fix:
Then I add PTHREAD_CFLAGS,PTHREAD_LIBS into CPPFLAGS and LDFLAGS from CONFIGURE_ENV and error goes away... I'am not sure that it's right fix (may be trouble with libxml .la files or anything in my local config), but attach my patch anyway.


Patch attached with submission follows:

--- Makefile	Sat Dec  2 17:13:23 2006
+++ Makefile.fixed_pthreads_issue	Sat Dec  2 17:12:54 2006
@@ -19,8 +19,8 @@
 USE_GNOME=	gnomehack libgsf gnomevfs2 ltverhack intlhack
 CONFIGURE_ARGS=	--with-html-dir=${PREFIX}/share/doc/gsf \
 		--disable-gtk-doc --with-bz2 --with-gnome
-CONFIGURE_ENV=	CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include" \
-		LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib -lgsf-1"
+CONFIGURE_ENV=	CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
+		LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib ${PTHREAD_LIBS} -lgsf-1"
 
 GCONF_SCHEMAS=
 GSF_SLAVE=	yes

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200612021432.kB2EWeXK020955>