Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Mar 2003 17:32:50 +0200
From:      Vallo Kallaste <kalts@estpak.ee>
To:        Joe Marcus Clarke <marcus@marcuscom.com>
Cc:        FreeBSD GNOME Users <gnome@freebsd.org>
Subject:   Re: pkgconfig failure repeatable, further info
Message-ID:  <20030314153250.GA3549@kevad.internal>
In-Reply-To: <1047649620.317.3.camel@gyros>
References:  <20030314130228.GB2584@kevad.internal> <20030314132933.GA2896@kevad.internal> <1047649620.317.3.camel@gyros>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Mar 14, 2003 at 08:47:00AM -0500, Joe Marcus Clarke
<marcus@marcuscom.com> wrote:

> No.  bento builds this port just fine, and it does it in a completely
> clean environment.

As do I. The meaning of "clean" needs further analyzing in this
context.

> > Somehow the
> > ac_aux_dir will be not set or is unset at pkgconfig configure time.
> > This is all related to the wrapper script and procedure I'm using to
> > build my bundle, but I guess this is a bug somewhere. This bug shows
> > up only when the bundle is built from the beginning, does not happen
> > when I run 'make package' under wrapper in the
> > /usr/ports/devel/pkgconfig only.
> 
> So, if you're sure this is related to your wrapper, don't use the
> wrapper.  There are other (supported) ways of setting up make variables
> that do work.

So I did it the "supported" way, put all things into /etc/make.conf
and it fails consistently the same way it did before.  Here's
everything which should matter and I can think of, the bundle
sceleton is included as attachment.

First, the 'make package' log, showing where and how it fails, full
log included as attachment:

[trimmed]
===>   Returning to build of pkgconfig-0.15.0
===>   pkgconfig-0.15.0 depends on executable: libtool - found
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c -o root -g wheel
checking whether build environment is sane... yes
checking whether gmake sets ${MAKE}... yes
checking for working aclocal-1.4... missing
checking for working autoconf... missing
checking for working automake-1.4... missing
checking for working autoheader... missing
checking for working makeinfo... found
checking whether to enable maintainer-specific portions of Makefiles... no
checking for Cygwin environment... no
checking for mingw32 environment... no
checking how to run the C preprocessor... cc -E
checking host system type... i386-portbld-freebsd5.0
checking build system type... i386-portbld-freebsd5.0
checking for gcc... cc
checking whether the C compiler (cc -O -pipe -march=pentiumpro ) works... yes
checking whether the C compiler (cc -O -pipe -march=pentiumpro ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether cc accepts -g... yes
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependant libraries... pass_all
checking for object suffix... o
checking for executable suffix... no
checking command to parse /usr/bin/nm -B output... ok
checking for dlfcn.h... yes
checking for ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.lo... yes
checking if cc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... freebsd5.0 ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether -lc should be explicitly linked in... yes
creating libtool
checking for gcc... (cached) cc
checking whether the C compiler (cc -O -pipe -march=pentiumpro ) works... yes
checking whether the C compiler (cc -O -pipe -march=pentiumpro ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether cc accepts -g... (cached) yes
checking for Win32... no
checking for working alloca.h... no
checking for alloca... yes
checking for setresuid... yes
checking for dirent.h... yes
checking for unistd.h... yes
checking for sys/wait.h... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
creating config.h
configuring in glib-1.2.8
running /bin/sh ./configure  --disable-threads --prefix=/usr/local i386-portbld-freebsd5.0 --cache-file=.././config.cache --srcdir=.
loading cache .././config.cache
checking for a BSD compatible install... ../
checking whether build environment is sane... yes
checking whether gmake sets ${MAKE}... (cached) yes
checking for working aclocal-1.4... missing
checking for working autoconf... missing
checking for working automake-1.4... missing
checking for working autoheader... missing
checking for working makeinfo... found
checking host system type... i386-portbld-freebsd5.0
checking build system type... i386-portbld-freebsd5.0
checking for ranlib... (cached) ranlib
checking for gcc... (cached) cc
checking whether the C compiler (cc -O -pipe -march=pentiumpro ) works... yes
checking whether the C compiler (cc -O -pipe -march=pentiumpro ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether cc accepts -g... (cached) yes
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... (cached) yes
updating cache .././config.cache
/ltconfig: Can't open /ltconfig: No such file or directory
configure: error: libtool configure failed
configure: error: ./configure failed for glib-1.2.8
===>  Script "configure" failed unexpectedly.
      Please report the problem to gnome@FreeBSD.org [maintainer] and attach
      the
      "/usr/local/src/portbuild/usr/ports/devel/pkgconfig/work/pkgconfig-0.15.0/config.log"
      including the output of the failure of your make command. Also, it might
      be a good idea to provide an overview of all packages installed on your
      system (e.g. an `ls /var/db/pkg`).
*** Error code 1

Stop in /usr/ports/devel/pkgconfig.
*** Error code 1

Stop in /usr/ports/x11-fonts/fontconfig.
*** Error code 1

Stop in /usr/ports/x11/XFree86-4-libraries.
*** Error code 1

Stop in /usr/ports/x11/XFree86-4.
*** Error code 1

Stop in /usr/ports/misc/bundle-workstation.

--------------------------------------------------
make.conf of the building system:

# bundle keevitamise jaoks
#
BATCH=YES
WITHOUT_CHATZILLA=YES
WITHOUT_MAILNEWS=YES
WITHOUT_COMPOSER=YES
A4=YES
WITH_ATHENA=YES
WITH_OPTIMIZED_CFLAGS=YES
WITH_GUI=YES
WITH_DVD=YES
WITH_LIBDVDREAD=YES
WITH_SDL=YES
WITH_VORBIS=YES
WITH_LIVEMEDIA=YES
WITH_FREETYPE=YES
WITH_XANIM=YES
WITH_LIBICONV=YES
WITH_ICONV=YES
WITHOUT_SVGALIB=YES
#DEPENDS_TARGET=package

WRKDIRPREFIX=	/usr/local/src/portbuild
DISTDIR=	/usr/local/src/distfiles
PACKAGES=	/usr/local/src/packages

#CPUTYPE?=pentium
CPUTYPE?=i686
#CPUTYPE?=p2
#CPUTYPE?=p3
#CPUTYPE?=p4
PPP_NOSUID=	YES
NO_X=		YES	# do not compile in XWindows support (e.g. doscmd)
NOGAMES=	YES	# do not build games (games/ subdir)
NOPROFILE=	YES	# Avoid compiling profiled libraries
MAKE_IDEA=	YES	# IDEA (128 bit symmetric encryption)
XFREE86_VERSION=4
#HAVE_MOTIF=	YES
#MOTIF_STATIC=  YES
USA_RESIDENT=	NO
COMPAT4X=	YES
FTP_PROXY=      proxy.internal:3129
HTTP_PROXY=	cache.internal:3128
MASTER_SITE_BACKUP?=	\
	ftp://ftp.ee.freebsd.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/
MASTER_SITE_OVERRIDE?=	${MASTER_SITE_BACKUP}
MASTER_SITE_GNOME+=ftp://ftp.sunet.se/pub/X11/GNOME/%SUBDIR%/
MASTER_SITE_KDE+=ftp://ftp.estpak.ee/pub/kde/%SUBDIR%/
#SENDMAIL_MC=/etc/mail/estpak.mc
#SENDMAIL_ADDITIONAL_MC=/etc/mail/foo.mc /etc/mail/bar.mc
#SENDMAIL_M4_FLAGS=

--------------------------------------------------
The script I'm using to clean up before building anything:

#! /bin/sh

pkg_delete -a
rm -rf /usr/local/src/portbuild/* &
rm -rf /usr/local/src/packages/* &
rm -rf /usr/X11R6/* &

cd /usr/local && \
	for dir in `ls -1 | grep -v src`; do
		rm -rf "${dir}"
	done
cd /etc/mtree && \
	mtree -deU -f BSD.local.dist -p /usr/local
	mtree -deU -f BSD.x11-4.dist -p /usr/X11R6

echo
echo tehtud

--------------------------------------------------
config.log from the failing pkgconfig build:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:732: checking for a BSD compatible install
configure:785: checking whether build environment is sane
configure:842: checking whether gmake sets ${MAKE}
configure:888: checking for working aclocal-1.4
configure:901: checking for working autoconf
configure:914: checking for working automake-1.4
configure:927: checking for working autoheader
configure:940: checking for working makeinfo
configure:954: checking whether to enable maintainer-specific portions of Makefiles
configure:993: checking for Cygwin environment
configure:1009: cc -c -O -pipe -march=pentiumpro  conftest.c 1>&5
configure: In function `main':
configure:1005: `__CYGWIN32__' undeclared (first use in this function)
configure:1005: (Each undeclared identifier is reported only once
configure:1005: for each function it appears in.)
configure: failed program was:
#line 998 "configure"
#include "confdefs.h"

int main() {

#ifndef __CYGWIN__
#define __CYGWIN__ __CYGWIN32__
#endif
return __CYGWIN__;
; return 0; }
configure:1026: checking for mingw32 environment
configure:1038: cc -c -O -pipe -march=pentiumpro  conftest.c 1>&5
configure: In function `main':
configure:1034: `__MINGW32__' undeclared (first use in this function)
configure:1034: (Each undeclared identifier is reported only once
configure:1034: for each function it appears in.)
configure: failed program was:
#line 1031 "configure"
#include "confdefs.h"

int main() {
return __MINGW32__;
; return 0; }
configure:1055: checking how to run the C preprocessor
configure:1076: cc -E  conftest.c >/dev/null 2>conftest.out
configure:1210: checking host system type
configure:1231: checking build system type
configure:1251: checking for gcc
configure:1364: checking whether the C compiler (cc -O -pipe -march=pentiumpro ) works
configure:1380: cc -o conftest -O -pipe -march=pentiumpro   conftest.c  1>&5
configure:1406: checking whether the C compiler (cc -O -pipe -march=pentiumpro ) is a cross-compiler
configure:1411: checking whether we are using GNU C
configure:1420: cc -E conftest.c
configure:1439: checking whether cc accepts -g
configure:1482: checking for ld used by GCC
configure:1550: checking if the linker (/usr/bin/ld) is GNU ld
GNU ld version 2.13.2 [FreeBSD] 2002-11-27
configure:1567: checking for /usr/bin/ld option to reload object files
configure:1579: checking for BSD-compatible nm
configure:1617: checking whether ln -s works
configure:1638: checking how to recognise dependant libraries
configure:1821: checking for object suffix
configure:1827: cc -c -O -pipe -march=pentiumpro  conftest.c 1>&5
configure:1847: checking for executable suffix
configure:1857: cc -o conftest -O -pipe -march=pentiumpro   conftest.c  1>&5
configure:1888: checking command to parse /usr/bin/nm -B output
configure:1968: cc -c -O -pipe -march=pentiumpro  conftest.c 1>&5
configure:1971: /usr/bin/nm -B conftest.o | sed -n -e 's/^.*[ ]\([ABCDGISTW][ABCDGISTW]*\)[ ][ ]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' > conftest.nm
configure:2022: cc -o conftest -O -pipe -march=pentiumpro   conftest.c conftstm.o 1>&5
configure:2071: checking for dlfcn.h
configure:2081: cc -E  conftest.c >/dev/null 2>conftest.out
configure:2249: checking for ranlib
configure:2316: checking for strip
configure:2559: checking for objdir
configure:2586: checking for cc option to produce PIC
configure:2738: checking if cc PIC flag -fPIC works
configure:2752: cc -c -O -pipe -march=pentiumpro -fPIC -DPIC  conftest.c 1>&5
configure:2804: checking if cc static flag -static works
configure:2819: cc -o conftest -O -pipe -march=pentiumpro   -static conftest.c  1>&5
configure:2846: checking if cc supports -c -o file.o
configure:2865: cc -c -O -pipe -march=pentiumpro -o out/conftest2.o  conftest.c 1>&5
configure:2894: checking if cc supports -c -o file.lo
configure:2912: cc -c -O -pipe -march=pentiumpro -c -o conftest.lo  conftest.c 1>&5
configure:2962: checking if cc supports -fno-rtti -fno-exceptions
configure:2975: cc -c -O -pipe -march=pentiumpro -fno-rtti -fno-exceptions -c conftest.c  conftest.c 1>&5
configure:3002: checking whether the linker (/usr/bin/ld) supports shared libraries
configure:3686: checking how to hardcode library paths into programs
configure:3714: checking whether stripping libraries is possible
configure:3728: checking dynamic linker characteristics
configure:4125: checking if libtool supports shared libraries
configure:4129: checking whether to build shared libraries
configure:4152: checking whether to build static libraries
configure:4688: checking whether -lc should be explicitly linked in
configure:4695: cc -c -O -pipe -march=pentiumpro  conftest.c 1>&5
configure:4708: cc -shared conftest.o  -v -Wl,-soname -Wl,conftest -o conftest 2>&1 | grep  -lc  >/dev/null 2>&1
configure:5293: checking for gcc
configure:5406: checking whether the C compiler (cc -O -pipe -march=pentiumpro ) works
configure:5422: cc -o conftest -O -pipe -march=pentiumpro   conftest.c  1>&5
configure:5448: checking whether the C compiler (cc -O -pipe -march=pentiumpro ) is a cross-compiler
configure:5453: checking whether we are using GNU C
configure:5481: checking whether cc accepts -g
configure:5514: checking for Win32
configure:5580: checking for working alloca.h
configure:5592: cc -o conftest -O -pipe -march=pentiumpro   conftest.c  1>&5
configure:5586:20: alloca.h: No such file or directory
configure: failed program was:
#line 5585 "configure"
#include "confdefs.h"
#include <alloca.h>
int main() {
char *p = alloca(2 * sizeof(int));
; return 0; }
configure:5613: checking for alloca
configure:5646: cc -o conftest -O -pipe -march=pentiumpro   conftest.c  1>&5
configure:5815: checking for setresuid
configure:5843: cc -o conftest -O -pipe -march=pentiumpro   conftest.c  1>&5
configure:5871: checking for dirent.h
configure:5881: cc -E  conftest.c >/dev/null 2>conftest.out
configure:5871: checking for unistd.h
configure:5881: cc -E  conftest.c >/dev/null 2>conftest.out
configure:5871: checking for sys/wait.h
configure:5881: cc -E  conftest.c >/dev/null 2>conftest.out

--------------------------------------------------
pkg_info after the build fails:

bash-2.05b.004      The GNU Bourne Again Shell
expat-1.95.6_1      XML 1.0 parser written in C
gettext-0.11.5_1    GNU gettext package
gmake-3.80          GNU version of 'make' utility
imake-4.3.0         Imake and other utilities from XFree86
libiconv-1.8_2      A character set conversion library
libtool-1.3.4_4     Generic shared library support script
perl-5.6.1_11       Practical Extraction and Report Language
perl-5.8.0_4        Practical Extraction and Report Language
-- 

Vallo Kallaste

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-gnome" in the body of the message




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