Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 74881 - x11-misc/xosview-1.8.2 fails to compile
Summary: x11-misc/xosview-1.8.2 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Desktop Misc. Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-18 13:57 UTC by Patrick Lauer
Modified: 2005-04-20 03:03 UTC (History)
4 users (show)

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


Attachments
config.log (config.log,28.68 KB, text/plain)
2005-01-26 12:55 UTC, Ricardo Cordeiro
Details
config.log (config.log,22.80 KB, text/plain)
2005-01-26 13:31 UTC, Gustavo Felisberto (RETIRED)
Details
xosview-1.8.2's patch (xosview-1.8.2.ebuild.diff,357 bytes, patch)
2005-03-09 07:01 UTC, Park Ji-in
Details | Diff
xosview-emptyxpaths.patch (xosview-emptyxpaths.patch,1.82 KB, patch)
2005-04-20 02:12 UTC, Harald van Dijk (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Lauer gentoo-dev 2004-12-18 13:57:54 UTC
In file included from /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/include/g++-v3/cstdio:52,
                 from /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/include/g++-v3/i686-pc-linux-gnu/bits/c++locale.h:42,
                 from /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/include/g++-v3/iosfwd:46,
                 from /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/include/g++-v3/ios:44,
                 from /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/include/g++-v3/ostream:45,
                 from /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/include/g++-v3/iostream:45,
                 from xwin.h:13,
                 from xwin.cc:10:
/usr/include/stdio.h:355: error: declaration of C function `int snprintf(char*, size_t, const char*, ...)' conflicts with
snprintf.h:5: error: previous declaration `int snprintf(char*, int, const char*, ...)' here
make: *** [xwin.o] Error 1
i686-pc-linux-gnu-g++ -O2 -march=athlon-xp -fomit-frame-pointer -O2 -march=athlon-xp -fomit-frame-pointer -Wall -O4 -I/usr/X11R6/include -DXOSVIEW_VERSION=\"1.8.2\" -I/var/tmp/portage/xosview-1.8.2/work/xosview-1.8.2 -I/var/tmp/portage/xosview-1.8.2/work/xosview-1.8.2/linux -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_BOOL=1 -DLONG_LONG=long\ long -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_IOSTREAM=1 -DHAVE_FSTREAM=1 -DGNULIBC=1 -DUSESYSCALLS=1  -O2 -march=athlon-xp -fomit-frame-pointer -Wall -O4 -I/usr/X11R6/include -DXOSVIEW_VERSION=\"1.8.2\" -I/var/tmp/portage/xosview-1.8.2/work/xosview-1.8.2 -I/var/tmp/portage/xosview-1.8.2/work/xosview-1.8.2/linux -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_BOOL=1 -DLONG_LONG=long\ long -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_IOSTREAM=1 -DHAVE_FSTREAM=1 -DGNULIBC=1 -DUSESYSCALLS=1  -I..  -c MeterMaker.cc -o MeterMaker.o
make: *** Waiting for unfinished jobs....
i686-pc-linux-gnu-g++ -O2 -march=athlon-xp -fomit-frame-pointer -O2 -march=athlon-xp -fomit-frame-pointer -Wall -O4 -I/usr/X11R6/include -DXOSVIEW_VERSION=\"1.8.2\" -I/var/tmp/portage/xosview-1.8.2/work/xosview-1.8.2 -I/var/tmp/portage/xosview-1.8.2/work/xosview-1.8.2/linux -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_BOOL=1 -DLONG_LONG=long\ long -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_IOSTREAM=1 -DHAVE_FSTREAM=1 -DGNULIBC=1 -DUSESYSCALLS=1  -O2 -march=athlon-xp -fomit-frame-pointer -Wall -O4 -I/usr/X11R6/include -DXOSVIEW_VERSION=\"1.8.2\" -I/var/tmp/portage/xosview-1.8.2/work/xosview-1.8.2 -I/var/tmp/portage/xosview-1.8.2/work/xosview-1.8.2/linux -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_BOOL=1 -DLONG_LONG=long\ long -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_IOSTREAM=1 -DHAVE_FSTREAM=1 -DGNULIBC=1 -DUSESYSCALLS=1  -I..  -c serialmeter.cc -o serialmeter.o
ar cvr libmeter.a cpumeter.o memmeter.o swapmeter.o pagemeter.o netmeter.o nfsmeter.o intmeter.o loadmeter.o btrymeter.o diskmeter.o raidmeter.o lmstemp.o MeterMaker.o serialmeter.o
a - cpumeter.o
a - memmeter.o
a - swapmeter.o
a - pagemeter.o
a - netmeter.o
a - nfsmeter.o
a - intmeter.o
a - loadmeter.o
a - btrymeter.o
a - diskmeter.o
a - raidmeter.o
a - lmstemp.o
a - MeterMaker.o
a - serialmeter.o
i686-pc-linux-gnu-ranlib libmeter.a
make[1]: Leaving directory `/var/tmp/portage/xosview-1.8.2/work/xosview-1.8.2/linux'

!!! ERROR: x11-misc/xosview-1.8.2 failed.


Reproducible: Always
Steps to Reproduce:
1.emerge xosview
2. ???
3. profit




Portage 2.0.51-r8 (default-linux/x86/2004.3, gcc-vanilla,
glibc-2.3.4.20041102-r0, 2.6.9 i686)
=================================================================
System uname: 2.6.9 i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Dec 17 2004, 15:11:51)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.3
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r2
virtual/os-headers:  2.6.8.1-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/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/share/config
/usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache cvs distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo 
http://gentoo.inode.at/ ftp://gentoo.inode.at/source/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowex X aac aalib acpi alsa apache2 apm arts audiofile avi
bash-completion berkdb bidi bigger-fonts bitmap-fonts bzlib cdr chroot cjk cross
crypt css cups curl curlwrappers dbm dga directfb divx4linux doc dvd dvdr
dvdread edl encode erandom esd ethereal exif f77 faac faad flac flexresp flood
font-server foomaticdb fortran freetype ftp gd gdbm gif gimp glep gmp gmttria
gpm gtk2 hardenedphp iconv icq imlib inifile ipv6 jabber java jpeg jpeg2k junit
kde ldap libcaca libg++ libwww live lzo mad makecheck mikmod mime mmx mmx2 mng
monkey motif mozsvg mozxmlterm mp3 mpeg mpeg4 mpi mplayer mysql mysqli
nagios-dns nagios-ntp nagios-ping nagios-ssh ncurses network nls no-old-linux
nptl ntlm nvidia offensive oggvorbis openal opengl oss pam parse-clocks pcre pdf
pdflib pear-db perl png prelude print pvm python qemu-fast qt quicktime readline
real recode rtc sdl skey slang slp smime sndfile sockets spell sse ssl svg svga
tcltk tcpd tcpmd5 tetex tga theora threads tidy tiff truetype truetype-fonts
type1 type1-fonts usb vhosts x86 xml xml2 xmlrpc xmms xprint xv xvid xvmc yv12
zeo zlib"
Comment 1 Paul Varner (RETIRED) gentoo-dev 2004-12-22 21:17:47 UTC
I get the same error.  I was able to work around it by adding -DHAVE_SNPRINTF=1 to my CFLAGS/CXXFLAGS in make.conf.  The following is my emerge info:

Portage 2.0.51-r8 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20041102-r0, 2.6.9-gentoo-r6 i686)
=================================================================
System uname: 2.6.9-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 1.80GHz
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Aug 14 2004, 15:43:12)]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.5, 1.8.5-r2, 1.9.3, 1.6.3, 1.7.9, 1.4_p6
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r2
virtual/os-headers:  2.6.8.1-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/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/share/config /usr/lib/X11/xkb /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks fixpackages sandbox sfperms"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/ http://gentoo.osuosl.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 X acpi alsa apache2 arts artswrappersuid audiofile avi berkdb bitmap-fonts cdr crypt cups dvd encode fam fbcon flac foomaticdb fortran gdbm gif gpm gtk gtk2 imagemagick imlib java javascript jpeg kde libwww mad maildir mikmod mmx motif mozilla moznocompose moznoirc moznomail mpeg ncurses nls nptl oggvorbis opengl pam pda pdflib perl pngppds python qt quicktime readline samba sasl sdl spell sqlite sse ssl tcltk tcpd tiff truetype usb xml2 xmms xv zlib linguas_en"
Comment 2 Patrick Lauer gentoo-dev 2005-01-10 10:40:56 UTC
can't reproduce anymore. closing.
Comment 3 Paul Varner (RETIRED) gentoo-dev 2005-01-10 15:56:03 UTC
It is still a problem here.
Comment 4 Patrick Lauer gentoo-dev 2005-01-26 12:24:30 UTC
I have seen this error reproduced. Reopening in the hope of it getting fixed.
Error seems to be limited to x86 systems a.t.m, ~x86 works
Comment 5 Ricardo Cordeiro 2005-01-26 12:50:27 UTC
I have the same problem. From what I can tell, the problem is a redeclaration of the snprintf function on file /var/tmp/portage/xosview-1.8.2/work/xosview-1.8.2/snprintf.h conflicting with stdio.h.

(compilation output)
--------------------------------------------------------
i686-pc-linux-gnu-g++ -O3 -mmmx -msse2 -mfpmath=sse,387 -march=pentium4 -pipe -fomit-frame-pointer -O3 -mmmx -msse2 -mfpmath=sse,387 -march=pentium4 -pipe -fomit-frame-pointer -Wall -O4 -I/usr/X11R6/include -DXOSVIEW_VERSION=\"1.8.2\" -I/var/tmp/portage/xosview-1.8.2/work/xosview-1.8.2 -I/var/tmp/portage/xosview-1.8.2/work/xosview-1.8.2/linux -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_BOOL=1 -DLONG_LONG=long\ long -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_IOSTREAM=1 -DHAVE_FSTREAM=1 -DGNULIBC=1 -DUSESYSCALLS=1   -c Xrm.cc -o Xrm.o
In file included from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/include/g++-v3/cstdio:52,
                 from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/include/g++-v3/i686-pc-linux-gnu/bits/c++io.h:35,
                 from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/include/g++-v3/bits/fpos.h:44,
                 from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/include/g++-v3/iosfwd:49,
                 from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/include/g++-v3/ios:44,
                 from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/include/g++-v3/ostream:45,
                 from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/include/g++-v3/iostream:45,
                 from xwin.h:13,
                 from xwin.cc:10:
/usr/include/stdio.h:353: error: declaration of C function `int snprintf(char*, 
   unsigned int, const char*, ...)' conflicts with
snprintf.h:5: error: previous declaration `int snprintf(char*, int, const 
   char*, ...)' here
make: *** [xwin.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from Xrm.cc:20:
snprintf.h:5: error: declaration of C function `int snprintf(char*, int, const 
   char*, ...)' conflicts with
/usr/include/stdio.h:353: error: previous declaration `int snprintf(char*, 
   unsigned int, const char*, ...)' here
make: *** [Xrm.o] Error 1
--------------------------------------------------------


./snprintf.h has the following

--------------------------------------------------------
#ifndef snprintf_h
#define snprintf_h

#ifndef HAVE_SNPRINTF
extern "C" int snprintf ( char *str, int n, const char *format, ...);
#else
#include <stdio.h>
#endif

#endif
--------------------------------------------------------


So I think the problem is configure not finding snprintf

--------------------------------------------------------
disabled automatic dependencies by default
checking for snprintf... no
checking how to run the C++ preprocessor... i686-pc-linux-gnu-g++ -E
--------------------------------------------------------


Here's the complete output of configure:

--------------------------------------------------------
 * econf: updating xosview-1.8.2/config/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating xosview-1.8.2/config/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for i686-pc-linux-gnu-g++... i686-pc-linux-gnu-g++
checking for C++ compiler default output... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether i686-pc-linux-gnu-g++ accepts -g... yes
checking whether i686-pc-linux-gnu-g++ supports bool types... yes
checking whether i686-pc-linux-gnu-g++ supports long long types... yes
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking whether we are using the GNU C compiler... yes
checking whether i686-pc-linux-gnu-gcc accepts -g... yes
checking for i686-pc-linux-gnu-gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... i686-pc-linux-gnu-gcc -E
checking for X... libraries , headers /usr/X11R6/include
checking for a BSD-compatible install... /bin/install -c
checking for gawk... gawk
checking for i686-pc-linux-gnu-ranlib... no
checking for ranlib... ranlib
disabled automatic dependencies by default
checking for snprintf... no
checking how to run the C++ preprocessor... i686-pc-linux-gnu-g++ -E
checking for egrep... grep -E
checking for ANSI C header files... no
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking iostream usability... yes
checking iostream presence... yes
checking for iostream... yes
checking fstream usability... yes
checking fstream presence... yes
checking for fstream... yes
checking X11/xpm.h usability... yes
checking X11/xpm.h presence... yes
checking for X11/xpm.h... yes
checking for XpmCreateImageFromData in -lXpm... no
enabled  Linux system calls by default
disabled the Linux 2.6 memstat module by default
checking for usleep... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating linux/Makefile
config.status: creating Makefile.config
config.status: creating Makefile.GNU.autodep
config.status: creating Xdefaults
config.status: creating linux/memstat/Makefile
--------------------------------------------------------


I looked into config.log and found the test for snprintf

--------------------------------------------------------
configure:3459: checking for snprintf
configure:3509: i686-pc-linux-gnu-gcc -o conftest -O3 -mmmx -msse2 -mfpmath=sse,387 -march=pentium4 -pipe -fomit-frame-pointer   conftest.c -L  >&5
i686-pc-linux-gnu-gcc: argument to `-L' is missing
configure:3512: $? = 1
configure: failed program was:
| #line 3464 "configure"
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #ifdef __cplusplus
| #include <stdlib.h>
| #endif
| #define HAVE_BOOL 1
| #define LONG_LONG long long
| /* end confdefs.h.  */
| /* System header to define __stub macros and hopefully few prototypes,
|     which can conflict with char snprintf (); below.
|     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|     <limits.h> exists even on freestanding compilers.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| /* Override any gcc2 internal prototype to avoid an error.  */
| #ifdef __cplusplus
| extern "C"
| {
| #endif
| /* We use char because int might match the return type of a gcc2
|    builtin and then its argument prototype would still apply.  */
| char snprintf ();
| /* The GNU C library defines this for functions which it implements
|     to always fail with ENOSYS.  Some functions are actually named
|     something starting with __ and the normal name is an alias.  */
| #if defined (__stub_snprintf) || defined (__stub___snprintf)
| choke me
| #else
| char (*f) () = snprintf;
| #endif
| #ifdef __cplusplus
| }
| #endif
| 
| int
| main ()
| {
| return f != snprintf;
|   ;
|   return 0;
| }
configure:3529: result: no
--------------------------------------------------------


Shouldn't it had to include <stdio.h> along with stdlib.h?

Here's some info about my system:

--------------------------------------------------------
Portage 2.0.51-r15 (default-linux/x86/2004.0, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r6 i686)
=================================================================
System uname: 2.6.10-gentoo-r6 i686 Intel(R) Pentium(R) M processor 1400MHz
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Jan 20 2005, 11:34:43)]
ccache version 2.3 [enabled]    
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r3
virtual/os-headers:  2.4.21-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -mmmx -msse2 -mfpmath=sse,387 -march=pentium4 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/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/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -mmmx -msse2 -mfpmath=sse,387 -march=pentium4 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig buildpkg ccache distcc distlocks noauto sandbox sfperms userpriv usersandbox"
GENTOO_MIRRORS=" http://193.136.191.98/mirrors/gentoo ftp://ftp.rnl.ist.utl.pt/pub/gentoo ftp://mirrors1.netvisao.pt/gentoo http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://ftp.rnl.ist.utl.pt/gentoo-portage"
USE="x86 X acpi aim alsa apache2 apm app-editors/vim:vim-with-x arts avi berkdb bitmap-fonts bonobo bzlib cdr crypt cups dga divx4linux doc dvd dvdr encode esd f77 fam fbcon font-server foomaticdb fortran gdbm gif gnome gphoto2 gpm gtk gtk2 gtkhtml guile icq imagemagick imlib ipv6 java jpeg junit libg++ libwww mad mikmod mmx motif mozilla mozsvg mpeg msn mysql nas ncurses net-misc/openssh:chroot net-www/links:javascripti nls oggvorbis opengl oscar oss pam pcmcia pdflib perl php pic pie png pnp posix python qt quicktime readline ruby samba sdl session shared sharedmem slang snmp sockets spell sse ssl svga sys-libs/glibc:erandom sys-libs/glibc:makecheck sys-libs/glibc:nptl tcltk tcpd tetex tiff truetype truetype-fonts trusted type1-fonts unicode usb x11-base/xfree-drm:radeon x11-misc/xscreensaver:offensive xine xinerama xml xml2 xmms xv xvid yahoo zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LDFLAGS
--------------------------------------------------------


/etc/portage/package.keywords
--------------------------------------------------------
=x11-libs/cairo-0.2.0 ~x86
=media-libs/libpixman-0.1.2 ~x86
=x11-libs/cairo-0.2.0 ~x86
sys-kernel/mm-sources ~x86
net-wireless/wpa_supplicant ~x86
app-emulation/cedega ~x86
net-mail/freepops ~x86
net-im/skype ~x86
sys-fs/squashfs-tools ~x86
xfce-extra/xfce4-fsguard ~x86
xfce-extra/xfce4-diskperf ~x86
xfce-extra/terminal ~x86
xfce-extra/exo ~x86
=media-video/ati-drivers-8.8.25-r3 -* ~x86
--------------------------------------------------------

appending -DHAVE_SNPRINTF=1 to CFLAGS, solves the problem.

I think the problem might be on the configure. Something might have gone wrong before testing for snprintf. Maybe the test program is different on machines that don't exibit this problem.

Any thoughts?
Comment 6 Ricardo Cordeiro 2005-01-26 12:55:02 UTC
Created attachment 49590 [details]
config.log

config.log, might be helpfull...

By the way, thanks to meka (from #gentoo-pt) for helping me workaround this
problem. :)
Comment 7 Gustavo Felisberto (RETIRED) gentoo-dev 2005-01-26 13:31:16 UTC
Created attachment 49597 [details]
config.log

I managed to build this ok, i was asked on irc to upload this.
Comment 8 Park Ji-in 2005-03-09 07:01:07 UTC
Created attachment 53014 [details, diff]
xosview-1.8.2's patch

changed ebuild which build success.
I think it's autoconf's bug, however this could be workaround for
even xorg and Xfree86.
Comment 9 Digby Russell Simon Tarvin 2005-03-21 06:48:02 UTC
I happened to fall over this bug as my very first attempt to emerge after
initial install - I wanted to check that my SMP was working.. :-/

I did some investigating before I got into bugzilla and found the following:

The immediate problem problem is a conflict between the declarations of
the snprintf function as follows:
 /usr/include/stdio.h:353:`int snprintf(char*, unsigned int, const char*, ...)'
             snprintf.h:5:`int snprintf(char*,          int, const char*, ...)'
 
This second definition should be excluded by a
    #ifndef HAVE_SNPRINTF
in the application header file, but is not because of a snafu in autoconf
failing to detect an extant version:
  checking for snprintf... no
 
The check is instigated by the line
   AC_CHECK_FUNCS(snprintf)
in the file:
   /var/tmp/portage/xosview-1.8.2/work/xosview-1.8.2/config/configure.in
which is used to generate the 'configure' script.

The incorrect conclusion seems to result from a compilation failure of
the test code resulting from a -L option not followed by a library directory:
  configure:3459: checking for snprintf
  configure:3509: gcc -o conftest -g -O2   conftest.c -L  >&5
  gcc: argument to `-L' is missing
  configure:3512: $? = 1
This in turn seems to result from 'x_libraries' being set to "" in
the configure script.

A workaround is to replace the line:
    LIBS="-L$x_libraries $LIBS"
in 'config/configure.in' with
    LIBS="$LIBS"
which allows things to build normally.

After this, typeing 'make' in the config directory builds a new '../configure'
Then to complete the install
    cd ..
    make
    make install
For some reason this leaves the man page as the only entry in the directory
'/usr/X11R6/man/man1/xosview.1', which does not seem to be searched by man.
Consequently, this needs to be moved as follows:
    mv /usr/X11R6/man/man1/xosview.1 /usr/share/man/man1
    rm -r /usr/X11R6/man

Hope that helps someone debug the configure script..

Comment 10 Harald van Dijk (RETIRED) gentoo-dev 2005-04-20 02:12:00 UTC
Created attachment 56737 [details, diff]
xosview-emptyxpaths.patch

The configure script already attempts to handle empty paths by setting them to
. but it does this only after it uses them. This patch fixes that by moving it
up a bit, and it shouldn't break anything on systems that don't need this.
Comment 11 Harald van Dijk (RETIRED) gentoo-dev 2005-04-20 03:03:38 UTC
Got the okay to add it, and done.