Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 218885 - sys-devel/m4-1.4.11 tests fails on uclibc
Summary: sys-devel/m4-1.4.11 tests fails on uclibc
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-22 13:38 UTC by Aurélien Francillon
Modified: 2011-09-06 18:45 UTC (History)
1 user (show)

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


Attachments
test-fseeko.c (test-fseeko.c,1.74 KB, text/plain)
2008-04-22 13:40 UTC, Aurélien Francillon
Details
log-m4.txt (log-m4.txt,94.24 KB, text/plain)
2008-08-11 13:56 UTC, Aurélien Francillon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aurélien Francillon 2008-04-22 13:38:55 UTC
when emerging m4 on a uclibc based host tests fails on
test : "test-fseeko.sh"

test-fseeko fails on the last test in test-fseeko.c:

fseeko (stdin, (off_t) 0, SEEK_END)
feof (stdin) <- EOF is found (return value = 4  )

according to feof man page :
The function feof() tests the end-of-file indicator for the stream pointed to 
by stream, returning nonzero if it is set.

and fseek man page :
A successful call to the fseek() function clears the end-of-file indicator 
for the stream

so feof should return 0 as expected by this test ?
looks like the problem comes from the uclibc implementation of fseeko ?

Aurélien


Reproducible: Always




Portage 2.1.4.4 (uclibc/x86/hardened, gcc-3.4.6, uclibc-0.9.28.3-r2, 2.6.23-hardened-r9 i686)
=================================================================
System uname: 2.6.23-hardened-r9 i686 Pentium III (Coppermine)
Timestamp of tree: Tue, 22 Apr 2008 02:45:01 +0000
app-shells/bash:     3.2_p17-r1
dev-lang/python:     2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
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
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-uclibc"
CFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer -msse -mmmx"
CHOST="i686-pc-linux-uclibc"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer -msse -mmmx"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer nodoc noinfo noman sandbox sfperms strict test unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.proxad.net/mirrors/ftp.gentoo.org/"
MAKEOPTS="-j2"
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="/home/aurel/testingportage-hardeneduclibc"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="aalib apache2 audiofile berkdb bzip2 caps cdb chroot cli cracklib crypt curl dri dts expat ffmpeg gd gdbm ggi gmp hardened imagemagick imap ipv6 jpeg lcms libcaca libwww maildir mhash midi mmx mudflap ncurses no-htdocs ogg openmp pcre perl php pic pie png python readline reflection sasl session sftplogging snmp spl sse ssl tcpd tiff truetype uclibc uclibc-compat udev usb wmf x86 xml2 xorg xvid zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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" ELIBC="uclibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="dummy fbdev v4l"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Aurélien Francillon 2008-04-22 13:40:08 UTC
Created attachment 150592 [details]
test-fseeko.c
Comment 2 Luca Lesinigo 2008-08-11 09:49:33 UTC
There's a new snapshot of m4 that will probably became m4-1.4.12, you could try to see if the bug got fixed in it or report upstream before the new stable release:
Eric Blake wrote:

I have released a new snapshot from branch-1.4, and hope to release it as M4 1.4.12 in the near future.  This should fix many of the complaints about strtod and other test failures that were reported against 1.4.11.
However, it also introduces a new optional dependency on libsigsegv [1].
It also swaps the order of the two testsuites, so that the m4 tests are run prior to the gnulib tests.  Therefore I would appreciate some feedback before making the 1.4.12 release (if you encounter a testsuite failure in the m4 suite, please rerun with 'make -k check' before reporting it, so that the gnulib testsuite is also run).
[1]  http://www.gnu.org/software/libsigsegv/
http://home.comcast.net/~ericblake/m4-1.4.11.34-9ecd.tar.gz
http://home.comcast.net/~ericblake/m4-1.4.11.34-9ecd.tar.gz.asc
Comment 3 Aurélien Francillon 2008-08-11 13:56:19 UTC
Created attachment 162678 [details]
log-m4.txt

thanks for the comment, but it still fails, 
I'll see if i have time for reporting it upstream ...
Comment 4 Matt Turner gentoo-dev 2011-08-30 01:46:54 UTC
Still an issue with 1.4.15 or .16?