###
### Wed Jun 9 00:27:59 EST 2004:
### /usr/pkg/bin/bmake bulk-package for lua-5.0.2
### Current pkg count:  9 installed packages: digest-20021220 gettext-lib-0.11.5nb3 gmake-3.80nb3 libiconv-1.9.1nb2 libtool-base-1.5.6nb1 patch-2.5.4nb2 pkg_install-info-4.5nb2 readline-4.3pl5 xpkgwedge-1.10
###
BULK> Full rebuild in progress...
BULK> Cleaning package and its depends
===> Cleaning for lua-5.0.2
===> Cleaning for patch-2.5.4nb2
BULK> Removing installed packages which are not needed to build lua-5.0.2
BULK> Keeping BULK_PREREQ: digest-20021220 (pkgtools/digest)
/usr/pkg/sbin/pkg_delete -K /var/db/pkg -r pkg_install-info-4.5nb2
/usr/pkg/sbin/pkg_delete -K /var/db/pkg -r libtool-base-1.5.6nb1
BULK> lua-5.0.2 requires installed package patch-2.5.4nb2 (devel/patch) to build.
/usr/pkg/sbin/pkg_delete -K /var/db/pkg -r libiconv-1.9.1nb2
/usr/pkg/sbin/pkg_delete -K /var/db/pkg -r xpkgwedge-1.10
pkg_delete: package 'xpkgwedge-1.10' doesn't have a prefix
pkg_delete: package 'xpkgwedge-1.10' doesn't have a prefix
BULK> Installing packages which are required to build lua-5.0.2.
BULK> Required package patch-2.5.4nb2 (devel/patch) is already installed
BULK> Required package digest-20021220 (pkgtools/digest) is already installed
/usr/pkg/bin/bmake package (lua-5.0.2)
===> Checking for vulnerabilities in lua-5.0.2
=> lua-5.0.2.tar.gz doesn't seem to exist on this system.
=> Attempting to fetch lua-5.0.2.tar.gz from ftp://ftp.tecgraf.puc-rio.br/pub/lua/.
=> [190442 bytes]
=> Checksum OK for lua-5.0.2.tar.gz.
work -> /work/pkgbuild/lang/lua/work
===> Extracting for lua-5.0.2
===> Required installed package patch>=2.2: patch-2.5.4nb2 found
===> Patching for lua-5.0.2
===> Applying pkgsrc patches for lua-5.0.2
===> Overriding tools for lua-5.0.2
===> Buildlinking for lua-5.0.2
===> Configuring for lua-5.0.2
===> Building for lua-5.0.2
cd include; /usr/pkg/bin/bmake all
cd src; /usr/pkg/bin/bmake all
gcc -O -Wall -I../include      -c lapi.c
gcc -O -Wall -I../include      -c lcode.c
gcc -O -Wall -I../include      -c ldebug.c
gcc -O -Wall -I../include      -c ldo.c
gcc -O -Wall -I../include      -c ldump.c
gcc -O -Wall -I../include      -c lfunc.c
gcc -O -Wall -I../include      -c lgc.c
gcc -O -Wall -I../include      -c llex.c
gcc -O -Wall -I../include      -c lmem.c
gcc -O -Wall -I../include      -c lobject.c
gcc -O -Wall -I../include      -c lopcodes.c
gcc -O -Wall -I../include      -c lparser.c
gcc -O -Wall -I../include      -c lstate.c
gcc -O -Wall -I../include      -c lstring.c
gcc -O -Wall -I../include      -c ltable.c
gcc -O -Wall -I../include      -c ltests.c
gcc -O -Wall -I../include      -c ltm.c
gcc -O -Wall -I../include      -c lundump.c
gcc -O -Wall -I../include      -c lvm.c
gcc -O -Wall -I../include      -c lzio.c
ar rcu ../lib/liblua.a lapi.o  lcode.o  ldebug.o  ldo.o  ldump.o  lfunc.o  lgc.o  llex.o  lmem.o  lobject.o  lopcodes.o  lparser.o  lstate.o  lstring.o  ltable.o  ltests.o  ltm.o  lundump.o  lvm.o  lzio.o
ranlib ../lib/liblua.a
cd src/lib; /usr/pkg/bin/bmake all
gcc -O -Wall -I../../include      -DUSE_DLOPEN=1   -c lauxlib.c
gcc -O -Wall -I../../include      -DUSE_DLOPEN=1   -c lbaselib.c
gcc -O -Wall -I../../include      -DUSE_DLOPEN=1   -c ldblib.c
gcc -O -Wall -I../../include      -DUSE_DLOPEN=1   -c liolib.c
gcc -O -Wall -I../../include      -DUSE_DLOPEN=1   -c lmathlib.c
gcc -O -Wall -I../../include      -DUSE_DLOPEN=1   -c ltablib.c
gcc -O -Wall -I../../include      -DUSE_DLOPEN=1   -c lstrlib.c
gcc -O -Wall -I../../include      -DUSE_DLOPEN=1   -c loadlib.c
ar rcu ../../lib/liblualib.a lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o ltablib.o lstrlib.o loadlib.o
ranlib ../../lib/liblualib.a
cd src/luac; /usr/pkg/bin/bmake all
gcc -O -Wall -I../../include -I..      -c luac.c
gcc -O -Wall -I../../include -I..      -c print.c
gcc -o lopcodes.o -c -O -Wall -I../../include -I..    -DLUA_OPNAMES ../lopcodes.c
cd ..; /usr/pkg/bin/bmake
cd ../lib; /usr/pkg/bin/bmake
gcc -o ../../bin/luac  -R/usr/pkg/lib -Wl,-E luac.o print.o lopcodes.o -L../../lib -llua -llualib -lm 
cd src/lua; /usr/pkg/bin/bmake all
gcc -O -Wall -I../../include      -c lua.c
cd ..; /usr/pkg/bin/bmake
cd ../lib; /usr/pkg/bin/bmake
gcc -o ../../bin/lua  -R/usr/pkg/lib -Wl,-E lua.o -L../../lib -llua -llualib -lm 
Undefined			first referenced
 symbol  			    in file
dlclose                             ../../lib/liblualib.a(loadlib.o)  (symbol belongs to implicit dependency /usr/lib/libdl.so.1)
dlopen                              ../../lib/liblualib.a(loadlib.o)  (symbol belongs to implicit dependency /usr/lib/libdl.so.1)
dlsym                               ../../lib/liblualib.a(loadlib.o)  (symbol belongs to implicit dependency /usr/lib/libdl.so.1)
dlerror                             ../../lib/liblualib.a(loadlib.o)  (symbol belongs to implicit dependency /usr/lib/libdl.so.1)
ld: fatal: Symbol referencing errors. No output written to ../../bin/lua
*** Error code 1

Stop.
bmake: stopped in /work/pkgbuild/lang/lua/work/lua-5.0.2/src/lua
*** Error code 1

Stop.
bmake: stopped in /work/pkgbuild/lang/lua/work/lua-5.0.2
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/lang/lua
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/lang/lua
BULK> lua-5.0.2 was marked as broken:
-rw-r--r--   1 root     other       5249 Jun  9 00:30 .broken.html
/usr/pkg/bin/bmake deinstall
===> Deinstalling for lua
BULK> Marking all packages which depend upon lua-5.0.2 as broken:
BULK> marking package that requires lua-5.0.2 as broken: lua-sqlite-20030228 (databases/lua-sqlite)
BULK> marking package that requires lua-5.0.2 as broken: imapfilter-1.0 (mail/imapfilter)
BULK> marking package that requires lua-5.0.2 as broken: celestia-1.3.0nb1 (misc/celestia)
BULK> marking package that requires lua-5.0.2 as broken: celestia-gnome-1.3.0nb2 (misc/celestia-gnome)
NOTE: Couldn't lock the package database.
NOTE: Couldn't lock the package database.
BULK> marking package that requires lua-5.0.2 as broken: celestia-kde-1.3.0nb7 (misc/celestia-kde)
BULK> marking package that requires lua-5.0.2 as broken: lua-expat-1.0a (textproc/lua-expat)
BULK> marking package that requires lua-5.0.2 as broken: ion-20040601 (wm/ion)
BULK> marking package that requires lua-5.0.2 as broken: elinks-0.9.1nb2 (www/elinks)
BULK> Build for lua-5.0.2 was not successful, aborting.