<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>60578</bug_id>
          
          <creation_ts>2004-08-16 12:05 0000</creation_ts>
          <short_desc>Duke Nukem 3D ebuild fails to compile</short_desc>
          <delta_ts>2004-09-12 05:33:51 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Games</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>mgtroyas@gmail.com</reporter>
          <assigned_to>games@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>mgtroyas@gmail.com</who>
            <bug_when>2004-08-16 12:05:29 0000</bug_when>
            <thetext>&gt;&gt;&gt; md5 src_uri ;-) duke3d-20030817.tbz2
&gt;&gt;&gt; Unpacking source...
&gt;&gt;&gt; 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
&gt;&gt;&gt; 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</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mgtroyas@gmail.com</who>
            <bug_when>2004-08-16 12:05:29 0000</bug_when>
            <thetext>&gt;&gt;&gt; md5 src_uri ;-) duke3d-20030817.tbz2
&gt;&gt;&gt; Unpacking source...
&gt;&gt;&gt; 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
&gt;&gt;&gt; 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&apos;:
buildperl.c:52: error: `my_perl&apos; 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&apos;:
buildperl.c:77: error: `my_perl&apos; 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&apos;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&apos;t know if the NPTL is the problem. Anyway the cvs snapshot is one year old, could be updated.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mgtroyas@gmail.com</who>
            <bug_when>2004-08-16 13:29:07 0000</bug_when>
            <thetext>Confirmed: I just downloaded the latest CVS and compiled ok. It&apos;s working perfectly. CVS snapshot should be updated to fix it.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2004-08-17 17:53:45 0000</bug_when>
            <thetext>cvs duke3d also seems to have fixes for mouse aiming ... i&apos;ll update it shortly</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2004-08-17 21:08:38 0000</bug_when>
            <thetext>version bumped in cvs</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mgtroyas@gmail.com</who>
            <bug_when>2004-08-20 02:58:34 0000</bug_when>
            <thetext>errrr... I don&apos;t know if I&apos;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!
&gt;&gt;&gt; emerge (1 of 1) games-fps/duke3d-20040817 to /
&gt;&gt;&gt; md5 src_uri ;-) duke3d-20040817.tar.bz2
&gt;&gt;&gt; Unpacking source...
&gt;&gt;&gt; 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
&gt;&gt;&gt; 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</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mgtroyas@gmail.com</who>
            <bug_when>2004-08-20 02:58:34 0000</bug_when>
            <thetext>errrr... I don&apos;t know if I&apos;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!
&gt;&gt;&gt; emerge (1 of 1) games-fps/duke3d-20040817 to /
&gt;&gt;&gt; md5 src_uri ;-) duke3d-20040817.tar.bz2
&gt;&gt;&gt; Unpacking source...
&gt;&gt;&gt; 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
&gt;&gt;&gt; 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&apos;:
buildperl.c:52: error: `my_perl&apos; 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&apos;:
buildperl.c:77: error: `my_perl&apos; 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&apos;t know what&apos;s the problem, but as the code compiles by hand. I think the problem must be the ebuild. </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mgtroyas@gmail.com</who>
            <bug_when>2004-09-12 05:33:51 0000</bug_when>
            <thetext>I did:

USE=&quot;-perl&quot; emerge duke3d

and now compiled without problems. Don&apos;t know whats wrong with the ebuild.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>