Subject: pkg/32002: gcc34 Makefile
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Gilles Dauphin <dauphin@enst.fr>
List: pkgsrc-bugs
Date: 11/04/2005 17:38:00
>Number:         32002
>Category:       pkg
>Synopsis:       gcc34 Makefile
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Nov 04 17:38:00 +0000 2005
>Originator:     Gilles Dauphin
>Release:        SunOS 5.10 i86pc
>Organization:
ENST 
>Environment:


System: SunOS bi.enst.fr 5.10 Generic i86pc


>Description:


===> Configuring for gcc34-3.4.4nb1
((test -d  /usr/pkgsrc/lang/gcc34/work/obj || /usr/bin/mkdir -p /usr/pkgsrc/lang/gcc34/work/obj) &&  (cd /usr/pkgsrc/lang/gcc34/work/obj && /usr/bin/env PTHREAD_CFLAGS=\ -D_REENTRANT PTHREAD_LDFLAGS= PTHREAD_LIBS=-lpthread\ -lrt PTHREADBASE=/usr CONFIG_SHELL=/bin/ksh CC=gcc CFLAGS=-O\ -I/usr/pkgsrc/lang/gcc34/work/.buildlink/include\ -I/usr/include\ -I/usr/pkg/include CPPFLAGS=-I/usr/pkgsrc/lang/gcc34/work/.buildlink/include\ -I/usr/include\ -I/usr/pkg/include CXX=g++ CXXFLAGS=-O\ -I/usr/pkgsrc/lang/gcc34/work/.buildlink/include\ -I/usr/include\ -I/usr/pkg/include COMPILER_RPATH_FLAG=-Wl,-R F77=f77 FC=f77 FFLAGS=-O LANG=C LC_COLLATE=C LC_CTYPE=C LC_MESSAGES=C LC_MONETARY=C LC_NUMERIC=C LC_TIME=C LDFLAGS=-R/usr/pkg/lib\ -R/usr/lib/../sfw/lib\ -L/usr/lib\ -Wl,-R/usr/lib\ -L/usr/pkg/lib\ -Wl,-R/usr/pkg/lib LINKER_RPATH_FLAG=-R PATH=/usr/pkgsrc/lang/gcc34/work/.wrapper/bin:/usr/pkgsrc/lang/gcc34/work/.buildlink/bin:/usr/pkgsrc/lang/gcc34/work/.gcc/bin:/usr/pkgsrc/lang/gcc34/work/
 .tools/bin:/usr/pkg/bin:/usr/pkg/sbin:/usr/pkg/bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/sfw/bin:/usr/sadm/bin:/lib/svc/bin:/usr/ccs/bin:/usr/ucb:/usr/xpg6/bin:/usr/xpg4/bin:/usr/java/bin:/usr/X/bin:/usr/openwin/bin:/usr/X11R6/bin:/usr/dt/bin:/usr/lib/netsvc/yp:/usr/local/adm:/usr/local/etc:/usr/local/share/install:/usr/local/share/bin:/usr/local/bin:/usr/local/X11R6/bin:/usr/local/X11R5/bin:.:/usr/pkg/bin:/usr/openwin/bin PREFIX=/usr/pkg PKG_SYSCONFDIR=/usr/pkg/etc INSTALL_INFO=/usr/pkgsrc/lang/gcc34/work/.tools/bin/install-info MAKEINFO=/usr/pkgsrc/lang/gcc34/work/.tools/bin/makeinfo PKG_CONFIG= PKG_CONFIG_LIBDIR=/usr/pkgsrc/lang/gcc34/work/.buildlink/lib/pkgconfig PKG_CONFIG_LOG=/usr/pkgsrc/lang/gcc34/work/.pkg-config.log MAKE=make INTLLIBS="-lintl -liconv" WRAPPER_DEBUG="yes" WRAPPER_UPDATE_CACHE="yes" /usr/pkgsrc/lang/gcc34/work/gcc-3.4.4/configure --enable-languages="'c' 'c++' 'java' 'objc'" --with-system-zlib --enable-shared --enable-__cxa_atexit --enable-long-long --wit
 h-local-prefix=/usr/pkg/gcc34 --with-libiconv-prefix=/usr/pkg --prefix=/usr/pkg/gcc34))
/bin/sh: syntax error at line 1 : `(' unexpected
*** Error code 2

Stop.
bmake: stopped in /usr/pkgsrc/lang/gcc34
===> 
===> There was an error during the ``configure'' phase.
===> Please investigate the following for more information:
===>      * log of the build
===>      * /usr/pkgsrc/lang/gcc34/work/.work.log
===> 
*** Error code 1




>How-To-Repeat:


bmake in gcc34


>Fix:


+ diff -bu Makefile.orig Makefile
--- Makefile.orig       Fri Nov  4 18:32:41 2005
+++ Makefile    Fri Nov  4 18:36:46 2005
@@ -195,7 +195,7 @@
 .endif
 
 do-configure:
-       ((${TEST} -d  ${WRKDIR}/obj || ${MKDIR} ${WRKDIR}/obj) && \
+       ( (${TEST} -d  ${WRKDIR}/obj || ${MKDIR} ${WRKDIR}/obj) && \
         (cd ${WRKDIR}/obj && ${SETENV} ${CONFIGURE_ENV} ${WRKSRC}/configure ${CONFIGURE_ARGS}))
 
 do-build: