Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 242178 - sci-mathematics/scilab-4.1.2 fails to compile because of incompatible implicit declaration of built-in function 'strlen'
Summary: sci-mathematics/scilab-4.1.2 fails to compile because of incompatible implici...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Science Mathematics related packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-15 10:57 UTC by Juergen Rose
Modified: 2012-12-25 13:19 UTC (History)
0 users

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


Attachments
/var/tmp/portage/sci-mathematics/scilab-4.1.2-r1/temp/build.log (build.log,187.94 KB, text/plain)
2008-11-08 08:01 UTC, Juergen Rose
Details
proposed patch to disable building of hoster.c (scilab-4.1.2-disable-hoster.patch,889 bytes, patch)
2008-11-09 16:36 UTC, Markus Dittrich (RETIRED)
Details | Diff
new patch attempt to disable building of hoster (scilab-4.1.2-hoster.patch,7.92 KB, patch)
2009-08-03 13:11 UTC, Markus Dittrich (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Rose 2008-10-15 10:57:56 UTC
emerge scilab-4.1.2 fails with:

make[2]: Entering directory `/var/tmp/portage/sci-mathematics/scilab-4.1.2/work/scilab-4.1.2/pvm3'
building in src
cd src; ../lib/aimk CC=gcc F77=f77 install
making in BFLY/ for BFLY
make[3]: Entering directory `/var/tmp/portage/sci-mathematics/scilab-4.1.2/work/scilab-4.1.2/pvm3/src/BFLY'
mkdir ../../lib/BFLY
gcc -O -DCLUMP_ALLOC -DSTATISTICS -DTIMESTAMPLOG -DSANITY -I../../include -DARCHCLASS=\"BFLY\" -DIMA_BFLY -DNOUNIXDOM -c ../../src/ddpro.c
../../src/ddpro.c: In function 'addhosts':
../../src/ddpro.c:1024: warning: incompatible implicit declaration of built-in function 'strlen'
../../src/ddpro.c:1032: warning: incompatible implicit declaration of built-in function 'strcpy'
...
../../src/hoster.c:963: warning: incompatible implicit declaration of built-in function 'strlen'
make[3]: *** [hoster.o] Error 1


Reproducible: Always




root@deer:/root(153)# emerge --info
Portage 2.2_rc12 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.26-gentoo-r2 x86_64)
=================================================================
System uname: Linux-2.6.26-gentoo-r2-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9550_@_2.83GHz-with-glibc2.2.5
Timestamp of tree: Wed, 15 Oct 2008 09:00:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.4.4-r13, 2.5.2-r8
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.6.2
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.3.0-r1
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.26
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /et
c/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rul
es.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
FFLAGS="-march=nocona -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="de fr"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --
exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/science /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac acl acpi administrator afs aiglx alsa amd64 amrr ao aotuv apache2 asf atlas auctex audacious audiofile automount bash-completion beagl
e berkdb bjam blas bluetooth bonobo boo boost bzip2 c++ cairo cdda cddb cdf cdio cdparanoia cdr cgi chm cli corba cracklib cran crypt cups curl cxx daap db
us device-mapper dga dia divx djvu dlloader dmi dri ds3490 dv dvb dvd dvdr dvi dxr3 dynagraph eds effects elf emacs emboss encode epiphany esd evo examples
 exif expat extra fam fame ffmpeg fftw firefox fits flac fltk foomaticdb fortran fpx galago gd gdal gdbm geos gif gimp gimpprint ginac glade glitz gml gmp 
gnokii gnome gnuplot gnutls gphoto2 gpm graphics graphviz gs gsl gsm gstreamer gtk guile hal hardened hddtemp hdf hdf5 hlapi http hvm iconv icq icu id3 ima
gemagick imap innodb ipv6 irda irmc isdnlog ithreads jabber java jbig john jpeg jpeg2k kerberos kexi keyring ladspa lame lapack latex lcms ldap libffi libg
da libsamplerate lirc lm_sensors lua lzo lzw mad maildir math matroska midi mmx mmxext mng mod mono motif mozdevelop mozilla mozsvg mozxmlterm mp3 mp4 mp4l
ive mpeg mpeg2 mplayer mudflap multilib musicbrainz mysql mysqli nautilus ncurses neXt netcdf netpbm network networkmanager nfs nls nntp nptl nptlonly nspl
ugin ntfs numarray numeric nvidia obex ocaml octave odbc ogdi ogg ole opengl openmp pae pam pcre pda pdf perl plotutils plugins png posix postgres postscri
pt pppd preview-latex proj projectx pstricks python qhull quicktime readline reflection reiserfs rhythmbox rle rpc rrdcgi rrdtool samba sasl science sdl se
ssion slang slp smp sndfile snmp soup sox speex spell spl sqlite sse sse2 ssl stlport subtitles subversion suexec svg sysfs t1lib tcl tcpd tex theora threa
ds thunderbird tidy tiff tk truetype unicode userlocales utempter v4l2 vorbis wmf wxwindows xattr xemacs xext xine xml xmlreader xmlrpc xorg xpm xulrunner 
xv xvid xvmc zlib zvbi" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloa
t linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd aut
hn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate d
ir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy pro
xy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="key
board mouse               " KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de fr" USERLAND="GN
U" VIDEO_CARDS="nv nvidia vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Rafał Mużyło 2008-10-15 16:43:39 UTC
What you've posted is not the error (read it carefully),
post the lines with the error.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2008-10-15 19:16:38 UTC
Actually, better attach the entire build log. :)
Comment 3 Mike Auty (RETIRED) gentoo-dev 2008-10-22 13:07:49 UTC
I'm going to mark this as NEEDINFO, but please just reopen it once you've attached the build log...
Comment 4 Juergen Rose 2008-11-08 08:00:37 UTC
Now the compilation of scilab-4.1.2-r1 fails. I hope that I can provide complete information:
make[3]: Entering directory `/var/tmp/portage/sci-mathematics/scilab-4.1.2-r1/work/scilab-4.1.2/pvm3/src/BFLY'
mkdir ../../lib/BFLY
gcc -O -DCLUMP_ALLOC -DSTATISTICS -DTIMESTAMPLOG -DSANITY -I../../include -DARCHCLASS=\"BFLY\" -DIMA_BFLY -DNOUNIXDOM -c ../../src/ddpro.c
../../src/ddpro.c: In function 'addhosts':
../../src/ddpro.c:1024: warning: incompatible implicit declaration of built-in function 'strlen'
../../src/ddpro.c:1032: warning: incompatible implicit declaration of built-in function 'strcpy'
../../src/ddpro.c:1032: warning: incompatible implicit declaration of built-in function 'strlen'
../../src/ddpro.c: In function 'exectasks':
../../src/ddpro.c:1464: warning: incompatible implicit declaration of built-in function 'strlen'
../../src/ddpro.c:1465: warning: incompatible implicit declaration of built-in function 'strcpy'
../../src/ddpro.c:1489: warning: cast to pointer from integer of different size
../../src/ddpro.c: In function 'startack':
../../src/ddpro.c:2105: warning: incompatible implicit declaration of built-in function 'strcpy'
../../src/ddpro.c:2105: warning: incompatible implicit declaration of built-in function 'strlen'
../../src/ddpro.c: In function 'dm_taskout':
../../src/ddpro.c:2689: warning: incompatible implicit declaration of built-in function 'strlen'
gcc -O -DCLUMP_ALLOC -DSTATISTICS -DTIMESTAMPLOG -DSANITY -I../../include -DARCHCLASS=\"BFLY\" -DIMA_BFLY -DNOUNIXDOM -c ../../src/host.c
../../src/host.c: In function 'ht_insert':
../../src/host.c:534: warning: incompatible implicit declaration of built-in function 'strcpy'
../../src/host.c:534: warning: incompatible implicit declaration of built-in function 'strlen'
../../src/host.c:539: warning: incompatible implicit declaration of built-in function 'strcpy'
../../src/host.c:539: warning: incompatible implicit declaration of built-in function 'strlen'
../../src/host.c: In function 'applydefaults':
../../src/host.c:680: warning: incompatible implicit declaration of built-in function 'strcpy'
../../src/host.c:680: warning: incompatible implicit declaration of built-in function 'strlen'
../../src/host.c: In function 'parsehost':
../../src/host.c:740: warning: incompatible implicit declaration of built-in function 'strcpy'
../../src/host.c:740: warning: incompatible implicit declaration of built-in function 'strlen'
../../src/host.c:746: warning: incompatible implicit declaration of built-in function 'strcpy'
../../src/host.c:746: warning: incompatible implicit declaration of built-in function 'strlen'
../../src/host.c:752: warning: incompatible implicit declaration of built-in function 'strcpy'
../../src/host.c:752: warning: incompatible implicit declaration of built-in function 'strlen'
../../src/host.c:763: warning: incompatible implicit declaration of built-in function 'strcpy'
../../src/host.c:763: warning: incompatible implicit declaration of built-in function 'strlen'
../../src/host.c:769: warning: incompatible implicit declaration of built-in function 'strcpy'
../../src/host.c:769: warning: incompatible implicit declaration of built-in function 'strlen'
../../src/host.c:775: warning: incompatible implicit declaration of built-in function 'strcpy'
../../src/host.c:775: warning: incompatible implicit declaration of built-in function 'strlen'
../../src/host.c:781: warning: incompatible implicit declaration of built-in function 'strcpy'
../../src/host.c:781: warning: incompatible implicit declaration of built-in function 'strlen'
../../src/host.c:787: warning: incompatible implicit declaration of built-in function 'strcpy'
../../src/host.c:787: warning: incompatible implicit declaration of built-in function 'strlen'
../../src/host.c:798: warning: incompatible implicit declaration of built-in function 'strcpy'
../../src/host.c:798: warning: incompatible implicit declaration of built-in function 'strlen'
gcc -O -DCLUMP_ALLOC -DSTATISTICS -DTIMESTAMPLOG -DSANITY -I../../include -DARCHCLASS=\"BFLY\" -DIMA_BFLY -DNOUNIXDOM -c ../../src/hoster.c
../../src/hoster.c: In function 'hoster':
../../src/hoster.c:393: warning: incompatible implicit declaration of built-in function 'strcpy'
../../src/hoster.c:393: warning: incompatible implicit declaration of built-in function 'strlen'
../../src/hoster.c: In function 'pl_startup':
../../src/hoster.c:487: error: storage size of 'rfds' isn't known
../../src/hoster.c:571: warning: incompatible implicit declaration of built-in function 'strcpy'
../../src/hoster.c:571: warning: incompatible implicit declaration of built-in function 'strlen'
../../src/hoster.c:687: warning: incompatible implicit declaration of built-in function 'strcpy'
../../src/hoster.c:687: warning: incompatible implicit declaration of built-in function 'strlen'
../../src/hoster.c:748: warning: incompatible implicit declaration of built-in function 'strcpy'
../../src/hoster.c:748: warning: incompatible implicit declaration of built-in function 'strlen'
../../src/hoster.c: In function 'phase1':
../../src/hoster.c:818: warning: incompatible implicit declaration of built-in function 'strlen'
../../src/hoster.c:821: warning: incompatible implicit declaration of built-in function 'strcpy'
../../src/hoster.c:955: warning: incompatible implicit declaration of built-in function 'strlen'
../../src/hoster.c:963: warning: incompatible implicit declaration of built-in function 'strcpy'
../../src/hoster.c:963: warning: incompatible implicit declaration of built-in function 'strlen'
make[3]: *** [hoster.o] Error 1
Comment 5 Juergen Rose 2008-11-08 08:01:51 UTC
Created attachment 171076 [details]
/var/tmp/portage/sci-mathematics/scilab-4.1.2-r1/temp/build.log
Comment 6 Juergen Rose 2008-11-08 08:02:14 UTC
root@condor:/root(8)# emerge --info
Portage 2.2_rc13 (default-linux/amd64/2007.0, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.27.4 x86_64)
=================================================================
System uname: Linux-2.6.27.4-x86_64-Intel-R-_Core-TM-2_CPU_6600_@_2.40GHz-with-glibc2.2.5
Timestamp of tree: Sat, 08 Nov 2008 06:30:01 +0000
distcc 3.0 x86_64-pc-linux-gnu [disabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.4.4-r15, 2.5.2-r8
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.6.2
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.3.0-r1
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
FFLAGS="-march=nocona -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS=""
LINGUAS="de fr"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/science /usr/local/portage/layman/java-overlay /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac acl acpi administrator afs aiglx alsa amd64 amrr ao aotuv apache2 asf atlas auctex audacious audiofile automount bash-completion beagle berkdb bjam blas bluetooth bonobo boo boost bzip2 c++ cairo cdda cddb cdf cdio cdparanoia cdr cgi chm cli corba cracklib cran crypt cups curl cxx daap dbus device-mapper dga dia divx djvu dlloader dmi dri ds3490 dv dvb dvd dvdr dvi dxr3 dynagraph eds effects elf emacs emboss encode epiphany esd evo examples exif expat extra fam fame ffmpeg fftw firefox fits flac fltk foomaticdb fortran fpx galago gd gdal gdbm geos gif gimp gimpprint ginac glade glitz gml gmp gnokii gnome gnuplot gnutls gphoto2 gpm graphics graphviz gs gsl gsm gstreamer gtk guile hal hardened hddtemp hdf hdf5 hlapi http hvm iconv icq icu id3 imagemagick imap innodb ipv6 irda irmc isdnlog ithreads jabber java jbig john jpeg jpeg2k kde4 kerberos kexi keyring ladspa lame lapack latex lcms ldap libffi libgda libsamplerate lirc lm_sensors lua lzo lzw mad maildir math matroska midi mmx mmxext mng mod mono motif mozdevelop mozilla mozsvg mozxmlterm mp3 mp4 mp4live mpeg mpeg2 mplayer mudflap musicbrainz mysql mysqli nautilus ncurses neXt netcdf netpbm network networkmanager nfs nls nntp nptl nptlonly nsplugin ntfs numarray numeric nvidia obex ocaml octave odbc ogdi ogg ole opengl openmp pae pam pcre pda pdf perl plotutils plugins png posix postgres postscript pppd preview-latex proj projectx pstricks python qhull quicktime readline reflection reiserfs rhythmbox rle rpc rrdcgi rrdtool samba sasl science sdl session slang slp smp sndfile snmp soup sox speex spell spl sqlite sse sse2 ssl stlport subtitles subversion suexec svg sysfs t1lib tcl tcpd tex theora threads thunderbird tidy tiff tk truetype unicode userlocales utempter v4l2 vorbis wmf wxwindows xattr xcb xemacs xext xine xml xmlreader xmlrpc xorg xpm xulrunner xv xvid xvmc zlib zvbi" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" DVB_CARDS="cx8800 cx88xx tda1004x saa713" ELIBC="glibc" INPUT_DEVICES="keyboard mouse                " KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de fr" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 7 Markus Dittrich (RETIRED) gentoo-dev 2008-11-09 16:35:15 UTC
The main problem is indicated in this line

../../src/hoster.c:487: error: storage size of 'rfds' isn't know

Now, hoster shouldn't actually be built at all since it is just
a piece of sample code for demonstrating how to use pvmd. I am not sure
why your setup decides to build it. In any case, could you please
try the patch below and see if it is sufficient to disable
building of hoster.

Thanks,
Markus
Comment 8 Markus Dittrich (RETIRED) gentoo-dev 2008-11-09 16:36:49 UTC
Created attachment 171199 [details, diff]
proposed patch to disable building of hoster.c
Comment 9 Rafał Mużyło 2008-11-10 19:25:17 UTC
I'd say it's a glibc 2.8 -D_GNU_SOURCE problem.
Comment 10 Juergen Rose 2008-12-01 21:26:36 UTC
I tried the patch, but it did not help. 'emerge -vuD world' fails with:

[ebuild     U ] sci-mathematics/scilab-4.1.2-r1 [4.1.2] USE="Xaw3d gtk java ocaml -debug" 0 kB [0=>1]
...
 [1] /usr/local/portage
...
make[2]: Entering directory `/var/tmp/portage/sci-mathematics/scilab-4.1.2-r1/work/scilab-4.1.2/pvm3'
building in src
cd src; ../lib/aimk CC=gcc F77=f77 install
making in BFLY/ for BFLY
make[3]: Entering directory `/var/tmp/portage/sci-mathematics/scilab-4.1.2-r1/work/scilab-4.1.2/pvm3/src/BFLY'
mkdir ../../lib/BFLY
gcc -O -DCLUMP_ALLOC -DSTATISTICS -DTIMESTAMPLOG -DSANITY -I../../include -DARCHCLASS=\"BFLY\" -DIMA_BFLY -DNOUNIXDOM -c ../../src/ddpro
.c
../../src/ddpro.c: In function 'addhosts':
../../src/ddpro.c:1024: warning: incompatible implicit declaration of built-in function 'strlen'
../../src/ddpro.c:1032: warning: incompatible implicit declaration of built-in function 'strcpy'
...
gcc -O -DCLUMP_ALLOC -DSTATISTICS -DTIMESTAMPLOG -DSANITY -I../../include -DARCHCLASS=\"BFLY\" -DIMA_BFLY -DNOUNIXDOM -c ../../src/hoste
r.c
../../src/hoster.c: In function 'hoster':
../../src/hoster.c:393: warning: incompatible implicit declaration of built-in function 'strcpy'
../../src/hoster.c:393: warning: incompatible implicit declaration of built-in function 'strlen'
../../src/hoster.c: In function 'pl_startup':
../../src/hoster.c:487: error: storage size of 'rfds' isn't known
../../src/hoster.c:571: warning: incompatible implicit declaration of built-in function 'strcpy'
../../src/hoster.c:571: warning: incompatible implicit declaration of built-in function 'strlen'
../../src/hoster.c:687: warning: incompatible implicit declaration of built-in function 'strcpy'
../../src/hoster.c:687: warning: incompatible implicit declaration of built-in function 'strlen'
../../src/hoster.c:748: warning: incompatible implicit declaration of built-in function 'strcpy'
../../src/hoster.c:748: warning: incompatible implicit declaration of built-in function 'strlen'
../../src/hoster.c: In function 'phase1':
../../src/hoster.c:818: warning: incompatible implicit declaration of built-in function 'strlen'
../../src/hoster.c:821: warning: incompatible implicit declaration of built-in function 'strcpy'
../../src/hoster.c:955: warning: incompatible implicit declaration of built-in function 'strlen'
../../src/hoster.c:963: warning: incompatible implicit declaration of built-in function 'strcpy'
../../src/hoster.c:963: warning: incompatible implicit declaration of built-in function 'strlen'
make[3]: *** [hoster.o] Error 1
Comment 11 Juergen Rose 2009-01-13 09:53:50 UTC
Any news?
Comment 12 Rafał Mużyło 2009-01-21 19:52:43 UTC
Did you try my hint
(adding 'append-flags -D_GNU_SOURCE' - remember to inherit flag-o-matic) ?
Comment 13 Juergen Rose 2009-01-22 08:50:26 UTC
I added a line 
	append-flags -D_GNU_SOURCE
to src_compile() in scilab-4.1.2-r1.ebuild but it still fails with
make[3]: Entering directory `/var/tmp/portage/sci-mathematics/scilab-4.1.2-r1/work/scilab-4.1.2/pvm3/src/BFLY'
mkdir ../../lib/BFLY
...
gcc -O -DCLUMP_ALLOC -DSTATISTICS -DTIMESTAMPLOG -DSANITY -I../../include -DARCHCLASS=\"BFLY\" -DIMA_BFLY -DNOUNIXDOM -c ../../src/hoster.c
../../src/hoster.c: In function 'hoster':
../../src/hoster.c:393: warning: incompatible implicit declaration of built-in function 'strcpy'
../../src/hoster.c:393: warning: incompatible implicit declaration of built-in function 'strlen'
../../src/hoster.c: In function 'pl_startup':
../../src/hoster.c:487: error: storage size of 'rfds' isn't known
Comment 14 Juergen Rose 2009-01-22 09:05:42 UTC
I also tried to add the line export CFLAGS="${CFLAGS} -D_GNU_SOURCE" instead of append-flags -D_GNU_SOURCE
to src_compile but it fails with the same result.
Comment 15 Juergen Rose 2009-01-22 11:14:09 UTC
Perhaps this problem is also amd64 related. I just tried to emerge scilab-4.1.2-r1
at a i686 system and it works without problems, but it fails at all amd64 systems.
Comment 16 Rafał Mużyło 2009-02-03 18:48:04 UTC
Either you didn't do it correctly,
or a makefile needs to be fixed, cause that command line
still lacks '-D_GNU_SOURCE'.
Comment 17 Juergen Rose 2009-02-06 12:20:38 UTC
I tried once more. Under /usr/local/portage/sci-mathematics/scilab I have a scilab overlay. In /usr/local/portage/sci-mathematics/scilab/scilab-4.1.2-r1.ebuild in the function src_compile() I have a line

	append-flags -D_GNU_SOURCE

just before the econf line. If I call "emerge -vD scilab", I see the following output:

root@condor:/usr/local/portage/sci-mathematics/scilab(27)# emerge -vD scilab

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] sci-mathematics/scilab-4.1.2-r1 [4.1.2] USE="Xaw3d gtk java ocaml -debug" 0 kB [0=>1]

Total: 1 package (1 upgrade), Size of downloads: 0 kB
Portage tree and overlays:
 [0] /usr/portage
 [1] /usr/local/portage
...
gcc -O -DCLUMP_ALLOC -DSTATISTICS -DTIMESTAMPLOG -DSANITY -I../../include -DARCHCLASS=\"BFLY\" -DIMA_BFLY -DNOUNIXDOM -c ../../src/hoster.c
../../src/hoster.c: In function 'hoster':
../../src/hoster.c:393: warning: incompatible implicit declaration of built-in function 'strcpy'
../../src/hoster.c:393: warning: incompatible implicit declaration of built-in function 'strlen'
../../src/hoster.c: In function 'pl_startup':
../../src/hoster.c:487: error: storage size of 'rfds' isn't known

...
make[3]: *** [hoster.o] Error 1


I also added the scilab-4.1.2-disable-hoster.patch of Comment #8 to files directory and to ebuild, but it fails with the same result. 
Where I have exactly to put 'append-flags -D_GNU_SOURCE' ?
What means "inherit flag-o-matic" ?
It would be very good, if someone could post a working ebuild.

Regards 

Comment 18 Juergen Rose 2009-06-13 10:38:48 UTC
Any news?
Comment 19 Markus Dittrich (RETIRED) gentoo-dev 2009-08-03 13:11:14 UTC
Created attachment 200018 [details, diff]
new patch attempt to disable building of hoster

Could you please give this patch a try?

Thanks,
Markus
Comment 20 Juergen Rose 2009-08-25 09:06:05 UTC
The patch does not work for me. It still fails with the same error:
root@lynx:/usr/local/portage/sci-mathematics/scilab(60)# emerge -pvuDN world

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] sci-mathematics/scilab-4.1.2-r2 [4.1.2] USE="Xaw3d examples%* gtk java ocaml -debug" 0 kB [0=>1]
...
 [0] /usr/portage
 [1] /usr/local/portage
...
root@lynx:/usr/local/portage/sci-mathematics/scilab(61)# grep hoster /usr/local/portage/sci-mathematics/scilab/scilab-4.1.2-r2.ebuild 
        epatch "${FILESDIR}"/${P}-hoster.patch
root@lynx:/usr/local/portage/sci-mathematics/scilab(62)# ll /usr/local/portage/sci-mathematics/scilab/files/scilab-4.1.2-hoster.patch 
-rw-r--r-- 1 rose rose 8106 Aug  6 12:07 /usr/local/portage/sci-mathematics/scilab/files/scilab-4.1.2-hoster.patch

root@lynx:/usr/local/portage/sci-mathematics/scilab(63)# emerge -vuDN world
...
make[1]: Leaving directory `/var/tmp/portage/sci-mathematics/scilab-4.1.2-r2/work/scilab-4.1.2/routines'
making all in pvm3...
make[1]: Entering directory `/var/tmp/portage/sci-mathematics/scilab-4.1.2-r2/work/scilab-4.1.2/pvm3'
making in . for BFLY
make[2]: Entering directory `/var/tmp/portage/sci-mathematics/scilab-4.1.2-r2/work/scilab-4.1.2/pvm3'
building in src
cd src; ../lib/aimk CC=gcc F77=f77 install
making in BFLY/ for BFLY
make[3]: Entering directory `/var/tmp/portage/sci-mathematics/scilab-4.1.2-r2/work/scilab-4.1.2/pvm3/src/BFLY'
mkdir ../../lib/BFLY
gcc -O -DCLUMP_ALLOC -DSTATISTICS -DTIMESTAMPLOG -DSANITY -I../../include -DARCHCLASS=\"BFLY\" -DIMA_BFLY -DNOUNIXDOM -c ../../src/ddpro.c
../../src/ddpro.c: In function 'addhosts':
../../src/ddpro.c:1024: warning: incompatible implicit declaration of built-in function 'strlen'
../../src/ddpro.c:1032: warning: incompatible implicit declaration of built-in function 'strcpy'
../../src/ddpro.c:1032: warning: incompatible implicit declaration of built-in function 'strlen'
../../src/ddpro.c: In function 'exectasks':
Comment 21 Juergen Rose 2009-08-25 15:16:41 UTC
I missed to provide the error message in my last comment, it is:
gcc -O -DCLUMP_ALLOC -DSTATISTICS -DTIMESTAMPLOG -DSANITY -I../../include -DARCHCLASS=\"BFLY\" -DIMA_BFLY -DNOUNIXDOM -c ../../src/hoster.c
../../src/hoster.c: In function 'hoster':
../../src/hoster.c:393: warning: incompatible implicit declaration of built-in function 'strcpy'
../../src/hoster.c:393: warning: incompatible implicit declaration of built-in function 'strlen'
../../src/hoster.c: In function 'pl_startup':
../../src/hoster.c:487: error: storage size of 'rfds' isn't known
../../src/hoster.c:571: warning: incompatible implicit declaration of built-in function 'strcpy'
../../src/hoster.c:571: warning: incompatible implicit declaration of built-in function 'strlen'
../../src/hoster.c:687: warning: incompatible implicit declaration of built-in function 'strcpy'
../../src/hoster.c:687: warning: incompatible implicit declaration of built-in function 'strlen'
../../src/hoster.c:748: warning: incompatible implicit declaration of built-in function 'strcpy'
../../src/hoster.c:748: warning: incompatible implicit declaration of built-in function 'strlen'
../../src/hoster.c:581: error: invalid lvalue in asm output 0
../../src/hoster.c:585: error: invalid lvalue in asm output 0
../../src/hoster.c:636: error: memory input 2 is not directly addressable
../../src/hoster.c:674: error: memory input 2 is not directly addressable
../../src/hoster.c: In function 'phase1':
../../src/hoster.c:818: warning: incompatible implicit declaration of built-in function 'strlen'
../../src/hoster.c:821: warning: incompatible implicit declaration of built-in function 'strcpy'
../../src/hoster.c:955: warning: incompatible implicit declaration of built-in function 'strlen'
../../src/hoster.c:963: warning: incompatible implicit declaration of built-in function 'strcpy'
../../src/hoster.c:963: warning: incompatible implicit declaration of built-in function 'strlen'
../../src/hoster.c:954: warning: ignoring return value of 'write', declared with attribute warn_unused_result
../../src/hoster.c:955: warning: ignoring return value of 'write', declared with attribute warn_unused_result
../../src/hoster.c:956: warning: ignoring return value of 'write', declared with attribute warn_unused_result
make[3]: *** [hoster.o] Error 1
Comment 22 Pacho Ramos gentoo-dev 2012-12-25 13:19:12 UTC
dropped from the tree, use sci overlay versions instead