<?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>131957</bug_id>
          
          <creation_ts>2006-05-01 13:27 0000</creation_ts>
          <short_desc>scilab doesn&apos;t link -lpthread for threaded atlas</short_desc>
          <delta_ts>2006-06-24 14:51:47 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>Applications</component>
          <version>2005.0</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</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>paulphilippe@yahoo.com</reporter>
          <assigned_to>sci@gentoo.org</assigned_to>
          <cc>gralves@gmail.com</cc>
    
    <cc>rose@rz.uni-potsdam.de</cc>

      

      
          <long_desc isprivate="0">
            <who>paulphilippe@yahoo.com</who>
            <bug_when>2006-05-01 13:27:56 0000</bug_when>
            <thetext>Hi,

Scilab will no longer compile because of the following error messages (note that I have recompile the entire system and world twice already and I still get the errors (emerge -eN system &amp;&amp; emerge -eN world)) 

linking
/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/../../../../i686-pc-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in object.
make[1]: Leaving directory `/var/tmp/portage/scilab-3.1.1-r3/work/scilab-3.1.1/routines/Javasci&apos;
linking
/var/tmp/portage/scilab-3.1.1-r3/work/scilab-3.1.1/pvm3/lib/LINUX/libpvm3.a(lpvmgen.o): In function `pvmlogperror&apos;:
lpvmgen.c:(.text+0x31a): warning: `sys_errlist&apos; is deprecated; use `strerror&apos; or `strerror_r&apos; instead
lpvmgen.c:(.text+0x311): warning: `sys_nerr&apos; is deprecated; use `strerror&apos; or `strerror_r&apos; instead
/var/tmp/portage/scilab-3.1.1-r3/work/scilab-3.1.1/libs/system.a(scicurdir.o): In function `scigetcwd_&apos;:
scicurdir.c:(.text+0x79): warning: the `getwd&apos; function is dangerous and should not be used.
/var/tmp/portage/scilab-3.1.1-r3/work/scilab-3.1.1/libs/sun.a(link.o): In function `CreateShared&apos;:
link.c:(.text+0x536): warning: the use of `mktemp&apos; is dangerous, better use `mkstemp&apos;
/usr/lib/libatlas.so.0: undefined reference to `pthread_create&apos;
/usr/lib/libatlas.so.0: undefined reference to `pthread_join&apos;
collect2: ld returned 1 exit status
make: *** [bin/scilex] Error 1

!!! ERROR: sci-mathematics/scilab-3.1.1-r3 failed.
Call stack:
  ebuild.sh, line 1525:   Called dyn_compile
  ebuild.sh, line 928:   Called src_compile
  scilab-3.1.1-r3.ebuild, line 74:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.

Steps:
1) emerge scilab
2) building and compiling stops at linking

Reproducibility: ALWAYS

Expected result: compile complete and install

Paul



booyah ~ # emerge --info
Portage 2.1_pre9-r4 (default-linux/x86/2005.0, gcc-3.4.6, glibc-2.4-r1, 2.6.14-gentoo-r2 i686)
=================================================================
System uname: 2.6.14-gentoo-r2 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.12.0_pre18
dev-lang/python:     2.3.5, 2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS=&quot;x86 ~x86&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-march=pentium4 -O3 -pipe -fomit-frame-pointer&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/qmail/control&quot;
CONFIG_PROTECT_MASK=&quot;/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d&quot;
CXXFLAGS=&quot;-march=pentium4 -O3 -pipe -fomit-frame-pointer&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoconfig ccache cvs distcc distlocks metadata-transfer noauto sandbox sfperms strict userpriv usersandbox&quot;
GENTOO_MIRRORS=&quot;ftp://ftp.nrc.ca/pub/systems/linux/gentoo/  http://mirror.tucdemonic.org/gentoo/ ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/  http://gentoo.netnitco.net ftp://ftp.ussg.iu.edu/pub/linux/gentoo&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;x86 X aac aalib alsa apm arts avi berkdb bitmap-fonts cli crypt cups divx4linux dri eds emboss encode faad2 fbdev foomaticdb fortran gcj gdbm gif gnome gpm gstreamer gtk gtk2 imlib ipv6 isdnlog java jpeg kde libg++ libwww live mad mikmod motif mp3 mpeg nas ncurses network nls nptl nptlonly ogg oggvorbis opengl oss pam pcre pdflib perl png pppd python qt quicktime readline reflection sdl session spell spl ssl tcpd truetype truetype-fonts type1-fonts vorbis win32codecs xml2 xmms xorg xv zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_vesa video_cards_vga video_cards_fbdev video_cards_nv video_cards_nvidia&quot;
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>markusle@gentoo.org</who>
            <bug_when>2006-05-01 15:49:42 0000</bug_when>
            <thetext>(In reply to comment #0)
&gt; /usr/lib/libatlas.so.0: undefined reference to `pthread_create&apos;
&gt; /usr/lib/libatlas.so.0: undefined reference to `pthread_join&apos;

This looks more like a problem with atlas rather than scilab itself.
What version of blas-atlas do you have installed? Does recompiling
blas-atlas once more help?

Thanks,
Markus</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>paulphilippe@yahoo.com</who>
            <bug_when>2006-05-01 18:52:16 0000</bug_when>
            <thetext>(In reply to comment #1)
&gt; (In reply to comment #0)
&gt; &gt; /usr/lib/libatlas.so.0: undefined reference to `pthread_create&apos;
&gt; &gt; /usr/lib/libatlas.so.0: undefined reference to `pthread_join&apos;
&gt; 
&gt; This looks more like a problem with atlas rather than scilab itself.
&gt; What version of blas-atlas do you have installed? Does recompiling
&gt; blas-atlas once more help?
&gt; 
&gt; Thanks,
&gt; Markus

Nope it doesn&apos;t. I have recompiled blas-atlas and it doesn&apos;t help. I have blas-atlas-3.7.11 installed.

Paul
&gt; 

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>markusle@gentoo.org</who>
            <bug_when>2006-05-01 20:54:16 0000</bug_when>
            <thetext>It is probably related to glibc-2.4, but unfortunately I can&apos;t test this
at the moment. Likely, we need a -lpthread somewhere. Would you
mind giving the currently masked scilab-4.0 a try and see what
happens? It will go into ~x86 very soon and I&apos;d rather start debugging your
problem in the newer version.

Thanks,
Markus</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>paulphilippe@yahoo.com</who>
            <bug_when>2006-05-02 10:45:29 0000</bug_when>
            <thetext>(In reply to comment #3)
&gt; It is probably related to glibc-2.4, but unfortunately I can&apos;t test this
&gt; at the moment. Likely, we need a -lpthread somewhere. Would you
&gt; mind giving the currently masked scilab-4.0 a try and see what
&gt; happens? It will go into ~x86 very soon and I&apos;d rather start debugging your
&gt; problem in the newer version.
&gt; 
&gt; Thanks,
&gt; Markus
&gt; 

Will do!

Thanks
Paul
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>paulphilippe@yahoo.com</who>
            <bug_when>2006-05-02 10:50:41 0000</bug_when>
            <thetext>(In reply to comment #4)
&gt; (In reply to comment #3)
&gt; &gt; It is probably related to glibc-2.4, but unfortunately I can&apos;t test this
&gt; &gt; at the moment. Likely, we need a -lpthread somewhere. Would you
&gt; &gt; mind giving the currently masked scilab-4.0 a try and see what
&gt; &gt; happens? It will go into ~x86 very soon and I&apos;d rather start debugging your
&gt; &gt; problem in the newer version.
&gt; &gt; 
&gt; &gt; Thanks,
&gt; &gt; Markus
&gt; &gt; 
&gt; 
&gt; Will do!
&gt; 
&gt; Thanks
&gt; Paul
&gt; 

Ok I just tried installing scilab-4.0 and it gives me the exact same error but there aren&apos;t as many error messages!

/var/tmp/portage/scilab-4.0/work/scilab-4.0/pvm3/lib/LINUX/libpvm3.a(lpvmgen.o): In function `pvmlogperror&apos;:
lpvmgen.c:(.text+0x31a): warning: `sys_errlist&apos; is deprecated; use `strerror&apos; or `strerror_r&apos; instead
lpvmgen.c:(.text+0x311): warning: `sys_nerr&apos; is deprecated; use `strerror&apos; or `strerror_r&apos; instead
/var/tmp/portage/scilab-4.0/work/scilab-4.0/libs/system.a(scicurdir.o): In function `scigetcwd_&apos;:
scicurdir.c:(.text+0x84): warning: the `getwd&apos; function is dangerous and should not be used.
/var/tmp/portage/scilab-4.0/work/scilab-4.0/libs/os_specific.a(link.o): In function `CreateShared&apos;:
link.c:(.text+0x197): warning: the use of `mktemp&apos; is dangerous, better use `mkstemp&apos;
/usr/lib/libatlas.so.0: undefined reference to `pthread_create&apos;
/usr/lib/libatlas.so.0: undefined reference to `pthread_join&apos;
collect2: ld returned 1 exit status
make: *** [bin/scilex] Error 1

!!! ERROR: sci-mathematics/scilab-4.0 failed.
Call stack:
  ebuild.sh, line 1525:   Called dyn_compile
  ebuild.sh, line 928:   Called src_compile
  scilab-4.0.ebuild, line 85:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

Hope this helps!

Paul
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>markusle@gentoo.org</who>
            <bug_when>2006-05-02 19:50:47 0000</bug_when>
            <thetext>Created an attachment (id=86042)
small atlas compile test

Hi,

Thank you very much for your efforts and giving scilab-4.0 a shot.
I still think the problem is glibc-2.4 and atlas related. Could you
please try to compile the attached small C++ code with

g++ atlas_test.cpp /usr/lib/libatlas.so

and report back if that works and runs.

Thanks,
Markus</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>paulphilippe@yahoo.com</who>
            <bug_when>2006-05-02 20:01:19 0000</bug_when>
            <thetext>(In reply to comment #6)
&gt; Created an attachment (id=86042) [edit]
&gt; small atlas compile test
&gt; 
&gt; Hi,
&gt; 
&gt; Thank you very much for your efforts and giving scilab-4.0 a shot.
&gt; I still think the problem is glibc-2.4 and atlas related. Could you
&gt; please try to compile the attached small C++ code with
&gt; 
&gt; g++ atlas_test.cpp /usr/lib/libatlas.so
&gt; 
&gt; and report back if that works and runs.
&gt; 
&gt; Thanks,
&gt; Markus
&gt; 

Hi,

Here&apos;s is what I get by performing the following:
&quot;
user@booyah ~ $ g++ atlas_test.cpp /usr/lib/libatlas.so
/usr/lib/libatlas.so: undefined reference to `pthread_create&apos;
/usr/lib/libatlas.so: undefined reference to `pthread_join&apos;
collect2: ld returned 1 exit status
user@booyah ~ $
&quot;

Unfortunetely, I have no knowledge whatsoever in C++ ... wish I could be of more help!!

Thanks for the help so far
Cheers,

Paul
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>markusle@gentoo.org</who>
            <bug_when>2006-05-04 07:41:58 0000</bug_when>
            <thetext>Hi Paul,

Thank you very much for testing. As I suspected, this is not scilab&apos;s fault
but rather a problem with the atlas library that somehow has trouble
finding glibc&apos;s pthread stuff, probably due to glibc-2.4 (I changed the
subject accordingly).
I&apos;ll have to dig into this some more to figure out what is going wrong and
might ask you to test a few things. I&apos;ll see if in the meantime I can prevent 
scilab from linking against atlas so you can compile it.

Thanks,
Markus</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dberkholz@gentoo.org</who>
            <bug_when>2006-05-04 09:38:06 0000</bug_when>
            <thetext>The easy fix is to just add -lpthread to your linker flags.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>paulphilippe@yahoo.com</who>
            <bug_when>2006-05-04 10:05:02 0000</bug_when>
            <thetext>(In reply to comment #9)
&gt; The easy fix is to just add -lpthread to your linker flags.
&gt; 

Ok, in what file?

Paul</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>markusle@gentoo.org</who>
            <bug_when>2006-05-04 15:47:49 0000</bug_when>
            <thetext>Created an attachment (id=86171)
patch to link against pthread

Hi Paul,

Could you please try the attached patch for the scilab-4.0.ebuild 
and report back how far this gets you?

Thanks,
Markus</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>paulphilippe@yahoo.com</who>
            <bug_when>2006-05-05 12:27:37 0000</bug_when>
            <thetext>(In reply to comment #11)
&gt; Created an attachment (id=86171) [edit]
&gt; patch to link against pthread
&gt; 
&gt; Hi Paul,
&gt; 
&gt; Could you please try the attached patch for the scilab-4.0.ebuild 
&gt; and report back how far this gets you?
&gt; 
&gt; Thanks,
&gt; Markus
&gt; 

hi Markus,

   I applied the patch to the scilab-4.0 ebuild the compilation failed with the same error messages
linking
/var/tmp/portage/scilab-4.0/work/scilab-4.0/pvm3/lib/LINUX/libpvm3.a(lpvmgen.o): In function `pvmlogperror&apos;:
lpvmgen.c:(.text+0x31a): warning: `sys_errlist&apos; is deprecated; use `strerror&apos; or `strerror_r&apos; instead
lpvmgen.c:(.text+0x311): warning: `sys_nerr&apos; is deprecated; use `strerror&apos; or `strerror_r&apos; instead
/var/tmp/portage/scilab-4.0/work/scilab-4.0/libs/system.a(scicurdir.o): In function `scigetcwd_&apos;:
scicurdir.c:(.text+0x84): warning: the `getwd&apos; function is dangerous and should not be used.
/var/tmp/portage/scilab-4.0/work/scilab-4.0/libs/os_specific.a(link.o): In function `CreateShared&apos;:
link.c:(.text+0x197): warning: the use of `mktemp&apos; is dangerous, better use `mkstemp&apos;
/usr/lib/libatlas.so.0: undefined reference to `pthread_create&apos;
/usr/lib/libatlas.so.0: undefined reference to `pthread_join&apos;
collect2: ld returned 1 exit status
make: *** [bin/scilex] Error 1

!!! ERROR: sci-mathematics/scilab-4.0 failed.
Call stack:
  ebuild.sh, line 1525:   Called dyn_compile
  ebuild.sh, line 928:   Called src_compile
  scilab-4.0.ebuild, line 85:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

Paul-Philippe

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dberkholz@gentoo.org</who>
            <bug_when>2006-05-05 12:53:02 0000</bug_when>
            <thetext>Can you paste the last full compilation line above that? It looks as if -lpthread still isn&apos;t getting passed, from that error.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>paulphilippe@yahoo.com</who>
            <bug_when>2006-05-05 13:01:55 0000</bug_when>
            <thetext>(In reply to comment #13)
&gt; Can you paste the last full compilation line above that? It looks as if
&gt; -lpthread still isn&apos;t getting passed, from that error.
&gt; 

Here it is 
ranlib libpvmtrc.a
gcc -O  -DIMA_LINUX -DSYSVSIGNAL -DNOWAIT3 -DRSHCOMMAND=\&quot;/usr/bin/rsh\&quot; -DNEEDENDIAN -DFDSETNOTSTRUCT -DHASERRORVARS -DCTIMEISTIMET -DSYSERRISCONST -DNOTMPNAM -o tracer tracer.o cmd.o trcglob.o -L../../lib/LINUX -L../../tracer/LINUX -lpvmtrc -lpvm3
../../lib/LINUX/libpvm3.a(lpvmgen.o): In function `pvmlogperror&apos;:
lpvmgen.c:(.text+0x31a): warning: `sys_errlist&apos; is deprecated; use `strerror&apos; or `strerror_r&apos; instead
lpvmgen.c:(.text+0x311): warning: `sys_nerr&apos; is deprecated; use `strerror&apos; or `strerror_r&apos; instead
gcc -O  -DIMA_LINUX -DSYSVSIGNAL -DNOWAIT3 -DRSHCOMMAND=\&quot;/usr/bin/rsh\&quot; -DNEEDENDIAN -DFDSETNOTSTRUCT -DHASERRORVARS -DCTIMEISTIMET -DSYSERRISCONST -DNOTMPNAM -c -I../../tracer -I../../include -I../../tracer ../../tracer/trcsort.c
gcc -O  -DIMA_LINUX -DSYSVSIGNAL -DNOWAIT3 -DRSHCOMMAND=\&quot;/usr/bin/rsh\&quot; -DNEEDENDIAN -DFDSETNOTSTRUCT -DHASERRORVARS -DCTIMEISTIMET -DSYSERRISCONST -DNOTMPNAM -o trcsort trcsort.o -L../../lib/LINUX -L../../tracer/LINUX -lpvmtrc -lpvm3
../../lib/LINUX/libpvm3.a(lpvmgen.o): In function `pvmlogperror&apos;:
lpvmgen.c:(.text+0x31a): warning: `sys_errlist&apos; is deprecated; use `strerror&apos; or `strerror_r&apos; instead
lpvmgen.c:(.text+0x311): warning: `sys_nerr&apos; is deprecated; use `strerror&apos; or `strerror_r&apos; instead
make[3]: Leaving directory `/var/tmp/portage/scilab-4.0/work/scilab-4.0/pvm3/tracer/LINUX&apos;
done building tracer
building console
cd console; ../lib/aimk CC=gcc F77=f77 install
making in LINUX/ for LINUX
make[3]: Entering directory `/var/tmp/portage/scilab-4.0/work/scilab-4.0/pvm3/console/LINUX&apos;
gcc  -DIMA_LINUX -I../../include -I../../tracer -I../../src -DSYSVSIGNAL -DNOWAIT3 -DRSHCOMMAND=\&quot;/usr/bin/rsh\&quot; -DNEEDENDIAN -DFDSETNOTSTRUCT -DHASERRORVARS -DCTIMEISTIMET -DSYSERRISCONST -DNOTMPNAM -c ../../console/cons.c
gcc  -DIMA_LINUX -I../../include -I../../tracer -I../../src -DSYSVSIGNAL -DNOWAIT3 -DRSHCOMMAND=\&quot;/usr/bin/rsh\&quot; -DNEEDENDIAN -DFDSETNOTSTRUCT -DHASERRORVARS -DCTIMEISTIMET -DSYSERRISCONST -DNOTMPNAM -c ../../console/cmds.c
gcc  -DIMA_LINUX -I../../include -I../../tracer -I../../src -DSYSVSIGNAL -DNOWAIT3 -DRSHCOMMAND=\&quot;/usr/bin/rsh\&quot; -DNEEDENDIAN -DFDSETNOTSTRUCT -DHASERRORVARS -DCTIMEISTIMET -DSYSERRISCONST -DNOTMPNAM -c ../../console/job.c
gcc  -DIMA_LINUX -I../../include -I../../tracer -I../../src -DSYSVSIGNAL -DNOWAIT3 -DRSHCOMMAND=\&quot;/usr/bin/rsh\&quot; -DNEEDENDIAN -DFDSETNOTSTRUCT -DHASERRORVARS -DCTIMEISTIMET -DSYSERRISCONST -DNOTMPNAM -c ../../console/trc.c
gcc  -DIMA_LINUX -I../../include -I../../tracer -I../../src -DSYSVSIGNAL -DNOWAIT3 -DRSHCOMMAND=\&quot;/usr/bin/rsh\&quot; -DNEEDENDIAN -DFDSETNOTSTRUCT -DHASERRORVARS -DCTIMEISTIMET -DSYSERRISCONST -DNOTMPNAM -o pvm cons.o cmds.o job.o trc.o  -L../../tracer/LINUX -L../../lib/LINUX -lpvmtrc -lpvm3
../../lib/LINUX/libpvm3.a(lpvmgen.o): In function `pvmlogperror&apos;:
lpvmgen.c:(.text+0x31a): warning: `sys_errlist&apos; is deprecated; use `strerror&apos; or `strerror_r&apos; instead
lpvmgen.c:(.text+0x311): warning: `sys_nerr&apos; is deprecated; use `strerror&apos; or `strerror_r&apos; instead
cp pvm ../../lib/LINUX
make[3]: Leaving directory `/var/tmp/portage/scilab-4.0/work/scilab-4.0/pvm3/console/LINUX&apos;
done building console
building group server and library
cd pvmgs; ../lib/aimk CC=gcc F77=f77 install
making in LINUX/ for LINUX
make[3]: Entering directory `/var/tmp/portage/scilab-4.0/work/scilab-4.0/pvm3/pvmgs/LINUX&apos;
mkdir ../../bin/LINUX
gcc  -I../../include -I../../src -DIMA_LINUX -DSYSVSIGNAL -DNOWAIT3 -DRSHCOMMAND=\&quot;/usr/bin/rsh\&quot; -DNEEDENDIAN -DFDSETNOTSTRUCT -DHASERRORVARS -DCTIMEISTIMET -DSYSERRISCONST -DNOTMPNAM -c ../../pvmgs/pvm_gstat.c
gcc  -I../../include -I../../src -DIMA_LINUX -DSYSVSIGNAL -DNOWAIT3 -DRSHCOMMAND=\&quot;/usr/bin/rsh\&quot; -DNEEDENDIAN -DFDSETNOTSTRUCT -DHASERRORVARS -DCTIMEISTIMET -DSYSERRISCONST -DNOTMPNAM -c ../../pvmgs/pvmgsu_core.c
gcc  -I../../include -I../../src -DIMA_LINUX -DSYSVSIGNAL -DNOWAIT3 -DRSHCOMMAND=\&quot;/usr/bin/rsh\&quot; -DNEEDENDIAN -DFDSETNOTSTRUCT -DHASERRORVARS -DCTIMEISTIMET -DSYSERRISCONST -DNOTMPNAM -c ../../pvmgs/pvmgsu_aux.c
gcc  -I../../include -I../../src -DIMA_LINUX -DSYSVSIGNAL -DNOWAIT3 -DRSHCOMMAND=\&quot;/usr/bin/rsh\&quot; -DNEEDENDIAN -DFDSETNOTSTRUCT -DHASERRORVARS -DCTIMEISTIMET -DSYSERRISCONST -DNOTMPNAM -c ../../pvmgs/pvmgs_func.c
rm -f libgpvm3.a
ar cr libgpvm3.a pvmgsu_core.o pvmgsu_aux.o pvmgs_func.o
case xt in xt ) echo ranlib; ranlib libgpvm3.a ;; esac
ranlib
gcc  -I../../include -I../../src -DIMA_LINUX -DSYSVSIGNAL -DNOWAIT3 -DRSHCOMMAND=\&quot;/usr/bin/rsh\&quot; -DNEEDENDIAN -DFDSETNOTSTRUCT -DHASERRORVARS -DCTIMEISTIMET -DSYSERRISCONST -DNOTMPNAM -o pvm_gstat pvm_gstat.o libgpvm3.a  -L../../lib/LINUX -lpvm3
../../lib/LINUX/libpvm3.a(lpvmgen.o): In function `pvmlogperror&apos;:
lpvmgen.c:(.text+0x31a): warning: `sys_errlist&apos; is deprecated; use `strerror&apos; or `strerror_r&apos; instead
lpvmgen.c:(.text+0x311): warning: `sys_nerr&apos; is deprecated; use `strerror&apos; or `strerror_r&apos; instead
cp pvm_gstat ../../bin/LINUX
gcc  -I../../include -I../../src -DIMA_LINUX -DSYSVSIGNAL -DNOWAIT3 -DRSHCOMMAND=\&quot;/usr/bin/rsh\&quot; -DNEEDENDIAN -DFDSETNOTSTRUCT -DHASERRORVARS -DCTIMEISTIMET -DSYSERRISCONST -DNOTMPNAM -c ../../pvmgs/pvmgs_core.c
gcc  -I../../include -I../../src -DIMA_LINUX -DSYSVSIGNAL -DNOWAIT3 -DRSHCOMMAND=\&quot;/usr/bin/rsh\&quot; -DNEEDENDIAN -DFDSETNOTSTRUCT -DHASERRORVARS -DCTIMEISTIMET -DSYSERRISCONST -DNOTMPNAM -o pvmgs pvmgs_core.o pvmgs_func.o  -L../../lib/LINUX -lpvm3
../../lib/LINUX/libpvm3.a(lpvmgen.o): In function `pvmlogperror&apos;:
lpvmgen.c:(.text+0x31a): warning: `sys_errlist&apos; is deprecated; use `strerror&apos; or `strerror_r&apos; instead
lpvmgen.c:(.text+0x311): warning: `sys_nerr&apos; is deprecated; use `strerror&apos; or `strerror_r&apos; instead
cp pvmgs ../../bin/LINUX
gcc  -I../../include -I../../src -DIMA_LINUX -DSYSVSIGNAL -DNOWAIT3 -DRSHCOMMAND=\&quot;/usr/bin/rsh\&quot; -DNEEDENDIAN -DFDSETNOTSTRUCT -DHASERRORVARS -DCTIMEISTIMET -DSYSERRISCONST -DNOTMPNAM -c ../../pvmgs/pvmgroups.c
gcc  -I../../include -I../../src -DIMA_LINUX -DSYSVSIGNAL -DNOWAIT3 -DRSHCOMMAND=\&quot;/usr/bin/rsh\&quot; -DNEEDENDIAN -DFDSETNOTSTRUCT -DHASERRORVARS -DCTIMEISTIMET -DSYSERRISCONST -DNOTMPNAM -o pvmgroups pvmgroups.o libgpvm3.a  -L../../lib/LINUX -lpvm3
../../lib/LINUX/libpvm3.a(lpvmgen.o): In function `pvmlogperror&apos;:
lpvmgen.c:(.text+0x31a): warning: `sys_errlist&apos; is deprecated; use `strerror&apos; or `strerror_r&apos; instead
lpvmgen.c:(.text+0x311): warning: `sys_nerr&apos; is deprecated; use `strerror&apos; or `strerror_r&apos; instead
cp pvmgroups ../../bin/LINUX
cp libgpvm3.a ../../lib/LINUX
case xt in xt ) echo ranlib; ranlib ../../lib/LINUX/libgpvm3.a ;; esac
ranlib
cp pvmgs ../../lib/LINUX
make[3]: Leaving directory `/var/tmp/portage/scilab-4.0/work/scilab-4.0/pvm3/pvmgs/LINUX&apos;
done building group server and library
make[2]: Leaving directory `/var/tmp/portage/scilab-4.0/work/scilab-4.0/pvm3&apos;
make[1]: Leaving directory `/var/tmp/portage/scilab-4.0/work/scilab-4.0/pvm3&apos;
making all in routines/Javasci...
make[1]: Entering directory `/var/tmp/portage/scilab-4.0/work/scilab-4.0/routines/Javasci&apos;
make[2]: Entering directory `/var/tmp/portage/scilab-4.0/work/scilab-4.0/routines/Javasci/classes&apos;
make[2]: Leaving directory `/var/tmp/portage/scilab-4.0/work/scilab-4.0/routines/Javasci/classes&apos;
gcc -march=pentium4 -O3 -pipe -fomit-frame-pointer `pkg-config gtk+-2.0 --cflags` -I/opt/blackdown-jdk-1.4.2.03/include -I/opt/blackdown-jdk-1.4.2.03/include/linux   -c -o javasci_SciStringArray.o javasci_SciStringArray.c
gcc -march=pentium4 -O3 -pipe -fomit-frame-pointer `pkg-config gtk+-2.0 --cflags` -I/opt/blackdown-jdk-1.4.2.03/include -I/opt/blackdown-jdk-1.4.2.03/include/linux   -c -o javasci_globals.o javasci_globals.c
gcc -march=pentium4 -O3 -pipe -fomit-frame-pointer `pkg-config gtk+-2.0 --cflags` -I/opt/blackdown-jdk-1.4.2.03/include -I/opt/blackdown-jdk-1.4.2.03/include/linux   -c -o javasci_Scilab.o javasci_Scilab.c
gcc -march=pentium4 -O3 -pipe -fomit-frame-pointer `pkg-config gtk+-2.0 --cflags` -I/opt/blackdown-jdk-1.4.2.03/include -I/opt/blackdown-jdk-1.4.2.03/include/linux   -c -o javasci_SciDoubleArray.o javasci_SciDoubleArray.c
gcc -march=pentium4 -O3 -pipe -fomit-frame-pointer `pkg-config gtk+-2.0 --cflags` -I/opt/blackdown-jdk-1.4.2.03/include -I/opt/blackdown-jdk-1.4.2.03/include/linux   -c -o fix.o fix.c
Creation of ../../bin/libjavasci.so
linking
/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/../../../../i686-pc-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in object.
make[1]: Leaving directory `/var/tmp/portage/scilab-4.0/work/scilab-4.0/routines/Javasci&apos;
linking
/var/tmp/portage/scilab-4.0/work/scilab-4.0/pvm3/lib/LINUX/libpvm3.a(lpvmgen.o): In function `pvmlogperror&apos;:
lpvmgen.c:(.text+0x31a): warning: `sys_errlist&apos; is deprecated; use `strerror&apos; or `strerror_r&apos; instead
lpvmgen.c:(.text+0x311): warning: `sys_nerr&apos; is deprecated; use `strerror&apos; or `strerror_r&apos; instead
/var/tmp/portage/scilab-4.0/work/scilab-4.0/libs/system.a(scicurdir.o): In function `scigetcwd_&apos;:
scicurdir.c:(.text+0x84): warning: the `getwd&apos; function is dangerous and should not be used.
/var/tmp/portage/scilab-4.0/work/scilab-4.0/libs/os_specific.a(link.o): In function `CreateShared&apos;:
link.c:(.text+0x197): warning: the use of `mktemp&apos; is dangerous, better use `mkstemp&apos;
/usr/lib/libatlas.so.0: undefined reference to `pthread_create&apos;
/usr/lib/libatlas.so.0: undefined reference to `pthread_join&apos;
collect2: ld returned 1 exit status
make: *** [bin/scilex] Error 1

!!! ERROR: sci-mathematics/scilab-4.0 failed.
Call stack:
  ebuild.sh, line 1525:   Called dyn_compile
  ebuild.sh, line 928:   Called src_compile
  scilab-4.0.ebuild, line 85:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

Hope this helps

Paul

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gralves@gmail.com</who>
            <bug_when>2006-05-05 16:56:20 0000</bug_when>
            <thetext>It didn&apos;t work for me also:



===================================
g77   -c -o i_m_i.o i_m_i.f
g77   -c -o i_r_i.o i_r_i.f
g77   -c -o i_l_i.o i_l_i.f
g77   -c -o i_x_i.o i_x_i.f
g77   -c -o i_d_i.o i_d_i.f
g77   -c -o i_q_i.o i_q_i.f
g77   -c -o i_t.o i_t.f
g77   -c -o i_logic.o i_logic.f
g77   -c -o i_sum.o i_sum.f
g77   -c -o i_cumsum.o i_cumsum.f
g77   -c -o i_prod.o i_prod.f
g77   -c -o i_cumprod.o i_cumprod.f
g77   -c -o i_convert.o i_convert.f
g77   -c -o i_abs.o i_abs.f
g77   -c -o i_diag.o i_diag.f
g77   -c -o i_tril.o i_tril.f
g77   -c -o i_triu.o i_triu.f
g77   -c -o i_kron.o i_kron.f
g77   -c -o i_maxi.o i_maxi.f
i_maxi.f: In subroutine `i_maxi&apos;:
i_maxi.f:193: warning:
               call tpconv(iti,it,1,istk(lr1),1,s,1)
                    1
i_maxi.f:196: (continued):
               call tpconv(iti,it,m*n,istk(lr1),1,istk(lv),1)
                    2
Argument #6 of `tpconv&apos; is one type at (2) but is some other type at (1) [info -f g77 M GLOBALS]
g77   -c -o i_mini.o i_mini.f
i_mini.f: In subroutine `i_mini&apos;:
i_mini.f:193: warning:
               call tpconv(iti,it,1,istk(lr1),1,s,1)
                    1
i_mini.f:196: (continued):
               call tpconv(iti,it,m*n,istk(lr1),1,istk(lv),1)
                    2
Argument #6 of `tpconv&apos; is one type at (2) but is some other type at (1) [info -f g77 M GLOBALS]
g77   -c -o readxbm.o readxbm.f
g77   -c -o i_matrix.o i_matrix.f
Creation of ../../libs/int.a
make[2]: Saindo do diret</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gralves@gmail.com</who>
            <bug_when>2006-05-05 16:56:20 0000</bug_when>
            <thetext>It didn&apos;t work for me also:



===================================
g77   -c -o i_m_i.o i_m_i.f
g77   -c -o i_r_i.o i_r_i.f
g77   -c -o i_l_i.o i_l_i.f
g77   -c -o i_x_i.o i_x_i.f
g77   -c -o i_d_i.o i_d_i.f
g77   -c -o i_q_i.o i_q_i.f
g77   -c -o i_t.o i_t.f
g77   -c -o i_logic.o i_logic.f
g77   -c -o i_sum.o i_sum.f
g77   -c -o i_cumsum.o i_cumsum.f
g77   -c -o i_prod.o i_prod.f
g77   -c -o i_cumprod.o i_cumprod.f
g77   -c -o i_convert.o i_convert.f
g77   -c -o i_abs.o i_abs.f
g77   -c -o i_diag.o i_diag.f
g77   -c -o i_tril.o i_tril.f
g77   -c -o i_triu.o i_triu.f
g77   -c -o i_kron.o i_kron.f
g77   -c -o i_maxi.o i_maxi.f
i_maxi.f: In subroutine `i_maxi&apos;:
i_maxi.f:193: warning:
               call tpconv(iti,it,1,istk(lr1),1,s,1)
                    1
i_maxi.f:196: (continued):
               call tpconv(iti,it,m*n,istk(lr1),1,istk(lv),1)
                    2
Argument #6 of `tpconv&apos; is one type at (2) but is some other type at (1) [info -f g77 M GLOBALS]
g77   -c -o i_mini.o i_mini.f
i_mini.f: In subroutine `i_mini&apos;:
i_mini.f:193: warning:
               call tpconv(iti,it,1,istk(lr1),1,s,1)
                    1
i_mini.f:196: (continued):
               call tpconv(iti,it,m*n,istk(lr1),1,istk(lv),1)
                    2
Argument #6 of `tpconv&apos; is one type at (2) but is some other type at (1) [info -f g77 M GLOBALS]
g77   -c -o readxbm.o readxbm.f
g77   -c -o i_matrix.o i_matrix.f
Creation of ../../libs/int.a
make[2]: Saindo do diretório `/var/tmp/portage/scilab-4.0/work/scilab-4.0/routines/int&apos;
making all in routines/gtksci...
make[2]: Entrando no diretório `/var/tmp/portage/scilab-4.0/work/scilab-4.0/routines/gtksci&apos;
gcc -march=athlon64 -O2 -pipe `pkg-config gtk+-2.0 --cflags`      -c -o io.o io.c
gcc -march=athlon64 -O2 -pipe `pkg-config gtk+-2.0 --cflags`      -c -o menus.o menus.c
gcc -march=athlon64 -O2 -pipe `pkg-config gtk+-2.0 --cflags`      -c -o x_main.o x_main.c
gcc -march=athlon64 -O2 -pipe `pkg-config gtk+-2.0 --cflags`      -c -o about.o about.c
gcc -march=athlon64 -O2 -pipe `pkg-config gtk+-2.0 --cflags`      -c -o queue.o queue.c
gcc -march=athlon64 -O2 -pipe `pkg-config gtk+-2.0 --cflags`    `pkg-config libgtkhtml-2.0 --cflags` -c helpbrowser.c
In file included from helpbrowser.c:7:
helpbrowser-gtk2.c: In function `io_handler&apos;:
helpbrowser-gtk2.c:475: warning: passing arg 4 of `g_io_channel_read_chars&apos; from incompatible pointer type
helpbrowser-gtk2.c:491: warning: passing arg 4 of `g_io_channel_read_chars&apos; from incompatible pointer type
gcc -march=athlon64 -O2 -pipe `pkg-config gtk+-2.0 --cflags`      -c -o zzledt-rl.o zzledt-rl.c
Creation of ../../libs/gtksci.a
make[2]: Saindo do diretório `/var/tmp/portage/scilab-4.0/work/scilab-4.0/routines/gtksci&apos;
making all in routines/gzvt2...
make[2]: Entrando no diretório `/var/tmp/portage/scilab-4.0/work/scilab-4.0/routines/gzvt2&apos;
gcc -o ../../bin/zterm vte.c  `pkg-config vte gtk+-2.0 --cflags --libs`
make[2]: Saindo do diretório `/var/tmp/portage/scilab-4.0/work/scilab-4.0/routines/gzvt2&apos;
make[1]: Saindo do diretório `/var/tmp/portage/scilab-4.0/work/scilab-4.0/routines&apos;
linking
/var/tmp/portage/scilab-4.0/work/scilab-4.0/libs/system.a(scicurdir.o): In function `scigetcwd_&apos;:
scicurdir.c:(.text+0x94): warning: the `getwd&apos; function is dangerous and should not be used.
/var/tmp/portage/scilab-4.0/work/scilab-4.0/libs/os_specific.a(link.o): In function `CreateShared&apos;:
link.c:(.text+0x2e3): warning: the use of `mktemp&apos; is dangerous, better use `mkstemp&apos;
/usr/lib/libatlas.so.0: undefined reference to `pthread_create&apos;
/usr/lib/libatlas.so.0: undefined reference to `pthread_join&apos;
collect2: ld returned 1 exit status
make: ** [bin/scilex] Erro 1

!!! ERROR: sci-mathematics/scilab-4.0 failed.
Call stack:
  ebuild.sh, line 1525:   Called dyn_compile
  ebuild.sh, line 928:   Called src_compile
  scilab-4.0.ebuild, line 85:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
================================


==========einfo=================
Portage 2.1_pre10-r2 (default-linux/amd64/2006.0, gcc-3.4.6, glibc-2.4-r2, 2.6.15-gentoo-r8 x86_64)
=================================================================
System uname: 2.6.15-gentoo-r8 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+
Gentoo Base System version 1.12.0_pre19
ccache version 2.4 [enabled]
dev-lang/python:     2.4.3-r1
dev-util/ccache:     2.4-r1
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS=&quot;amd64 ~amd64&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;x86_64-pc-linux-gnu&quot;
CFLAGS=&quot;-march=athlon64 -O2 -pipe&quot;
CHOST=&quot;x86_64-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control&quot;
CONFIG_PROTECT_MASK=&quot;/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d&quot;
CXXFLAGS=&quot;-march=athlon64 -O2 -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoconfig buildpkg ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict&quot;
GENTOO_MIRRORS=&quot;http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo&quot;
LANG=&quot;pt_BR.UTF-8&quot;
LC_ALL=&quot;pt_BR.UTF-8&quot;
LINGUAS=&quot;en_US en pt_BR pt fr&quot;
MAKEOPTS=&quot;-j4&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;amd64 X aac alsa artworkextra avi bash-completion berkdb bitmap-fonts bzip2 cairo caps cdr cli crypt cscope cups dbus djvu dri dts dvd dvi editor eds effects emboss encode firefox flac foomaticdb fortran gaim gdb gif gimp glut gnome gphoto2 gpm graphviz gstreamer gtk gtk2 guile hal howl imlib inkjar ipv6 isdnlog java joystick jpeg jpeg2k libg++ libnotify logrotate lzw lzw-tiff mad mp3 mpeg music musicbrainz nautilus ncurses nls nptl nptlonly nsplugin offensive ogg opengl pam pcre pdflib perl pic png postgres ppds pppd python qt quicktime readline reflection scanner sdl session spell spl ssl svg tagwriting tcpd theora threads tiff timidity truetype-fonts type1 type1-fonts unicode usb userlocales visualization vorbis xorg xpm xv zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_en_US linguas_en linguas_pt_BR linguas_pt linguas_fr userland_GNU video_cards_fglrx video_cards_vesa&quot;
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS
=====================
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>markusle@gentoo.org</who>
            <bug_when>2006-05-06 20:44:14 0000</bug_when>
            <thetext>Created an attachment (id=86332)
second attempt for patch

Hi,

Thanks all for testing. Please give my second patch attempt a try. I&apos;ve
passed -lpthread specifically to the fortran linking step. Maybe that will
help.

Thanks,
Markus</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gralves@gmail.com</who>
            <bug_when>2006-05-07 14:58:15 0000</bug_when>
            <thetext>Now it compiled but failed to install :
============================================
make[2]: Saindo do diret</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gralves@gmail.com</who>
            <bug_when>2006-05-07 14:58:15 0000</bug_when>
            <thetext>Now it compiled but failed to install :
============================================
make[2]: Saindo do diretório `/var/tmp/portage/scilab-4.0/work/scilab-4.0/man/fr&apos;
make[1]: Saindo do diretório `/var/tmp/portage/scilab-4.0/work/scilab-4.0/man&apos;
&gt;&gt;&gt; Source compiled.
&gt;&gt;&gt; Test phase [not enabled]: sci-mathematics/scilab-4.0

&gt;&gt;&gt; Install scilab-4.0 into /var/tmp/portage/scilab-4.0/image/ category sci-mathematics
tar: pvm3/lib//pvmd3: Não é possível stat: Arquivo ou diretório não encontrado
tar: Saída por erro atrasada pelos erros anteriores
tar: pvm3/lib//pvmgs: Não é possível stat: Arquivo ou diretório não encontrado
tar: Saída por erro atrasada pelos erros anteriores
tar: pvm3/bin//*: Não é possível stat: Arquivo ou diretório não encontrado
tar: Saída por erro atrasada pelos erros anteriores
install -d /var/tmp/portage/scilab-4.0/image///usr/bin
rm -f  /var/tmp/portage/scilab-4.0/image///usr/bin/scilab
ln -fs /var/tmp/portage/scilab-4.0/image///usr/lib/scilab-4.0/bin/scilab /var/tmp/portage/scilab-4.0/image///usr/bin/scilab
rm -f  /var/tmp/portage/scilab-4.0/image///usr/bin/intersci
ln -fs /var/tmp/portage/scilab-4.0/image///usr/lib/scilab-4.0/bin/intersci /var/tmp/portage/scilab-4.0/image///usr/bin/intersci
rm -f  /var/tmp/portage/scilab-4.0/image///usr/bin/intersci-n
ln -fs /var/tmp/portage/scilab-4.0/image///usr/lib/scilab-4.0/bin/intersci-n /var/tmp/portage/scilab-4.0/image///usr/bin/intersci-n
/usr/local/portage/sci-mathematics/scilab/scilab-4.0.ebuild: line 93: /var/tmp/portage/scilab-4.0/image//usr/lib64/scilab-4.0/Path.incl: Arquivo ou diretório não encontrado
strip: &apos;/var/tmp/portage/scilab-4.0/image//usr/lib64/scilab-4.0/bin/scilex&apos;: No such file
sed: não foi possível ler /var/tmp/portage/scilab-4.0/image//usr/lib64/scilab-4.0/bin/Blpr: Arquivo ou diretório não encontrado

!!! ERROR: sci-mathematics/scilab-4.0 failed.
Call stack:
  ebuild.sh, line 1525:   Called dyn_install
  ebuild.sh, line 1002:   Called src_install
  scilab-4.0.ebuild, line 115:   Called die

!!! Failed to fix wrapper scripts
!!! If you need support, post the topmost build error, and the call stack if relevant.
============================</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>paulphilippe@yahoo.com</who>
            <bug_when>2006-05-07 17:34:49 0000</bug_when>
            <thetext>(In reply to comment #17)
&gt; Now it compiled but failed to install :
&gt; ============================================
&gt; make[2]: Saindo do diret</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>paulphilippe@yahoo.com</who>
            <bug_when>2006-05-07 17:34:49 0000</bug_when>
            <thetext>(In reply to comment #17)
&gt; Now it compiled but failed to install :
&gt; ============================================
&gt; make[2]: Saindo do diretório
&gt; `/var/tmp/portage/scilab-4.0/work/scilab-4.0/man/fr&apos;
&gt; make[1]: Saindo do diretório `/var/tmp/portage/scilab-4.0/work/scilab-4.0/man&apos;
&gt; &gt;&gt;&gt; Source compiled.
&gt; &gt;&gt;&gt; Test phase [not enabled]: sci-mathematics/scilab-4.0
&gt; 
&gt; &gt;&gt;&gt; Install scilab-4.0 into /var/tmp/portage/scilab-4.0/image/ category sci-mathematics
&gt; tar: pvm3/lib//pvmd3: Não é possível stat: Arquivo ou diretório não encontrado
&gt; tar: Saída por erro atrasada pelos erros anteriores
&gt; tar: pvm3/lib//pvmgs: Não é possível stat: Arquivo ou diretório não encontrado
&gt; tar: Saída por erro atrasada pelos erros anteriores
&gt; tar: pvm3/bin//*: Não é possível stat: Arquivo ou diretório não encontrado
&gt; tar: Saída por erro atrasada pelos erros anteriores
&gt; install -d /var/tmp/portage/scilab-4.0/image///usr/bin
&gt; rm -f  /var/tmp/portage/scilab-4.0/image///usr/bin/scilab
&gt; ln -fs /var/tmp/portage/scilab-4.0/image///usr/lib/scilab-4.0/bin/scilab
&gt; /var/tmp/portage/scilab-4.0/image///usr/bin/scilab
&gt; rm -f  /var/tmp/portage/scilab-4.0/image///usr/bin/intersci
&gt; ln -fs /var/tmp/portage/scilab-4.0/image///usr/lib/scilab-4.0/bin/intersci
&gt; /var/tmp/portage/scilab-4.0/image///usr/bin/intersci
&gt; rm -f  /var/tmp/portage/scilab-4.0/image///usr/bin/intersci-n
&gt; ln -fs /var/tmp/portage/scilab-4.0/image///usr/lib/scilab-4.0/bin/intersci-n
&gt; /var/tmp/portage/scilab-4.0/image///usr/bin/intersci-n
&gt; /usr/local/portage/sci-mathematics/scilab/scilab-4.0.ebuild: line 93:
&gt; /var/tmp/portage/scilab-4.0/image//usr/lib64/scilab-4.0/Path.incl: Arquivo ou
&gt; diretório não encontrado
&gt; strip: &apos;/var/tmp/portage/scilab-4.0/image//usr/lib64/scilab-4.0/bin/scilex&apos;: No
&gt; such file
&gt; sed: não foi possível ler
&gt; /var/tmp/portage/scilab-4.0/image//usr/lib64/scilab-4.0/bin/Blpr: Arquivo ou
&gt; diretório não encontrado
&gt; 
&gt; !!! ERROR: sci-mathematics/scilab-4.0 failed.
&gt; Call stack:
&gt;   ebuild.sh, line 1525:   Called dyn_install
&gt;   ebuild.sh, line 1002:   Called src_install
&gt;   scilab-4.0.ebuild, line 115:   Called die
&gt; 
&gt; !!! Failed to fix wrapper scripts
&gt; !!! If you need support, post the topmost build error, and the call stack if
&gt; relevant.
&gt; ============================
&gt; 

Hi,

   Actually I am having trouble applying the second patch. Markus, can you tell me the command to apply the patch?

Paul</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>markusle@gentoo.org</who>
            <bug_when>2006-05-08 05:13:52 0000</bug_when>
            <thetext>(In reply to comment #17)
&gt; Now it compiled but failed to install :

Thanks much for testing and at least partial success :) I&apos;ll have to look
into what&apos;s going wrong during your install (any chance you could
provide the error output in English, btw?).

@Paul:

To apply the patch cd into the directory with the scilab-4.0.ebuild. 
Then do a &quot;patch -p0 &lt; [path to scilab-4.0-ebuild-pthread.patch]&quot;.

Thanks,
Markus</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>paulphilippe@yahoo.com</who>
            <bug_when>2006-05-08 08:38:20 0000</bug_when>
            <thetext>(In reply to comment #19)
&gt; (In reply to comment #17)
&gt; &gt; Now it compiled but failed to install :
&gt; 
&gt; Thanks much for testing and at least partial success :) I&apos;ll have to look
&gt; into what&apos;s going wrong during your install (any chance you could
&gt; provide the error output in English, btw?).
&gt; 
&gt; @Paul:
&gt; 
&gt; To apply the patch cd into the directory with the scilab-4.0.ebuild. 
&gt; Then do a &quot;patch -p0 &lt; [path to scilab-4.0-ebuild-pthread.patch]&quot;.
&gt; 
&gt; Thanks,
&gt; Markus
&gt; 
 Hi,

    I couldn&apos;t apply the patch 

booyah scilab # patch -i scilab-4.0-ebuild-pthread.patch  scilab-4.0.ebuild
patching file scilab-4.0.ebuild
Hunk #1 FAILED at 64.
1 out of 1 hunk FAILED -- saving rejects to file scilab-4.0.ebuild.rej
booyah scilab #

Don&apos;t know exactly what&apos;s wrong but I couldn&apos;t get the patch applied.

Paul
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>markusle@gentoo.org</who>
            <bug_when>2006-05-08 15:36:50 0000</bug_when>
            <thetext>(In reply to comment #20)
&gt; Don&apos;t know exactly what&apos;s wrong but I couldn&apos;t get the patch applied.

Works fine here! Are you sure you&apos;re using the original scilab-4.0.ebuild
and not an already changed version? In any case, you could always change 
it by hand since it involves only 2 lines. Please let me know how that goes.

Best,
Markus</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gralves@gmail.com</who>
            <bug_when>2006-05-08 23:58:30 0000</bug_when>
            <thetext>(In reply to comment #19)
&gt; (In reply to comment #17)
&gt; &gt; Now it compiled but failed to install :
&gt; 
&gt; Thanks much for testing and at least partial success :) I&apos;ll have to look
&gt; into what&apos;s going wrong during your install (any chance you could
&gt; provide the error output in English, btw?).

Sorry... I am so used to see English+Portuguese output mixed together that I barely notice then anymore...
  Processing file TCL_GetVar.xml
dt=getdate(x) x must be &gt;0.
  Processing file TCL_SetVar.xml
dt=getdate(x) x must be &gt;0.
  Processing file TCL_CreateSlave.xml
dt=getdate(x) x must be &gt;0.
  Processing file TCL_ExistVar.xml
dt=getdate(x) x must be &gt;0.
  Processing file TCL_UnsetVar.xml
dt=getdate(x) x must be &gt;0.
  Processing file TCL_UpVar.xml
dt=getdate(x) x must be &gt;0.
  Processing file TK_EvalFile.xml
dt=getdate(x) x must be &gt;0.
  Processing file uicontrol.xml
dt=getdate(x) x must be &gt;0.
  Processing file TK_GetVar.xml
dt=getdate(x) x must be &gt;0.
  Processing file TK_SetVar.xml
dt=getdate(x) x must be &gt;0.
  Processing file TCL_GetVersion.xml
dt=getdate(x) x must be &gt;0.
  Processing file findobj.xml
dt=getdate(x) x must be &gt;0.
  Processing file uimenu.xml
dt=getdate(x) x must be &gt;0.
  Processing file close.xml
dt=getdate(x) x must be &gt;0.
  Processing file figure.xml
dt=getdate(x) x must be &gt;0.
Processing chapter /var/tmp/portage/scilab-4.0/work/scilab-4.0/man/fr/java
  Processing file SciDoubleArray.xml
dt=getdate(x) x must be &gt;0.
  Processing file SciDouble.xml
dt=getdate(x) x must be &gt;0.
  Processing file Scilab.xml
dt=getdate(x) x must be &gt;0.
  Processing file SciStringArray.xml
dt=getdate(x) x must be &gt;0.
  Processing file SciString.xml
dt=getdate(x) x must be &gt;0.
  Processing file javasci.xml
dt=getdate(x) x must be &gt;0.
Creating index.htm
Creating contents.htm
make[2]: Leaving directory `/var/tmp/portage/scilab-4.0/work/scilab-4.0/man/fr&apos;
make[1]: Leaving directory `/var/tmp/portage/scilab-4.0/work/scilab-4.0/man&apos;
&gt;&gt;&gt; Source compiled.
&gt;&gt;&gt; Test phase [not enabled]: sci-mathematics/scilab-4.0

&gt;&gt;&gt; Install scilab-4.0 into /var/tmp/portage/scilab-4.0/image/ category sci-mathematics
tar: pvm3/lib//pvmd3: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors
tar: pvm3/lib//pvmgs: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors
tar: pvm3/bin//*: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors
install -d /var/tmp/portage/scilab-4.0/image///usr/bin
rm -f  /var/tmp/portage/scilab-4.0/image///usr/bin/scilab
ln -fs /var/tmp/portage/scilab-4.0/image///usr/lib/scilab-4.0/bin/scilab /var/tmp/portage/scilab-4.0/image///usr/bin/scilab
rm -f  /var/tmp/portage/scilab-4.0/image///usr/bin/intersci
ln -fs /var/tmp/portage/scilab-4.0/image///usr/lib/scilab-4.0/bin/intersci /var/tmp/portage/scilab-4.0/image///usr/bin/intersci
rm -f  /var/tmp/portage/scilab-4.0/image///usr/bin/intersci-n
ln -fs /var/tmp/portage/scilab-4.0/image///usr/lib/scilab-4.0/bin/intersci-n /var/tmp/portage/scilab-4.0/image///usr/bin/intersci-n
/usr/local/portage/sci-mathematics/scilab/scilab-4.0.ebuild: line 93: /var/tmp/portage/scilab-4.0/image//usr/lib64/scilab-4.0/Path.incl: No such file or directory
strip: &apos;/var/tmp/portage/scilab-4.0/image//usr/lib64/scilab-4.0/bin/scilex&apos;: No such file
sed: can&apos;t read /var/tmp/portage/scilab-4.0/image//usr/lib64/scilab-4.0/bin/Blpr: No such file or directory

!!! ERROR: sci-mathematics/scilab-4.0 failed.
Call stack:
  ebuild.sh, line 1525:   Called dyn_install
  ebuild.sh, line 1002:   Called src_install
  scilab-4.0.ebuild, line 115:   Called die

!!! Failed to fix wrapper scripts
!!! If you need support, post the topmost build error, and the call stack if relevant.

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>paulphilippe@yahoo.com</who>
            <bug_when>2006-05-16 12:56:49 0000</bug_when>
            <thetext>(In reply to comment #21)
&gt; (In reply to comment #20)
&gt; &gt; Don&apos;t know exactly what&apos;s wrong but I couldn&apos;t get the patch applied.
&gt; 
&gt; Works fine here! Are you sure you&apos;re using the original scilab-4.0.ebuild
&gt; and not an already changed version? In any case, you could always change 
&gt; it by hand since it involves only 2 lines. Please let me know how that goes.
&gt; 
&gt; Best,
&gt; Markus
&gt; 

Hi, 

 Sorry for not replying earlier. It compiles fine now after re-syncing to obtain the original ebuild and applying the second patch. Now I&apos;ll test for functionality. 

Paul</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>markusle@gentoo.org</who>
            <bug_when>2006-06-01 15:25:10 0000</bug_when>
            <thetext>(In reply to comment #22)

Hi Gustavo,

Are you still seeing these issues with the present version
of scilab-4.0 in portage? 

Thanks,
Markus


</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gralves@gmail.com</who>
            <bug_when>2006-06-01 20:59:22 0000</bug_when>
            <thetext>(In reply to comment #24)
 
 I&apos;m having a different issue right now: with the update to gcc 4.1, scilab fails to find my fortran compiler. 

&gt; (In reply to comment #22)
&gt; 
&gt; Hi Gustavo,
&gt; 
&gt; Are you still seeing these issues with the present version
&gt; of scilab-4.0 in portage? 
&gt; 
&gt; Thanks,
&gt; Markus
&gt; 

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gralves@gmail.com</who>
            <bug_when>2006-06-01 21:06:28 0000</bug_when>
            <thetext>(In reply to comment #25)

My scilab troubles are reported at bug 135227.

&gt; (In reply to comment #24)
&gt; 
&gt;  I&apos;m having a different issue right now: with the update to gcc 4.1, scilab
&gt; fails to find my fortran compiler. 
&gt; 
&gt; &gt; (In reply to comment #22)
&gt; &gt; 
&gt; &gt; Hi Gustavo,
&gt; &gt; 
&gt; &gt; Are you still seeing these issues with the present version
&gt; &gt; of scilab-4.0 in portage? 
&gt; &gt; 
&gt; &gt; Thanks,
&gt; &gt; Markus
&gt; &gt; 
&gt; 

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dberkholz@gentoo.org</who>
            <bug_when>2006-06-21 07:59:29 0000</bug_when>
            <thetext>Can this be closed? The fix is in the tree.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gralves@gmail.com</who>
            <bug_when>2006-06-21 09:47:20 0000</bug_when>
            <thetext>I can&apos;t check this on my system since I have another scilab problem now. But if it works on other systems I think it is ok to close it.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>markusle@gentoo.org</who>
            <bug_when>2006-06-21 15:13:03 0000</bug_when>
            <thetext>I&apos;ll close this bug since it should be fixed. Hopefully I can have a look
at Gustavo&apos;s problem reported in bug 135227 soon.

Thanks,
Markus</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2006-06-24 14:51:47 0000</bug_when>
            <thetext>*** Bug 137877 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>86042</attachid>
            <date>2006-05-02 19:50 0000</date>
            <desc>small atlas compile test</desc>
            <filename>atlas_test.cpp</filename>
            <type>text/plain</type>
            <data encoding="base64">I2lmZGVmIF9fY3BsdXNwbHVzCmV4dGVybiAiQyIKI2VuZGlmIAoKY2hhciBBVExfeGVyYmxhICgp
OwoKaW50IG1haW4gKCkKewpBVExfeGVyYmxhICgpOwogIDsKICByZXR1cm4gMDsKfQo=
</data>        

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>86171</attachid>
            <date>2006-05-04 15:47 0000</date>
            <desc>patch to link against pthread</desc>
            <filename>scilab-4.0-ebuild-pthread.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIHNjaWxhYi00LjAuZWJ1aWxkCTIwMDYtMDUtMDQgMTc6MjA6MTAuMDAwMDAwMDAwIC0wNTAw
CisrKyBzY2lsYWItNC4wLmVidWlsZC5uZXcJMjAwNi0wNS0wNCAxNzoyMTowNy4wMDAwMDAwMDAg
LTA1MDAKQEAgLTY0LDcgKzY0LDcgQEAKIAogCXNlZCAtZSAiczpAQ0NfT1BUSU9OU0A6JHtDRkxB
R1N9OiIgXAogCQktZSAiczpARkNfT1BUSU9OU0A6JHtGRkxBR1N9OiIgXAotCQktZSAiczpATERf
TERGTEFHU0A6JExERkxBR1N9OiIgXAorCQktZSAiczpATERfTERGTEFHU0A6JHtMREZMQUdTfSAt
bHB0aHJlYWQ6IiBcCiAJCS1pIE1ha2VmaWxlLmluY2wuaW4gfHwgZGllICJGYWlsZWQgdG8gZml4
IE1ha2VmaWxlLmluY2wuaW4iCiB9CiAK
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>86332</attachid>
            <date>2006-05-06 20:44 0000</date>
            <desc>second attempt for patch</desc>
            <filename>scilab-4.0-ebuild-pthread.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIHNjaWxhYi00LjAuZWJ1aWxkCTIwMDYtMDUtMDYgMjI6Mzg6NTYuMDAwMDAwMDAwIC0wNTAw
CisrKyBzY2lsYWItNC4wLmVidWlsZC5uZXcJMjAwNi0wNS0wNiAyMjozOToxMy4wMDAwMDAwMDAg
LTA1MDAKQEAgLTY0LDcgKzY0LDggQEAKIAogCXNlZCAtZSAiczpAQ0NfT1BUSU9OU0A6JHtDRkxB
R1N9OiIgXAogCQktZSAiczpARkNfT1BUSU9OU0A6JHtGRkxBR1N9OiIgXAotCQktZSAiczpATERf
TERGTEFHU0A6JExERkxBR1N9OiIgXAorCQktZSAiczpATERfTERGTEFHU0A6JHtMREZMQUdTfToi
IFwKKwkJLWUgInM6QEZDX0xERkxBR1NAOiR7TERGTEFHU30gLWxwdGhyZWFkOiIgXAogCQktaSBN
YWtlZmlsZS5pbmNsLmluIHx8IGRpZSAiRmFpbGVkIHRvIGZpeCBNYWtlZmlsZS5pbmNsLmluIgog
fQogCg==
</data>        

          </attachment>
    </bug>

</bugzilla>