Subject: pkgsrc compile problems
To: None <netbsd-users@netbsd.org>
From: Joel Leyh <hashbang@gmail.com>
List: netbsd-users
Date: 02/07/2005 13:39:59
------=_Part_2745_22279005.1107805199553
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Architecture: alpha
Machine: alpha
NetBSD 2.0
latest pkgsrc

The following error appears on all compile attempts (so far, apache2,
mysql,  made regardless of a new pkgsrc tree, after make cleans, and
with make package or just make.

/usr/pkgsrc/lang/php5/work/.wrapper/tmp/cache: 48: Syntax error: end
of file unexpected (expecting ")")
gmake: *** [ext/sqlite/libsqlite/src/vdbeaux.lo] Error 2
gmake: *** Waiting for unfinished jobs....
/usr/pkgsrc/lang/php5/work/.wrapper/tmp/cache: 56: Syntax error: end
of file unexpected (expecting ";;")
gmake: *** [ext/sqlite/libsqlite/src/vacuum.lo] Error 2
*** Error code 2

The line number seems to change with every attempt, very strange
error. Depending on the source I am trying to compile, the "cache"
sometimes has a different name. The file is always in .wrapper and is
always a huge case...esac sh script. Have tried only on one machine,
since its all I have access to, so I'm not sure if its only my machine
which something is messed up on.

The actual file it complains also seems fine. Repeats every time I try
to compile. Can't be certain of what to do to make it always happen on
any machine. Attached  is the file, which I didn't find any errors on
those lines.

------=_Part_2745_22279005.1107805199553
Content-Type: application/octet-stream; name=cache
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="cache"

case $arg in
-o) arg=-o; split_arg=no; cachehit=yes ;;
-O2) arg=-O2; split_arg=no; cachehit=yes ;;
-mieee) arg=-mieee; split_arg=no; cachehit=yes ;;
-I/usr/pkg/include) arg=-I/usr/pkgsrc/lang/php5/work/.buildlink/include; split_arg=no; cachehit=yes ;;
-I/usr/include) arg=""; split_arg=no; cachehit=yes ;;
-L/usr/pkg/lib) arg=-L/usr/pkgsrc/lang/php5/work/.buildlink/lib; split_arg=no; cachehit=yes ;;
-Wl,-R/usr/pkg/lib) arg=-Wl,-R/usr/pkg/lib; split_arg=no; cachehit=yes ;;
-L/usr/lib) arg=""; split_arg=no; cachehit=yes ;;
-Wl,-R/usr/lib) arg=""; split_arg=no; cachehit=yes ;;
-I/usr/pkgsrc/lang/php5/work/.buildlink/include) arg=-I/usr/pkgsrc/lang/php5/work/.buildlink/include; split_arg=no; cachehit=yes ;;
-L/usr/pkgsrc/lang/php5/work/.buildlink/lib) arg=-L/usr/pkgsrc/lang/php5/work/.buildlink/lib; split_arg=no; cachehit=yes ;;
-E) arg=-E; split_arg=no; cachehit=yes ;;
-g) arg=-g; split_arg=no; cachehit=yes ;;
-c) arg=-c; split_arg=no; cachehit=yes ;;
-R/usr/lib) arg=""; split_arg=no; cachehit=yes ;;
-lfl) arg=-lfl; split_arg=yes; cachehit=yes ;;
-kthread) arg=-kthread; split_arg=no; cachehit=yes ;;
-pthread) arg=-pthread; split_arg=no; cachehit=yes ;;
-lm) arg=-lm; split_arg=yes; cachehit=yes ;;
-ldir) arg=-ldir; split_arg=yes; cachehit=yes ;;
-R/usr/pkg/lib) arg=-R/usr/pkg/lib; split_arg=no; cachehit=yes ;;
-lxml2) arg=-lxml2; split_arg=yes; cachehit=yes ;;
-lz) arg=-lz; split_arg=yes; cachehit=yes ;;
-lcrypt) arg=-lcrypt; split_arg=yes; cachehit=yes ;;
-lresolv) arg=-lresolv; split_arg=yes; cachehit=yes ;;
-lbind) arg=-lbind; split_arg=yes; cachehit=yes ;;
-lsocket) arg=-lsocket; split_arg=yes; cachehit=yes ;;
"-I\$(top_builddir)/TSRM") arg="-I\$(top_builddir)/TSRM"; split_arg=no; cachehit=yes ;;
-print-prog-name=ld) arg=-print-prog-name=ld; split_arg=no; cachehit=yes ;;
-v) arg=-v; split_arg=no; cachehit=yes ;;
-) arg=-; split_arg=no; cachehit=yes ;;
-fPIC) arg=-fPIC; split_arg=no; cachehit=yes ;;
-DPIC) arg=-DPIC; split_arg=no; cachehit=yes ;;
-static) arg=-static; split_arg=no; cachehit=yes ;;
-fno-rtti) arg=-fno-rtti; split_arg=no; cachehit=yes ;;
-fno-exceptions) arg=-fno-exceptions; split_arg=no; cachehit=yes ;;
--help) arg=--help; split_arg=no; cachehit=yes ;;
-Iext/libxml/) arg=-Iext/libxml/; split_arg=no; cachehit=yes ;;
-Iext/ctype/) arg=-Iext/ctype/; split_arg=no; cachehit=yes ;;
-I/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/libxml/) arg=-I/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/libxml/; split_arg=no; cachehit=yes ;;
-DSUPPORT_UTF8) arg=-DSUPPORT_UTF8; split_arg=no; cachehit=yes ;;
-DPHP_ATOM_INC) arg=-DPHP_ATOM_INC; split_arg=no; cachehit=yes ;;
-DLINK_SIZE=2) arg=-DLINK_SIZE=2; split_arg=no; cachehit=yes ;;
-DPOSIX_MALLOC_THRESHOLD=10) arg=-DPOSIX_MALLOC_THRESHOLD=10; split_arg=no; cachehit=yes ;;
-I/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/ctype/) arg=-I/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/ctype/; split_arg=no; cachehit=yes ;;
-I/usr/pkgsrc/lang/php5/work/php-5.0.3/include) arg=-I/usr/pkgsrc/lang/php5/work/php-5.0.3/include; split_arg=no; cachehit=yes ;;
-I/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/pcre/pcrelib) arg=-I/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/pcre/pcrelib; split_arg=no; cachehit=yes ;;
-I/usr/pkgsrc/lang/php5/work/php-5.0.3/main) arg=-I/usr/pkgsrc/lang/php5/work/php-5.0.3/main; split_arg=no; cachehit=yes ;;
-I/usr/pkgsrc/lang/php5/work/php-5.0.3/main) arg=-I/usr/pkgsrc/lang/php5/work/php-5.0.3/main; split_arg=no; cachehit=yes ;;
-Iext/pcre/) arg=-Iext/pcre/; split_arg=no; cachehit=yes ;;
-I/usr/pkgsrc/lang/php5/work/php-5.0.3) arg=-I/usr/pkgsrc/lang/php5/work/php-5.0.3; split_arg=no; cachehit=yes ;;
-I/usr/pkgsrc/lang/php5/work/php-5.0.3) arg=-I/usr/pkgsrc/lang/php5/work/php-5.0.3; split_arg=no; cachehit=yes ;;
-I/usr/pkgsrc/lang/php5/work/php-5.0.3/Zend) arg=-I/usr/pkgsrc/lang/php5/work/php-5.0.3/Zend; split_arg=no; cachehit=yes ;;
-I/usr/pkgsrc/lang/php5/work/php-5.0.3/Zend) arg=-I/usr/pkgsrc/lang/php5/work/php-5.0.3/Zend; split_arg=no; cachehit=yes ;;
-I/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/pcre/) arg=-I/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/pcre/; split_arg=no; cachehit=yes ;;
-I/usr/pkg/include/libxml2) arg=-I/usr/pkgsrc/lang/php5/work/.buildlink/include/libxml2; split_arg=no; cachehit=yes ;;
-I/usr/pkg/include/libxml2) arg=-I/usr/pkgsrc/lang/php5/work/.buildlink/include/libxml2; split_arg=no; cachehit=yes ;;
-I/usr/pkgsrc/lang/php5/work/php-5.0.3/TSRM) arg=-I/usr/pkgsrc/lang/php5/work/php-5.0.3/TSRM; split_arg=no; cachehit=yes ;;
-I/usr/pkg/include/libxml2) arg=-I/usr/pkgsrc/lang/php5/work/.buildlink/include/libxml2; split_arg=no; cachehit=yes ;;
-I/usr/pkgsrc/lang/php5/work/php-5.0.3/TSRM) arg=-I/usr/pkgsrc/lang/php5/work/php-5.0.3/TSRM; split_arg=no; cachehit=yes ;;
/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/ctype/ctype.c) arg=/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/ctype/ctype.c; split_arg=no; cachehit=yes ;;
/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/pcre/pcrelib/maketables.c) arg=/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/pcre/pcrelib/maketables.c; split_arg=no; cachehit=yes ;;
/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/libxml/libxml.c) arg=/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/libxml/libxml.c; split_arg=no; cachehit=yes ;;
/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/pcre/pcrelib/get.c) arg=/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/pcre/pcrelib/get.c; split_arg=no; cachehit=yes ;;
/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/pcre/pcrelib/study.c) arg=/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/pcre/pcrelib/study.c; split_arg=no; cachehit=yes ;;
/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/pcre/pcrelib/pcre.c) arg=/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/pcre/pcrelib/pcre.c; split_arg=no; cachehit=yes ;;
/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/pcre/php_pcre.c) arg=/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/pcre/php_pcre.c; split_arg=no; cachehit=yes ;;
-Iext/session/) arg=-Iext/session/; split_arg=no; cachehit=yes ;;
-I/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/session/) arg=-I/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/session/; split_arg=no; cachehit=yes ;;
/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/session/session.c) arg=/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/session/session.c; split_arg=no; cachehit=yes ;;
/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/session/mod_files.c) arg=/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/session/mod_files.c; split_arg=no; cachehit=yes ;;
/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/session/mod_mm.c) arg=/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/session/mod_mm.c; split_arg=no; cachehit=yes ;;
/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/session/mod_user.c) arg=/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/session/mod_user.c; split_arg=no; cachehit=yes ;;
-Iext/simplexml/) arg=-Iext/simplexml/; split_arg=no; cachehit=yes ;;
-I/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/simplexml/) arg=-I/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/simplexml/; split_arg=no; cachehit=yes ;;
-Iext/spl/) arg=-Iext/spl/; split_arg=no; cachehit=yes ;;
-I/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/spl/) arg=-I/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/spl/; split_arg=no; cachehit=yes ;;
/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/simplexml/simplexml.c) arg=/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/simplexml/simplexml.c; split_arg=no; cachehit=yes ;;
/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/spl/php_spl.c) arg=/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/spl/php_spl.c; split_arg=no; cachehit=yes ;;
/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/spl/spl_functions.c) arg=/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/spl/spl_functions.c; split_arg=no; cachehit=yes ;;
/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/spl/spl_engine.c) arg=/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/spl/spl_engine.c; split_arg=no; cachehit=yes ;;
/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/spl/spl_array.c) arg=/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/spl/spl_array.c; split_arg=no; cachehit=yes ;;
/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/spl/spl_iterators.c) arg=/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/spl/spl_iterators.c; split_arg=no; cachehit=yes ;;
/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/spl/spl_directory.c) arg=/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/spl/spl_directory.c; split_arg=no; cachehit=yes ;;
/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/spl/spl_sxe.c) arg=/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/spl/spl_sxe.c; split_arg=no; cachehit=yes ;;
-I/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src) arg=-I/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src; split_arg=no; cachehit=yes ;;
-I/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src) arg=-I/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src; split_arg=no; cachehit=yes ;;
-Iext/sqlite/) arg=-Iext/sqlite/; split_arg=no; cachehit=yes ;;
-Iext/sqlite/) arg=-Iext/sqlite/; split_arg=no; cachehit=yes ;;
-I/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/) arg=-I/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/; split_arg=no; cachehit=yes ;;
/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/sess_sqlite.c) arg=/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/sess_sqlite.c; split_arg=no; cachehit=yes ;;
/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/sqlite.c) arg=/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/sqlite.c; split_arg=no; cachehit=yes ;;
/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src/opcodes.c) arg=/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src/opcodes.c; split_arg=no; cachehit=yes ;;
/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src/parse.c) arg=/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src/parse.c; split_arg=no; cachehit=yes ;;
/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src/encode.c) arg=/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src/encode.c; split_arg=no; cachehit=yes ;;
/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src/auth.c) arg=/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src/auth.c; split_arg=no; cachehit=yes ;;
/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src/btree.c) arg=/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src/btree.c; split_arg=no; cachehit=yes ;;
/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src/build.c) arg=/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src/build.c; split_arg=no; cachehit=yes ;;
/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src/func.c) arg=/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src/func.c; split_arg=no; cachehit=yes ;;
/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src/delete.c) arg=/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src/delete.c; split_arg=no; cachehit=yes ;;
/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src/expr.c) arg=/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src/expr.c; split_arg=no; cachehit=yes ;;
/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src/hash.c) arg=/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src/hash.c; split_arg=no; cachehit=yes ;;
/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src/insert.c) arg=/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src/insert.c; split_arg=no; cachehit=yes ;;
/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src/main.c) arg=/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src/main.c; split_arg=no; cachehit=yes ;;
/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src/pager.c) arg=/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src/pager.c; split_arg=no; cachehit=yes ;;
/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src/printf.c) arg=/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src/printf.c; split_arg=no; cachehit=yes ;;
/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src/os.c) arg=/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src/os.c; split_arg=no; cachehit=yes ;;
/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src/select.c) arg=/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src/select.c; split_arg=no; cachehit=yes ;;
/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src/random.c) arg=/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src/random.c; split_arg=no; cachehit=yes ;;
/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src/table.c) arg=/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src/table.c; split_arg=no; cachehit=yes ;;
/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src/tokenize.c) arg=/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src/tokenize.c; split_arg=no; cachehit=yes ;;
/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src/update.c) arg=/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src/update.c; split_arg=no; cachehit=yes ;;
/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src/util.c) arg=/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src/util.c; split_arg=no; cachehit=yes ;;
/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src/vdbe.c) arg=/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src/vdbe.c; split_arg=no; cachehit=yes ;;
/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src/attach.c) arg=/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src/attach.c; split_arg=no; cachehit=yes ;;
/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src/btree_rb.c) arg=/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src/btree_rb.c; split_arg=no; cachehit=yes ;;
/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src/pragma.c) arg=/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src/pragma.c; split_arg=no; cachehit=yes ;;
/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src/vacuum.c) arg=/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src/vacuum.c; split_arg=no; cachehit=yes ;;
/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src/copy.c) arg=/usr/pkgsrc/lang/php5/work/php-5.0.3/ext/sqlite/libsqlite/src/copy.c; split_arg=no; cachehit=yes ;;
*) cachehit=no ;;
esac

------=_Part_2745_22279005.1107805199553--