Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 60578 - Duke Nukem 3D ebuild fails to compile
Summary: Duke Nukem 3D ebuild fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All All
: High normal
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-16 12:05 UTC by Marcos González
Modified: 2004-09-12 05:33 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcos González 2004-08-16 12:05:29 UTC
>>> md5 src_uri ;-) duke3d-20030817.tbz2
>>> Unpacking source...
>>> Unpacking duke3d-20030817.tbz2 to /var/tmp/portage/duke3d-20030817-r1/work
x86
* Applying 20030817-buildengine-makefile-cflags.patch...                 [ ok ]        * Applying 20030817-credits.patch...                                     [ ok ]   * Applying 20030817-duke3d-makefile-opts.patch...                        [ ok ]
x86
opengl
>>> Source unpacked.

[...]

gcc -c -o buildperl.o buildperl.c -O2 -march=athlon-xp -fomit-frame-pointer -mfpmath=sse -pipe -DUSE_OPENGL -I/usr/X11R6/include -DUSE_PERL -DUDP_NETWORKING=1 -DUSE_I386_ASM -O2 -march=athlon-xp -fomit-frame-pointer -mfpmath=sse -pipe -funsigned-char -DPLATFORM_UNIX -Wall -I/usr/include/SDL -D_REENTRANT -fno-omit-frame-pointer  -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I/usr/lib/perl5/5.8.4/i686-linux-thread-multi/CORE
buildperl.c: En la funci
Comment 1 Marcos González 2004-08-16 12:05:29 UTC
>>> md5 src_uri ;-) duke3d-20030817.tbz2
>>> Unpacking source...
>>> Unpacking duke3d-20030817.tbz2 to /var/tmp/portage/duke3d-20030817-r1/work
x86
* Applying 20030817-buildengine-makefile-cflags.patch...                 [ ok ]        * Applying 20030817-credits.patch...                                     [ ok ]   * Applying 20030817-duke3d-makefile-opts.patch...                        [ ok ]
x86
opengl
>>> Source unpacked.

[...]

gcc -c -o buildperl.o buildperl.c -O2 -march=athlon-xp -fomit-frame-pointer -mfpmath=sse -pipe -DUSE_OPENGL -I/usr/X11R6/include -DUSE_PERL -DUDP_NETWORKING=1 -DUSE_I386_ASM -O2 -march=athlon-xp -fomit-frame-pointer -mfpmath=sse -pipe -funsigned-char -DPLATFORM_UNIX -Wall -I/usr/include/SDL -D_REENTRANT -fno-omit-frame-pointer  -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I/usr/lib/perl5/5.8.4/i686-linux-thread-multi/CORE
buildperl.c: En la función `buildperl_init':
buildperl.c:52: error: `my_perl' undeclared (first use in this function)
buildperl.c:52: error: (Each undeclared identifier is reported only once
buildperl.c:52: error: for each function it appears in.)
buildperl.c: En la función `buildperl_frame':
buildperl.c:77: error: `my_perl' undeclared (first use in this function)
make: *** [buildperl.o] Error 1
make: *** Se espera a que terminen otras tareas....

!!! ERROR: games-fps/duke3d-20030817-r1 failed.
!!! Function src_compile, Line 82, Exitcode 2
!!! buildengine failed


My system:

sys-libs/glibc-2.3.3.20040420-r1
sys-kernel/gentoo-dev-sources-2.6.8
media-video/ati-drivers-3.9.0-r1 

AthlonXP 2800 / ATI Radeon 9600Pro / Gigabyte KT600


I'm using 2.6 headers (installed before stage1) to get NPTL support, but when I had 2.4 headers before reinstalling, the problem was the same. Don't know if the NPTL is the problem. Anyway the cvs snapshot is one year old, could be updated.
Comment 2 Marcos González 2004-08-16 13:29:07 UTC
Confirmed: I just downloaded the latest CVS and compiled ok. It's working perfectly. CVS snapshot should be updated to fix it.
Comment 3 SpanKY gentoo-dev 2004-08-17 17:53:45 UTC
cvs duke3d also seems to have fixes for mouse aiming ... i'll update it shortly
Comment 4 SpanKY gentoo-dev 2004-08-17 21:08:38 UTC
version bumped in cvs
Comment 5 Marcos González 2004-08-20 02:58:34 UTC
errrr... I don't know if I'm doing something wrong. Finally the file duke3d-20040817.tar.bz2 appeared in the FTPservers and I could compile it. But...

max root # emerge duke3d
Calculating dependencies ...done!
>>> emerge (1 of 1) games-fps/duke3d-20040817 to /
>>> md5 src_uri ;-) duke3d-20040817.tar.bz2
>>> Unpacking source...
>>> Unpacking duke3d-20040817.tar.bz2 to /var/tmp/portage/duke3d-20040817/work
* Applying 20040817-credits.patch...                                     [ ok ]
* Applying 20040817-duke3d-makefile-opts.patch...                        [ ok ]
x86
>>> Source unpacked.

[...]


gcc -o build -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread build.o bstub.o engine.o cache1d.o sdl_driver.o unix_compat.o a_nasm.o pragmas.o a_gnu.o  buildgl.o
buildperl.c: En la funci
Comment 6 Marcos González 2004-08-20 02:58:34 UTC
errrr... I don't know if I'm doing something wrong. Finally the file duke3d-20040817.tar.bz2 appeared in the FTPservers and I could compile it. But...

max root # emerge duke3d
Calculating dependencies ...done!
>>> emerge (1 of 1) games-fps/duke3d-20040817 to /
>>> md5 src_uri ;-) duke3d-20040817.tar.bz2
>>> Unpacking source...
>>> Unpacking duke3d-20040817.tar.bz2 to /var/tmp/portage/duke3d-20040817/work
* Applying 20040817-credits.patch...                                     [ ok ]
* Applying 20040817-duke3d-makefile-opts.patch...                        [ ok ]
x86
>>> Source unpacked.

[...]


gcc -o build -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread build.o bstub.o engine.o cache1d.o sdl_driver.o unix_compat.o a_nasm.o pragmas.o a_gnu.o  buildgl.o
buildperl.c: En la función `buildperl_init':
buildperl.c:52: error: `my_perl' undeclared (first use in this function)
buildperl.c:52: error: (Each undeclared identifier is reported only once
buildperl.c:52: error: for each function it appears in.)
buildperl.c: En la función `buildperl_frame':
buildperl.c:77: error: `my_perl' undeclared (first use in this function)
make: *** [buildperl.o] Error 1
make: *** Se espera a que terminen otras tareas....

!!! ERROR: games-fps/duke3d-20040817 failed.
!!! Function src_compile, Line 79, Exitcode 2
!!! buildengine failed

As I said, I compiled from CVS that same day, and everything worked. My guess was: could be the two patches that are applied at the beginning not necessary anymore? So I commented out those 2 lines in the ebuild, but the ebuild failed again.

Really don't know what's the problem, but as the code compiles by hand. I think the problem must be the ebuild. 
Comment 7 Marcos González 2004-09-12 05:33:51 UTC
I did:

USE="-perl" emerge duke3d

and now compiled without problems. Don't know whats wrong with the ebuild.