Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 235233 - app-admin/conky-1.6.1: Compilation error (missing stdio.h)
Summary: app-admin/conky-1.6.1: Compilation error (missing stdio.h)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: David Shakaryan (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-19 21:44 UTC by Gérald Masquelier
Modified: 2008-12-08 05:19 UTC (History)
1 user (show)

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


Attachments
build log (build.log,65.12 KB, text/plain)
2008-08-20 16:09 UTC, Gérald Masquelier
Details
result of a manual ./configure (config,8.90 KB, text/plain)
2008-08-20 16:51 UTC, Gérald Masquelier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gérald Masquelier 2008-08-19 21:44:37 UTC
I am unable to install conky with emerge. I have many errors as :
conky.c:8872: attention : incompatible implicit declaration of built-in function 'fprintf'
conky.c:8880: attention : incompatible implicit declaration of built-in function 'fprintf'
conky.c:8995: attention : incompatible implicit declaration of built-in function 'fprintf'
conky.c:9002: attention : incompatible implicit declaration of built-in function 'fprintf'
conky.c:9066: attention : incompatible implicit declaration of built-in function 'fprintf'


seem that sdtio.h is missing, but I am able to compil manualy the package !

Reproducible: Always

Steps to Reproduce:
To get the errors :
simply emerge conky version 1.6.1

I was able to compile whit these steps :
1. cd /var/tmp/portage/app-admin/conky-1.6.1/work/conky-1.6.1
2. ./configure
3. make



emerge --info
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Aucun fichier ou répertoire de ce type
Portage 2.1.4.4 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r8 i686)
=================================================================
System uname: 2.6.24-gentoo-r8 i686 Intel(R) Core(TM)2 Quad CPU Q9300 @ 2.50GHz
Timestamp of tree: Tue, 19 Aug 2008 20:04:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r13, 2.5.2-r6
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-r2
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r3
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-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-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"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles/ ftp://mirror.ovh.net/gentoo-distfiles/ ftp://gentoo.imj.fr/pub/gentoo/ ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ "
LANG="fr_FR@euro"
LC_ALL="fr_FR@euro"
LDFLAGS="-Wl,-O1"
LINGUAS="fr"
MAKEOPTS="-j5"
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/portage/local/layman/sunrise"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl alsa berkdb bzip2 cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread firefox fortran gdbm gnome gpm gtk hal iconv ipv6 isdnlog jpeg lm_sensors midi mp3 mudflap ncurses nls nptl nptlonly nvidia ogg openmp pam pcre perl pppd python readline reflection session spl ssl sysfs tcpd unicode vorbis win32codecs x86 xcomposite xorg xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 authn_alias authn_anon 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 deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-08-20 04:03:11 UTC
Those are no errors, but warnings (incidentally, what locale do you use?). Please attach the entire build log to this bug report.
Comment 2 Gérald Masquelier 2008-08-20 16:09:57 UTC
Created attachment 163398 [details]
build log

I have attached the build log...

Here are the most explicits errors that make me thinking that stdio.h isn't include :
conky.c:1565: erreur: 'stdin' undeclared (first use in this function)
conky.c:1649: erreur: 'stderr' undeclared (first use in this function)

My local are for French :# locale
LANG=fr_FR@euro
LC_CTYPE="fr_FR@euro"
LC_NUMERIC="fr_FR@euro"
LC_TIME="fr_FR@euro"
LC_COLLATE="fr_FR@euro"
LC_MONETARY="fr_FR@euro"
LC_MESSAGES="fr_FR@euro"
LC_PAPER="fr_FR@euro"
LC_NAME="fr_FR@euro"
LC_ADDRESS="fr_FR@euro"
LC_TELEPHONE="fr_FR@euro"
LC_MEASUREMENT="fr_FR@euro"
LC_IDENTIFICATION="fr_FR@euro"
LC_ALL=fr_FR@euro
Comment 3 Gérald Masquelier 2008-08-20 16:51:11 UTC
Created attachment 163400 [details]
result of a manual ./configure

I saw that the stdio.h s include by the configure script. The file I attached is the result of a manual ./configure in the /var/tmp/portage/app-admin/conky-1.6.1/work/conky-1.6.1 directory. There are differences with the emerge's one. I hope this will help.
Comment 4 Gérald Masquelier 2008-08-20 17:36:59 UTC
OK, I think I have found the problem.

The ebuild make this configure line :
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --enable-proc-uptime --enable-x11 --enable-double-buffer --enable-xdamage --enable-own-window --disable-xft --disable-audacious --disable-bmpx --disable-debug --disable-hddtemp --disable-mpd --disable-rss --disable-smapi --disable-wlan --disable-portmon --build=i686-pc-linux-gnu

And with this line, I have the same error manually. But when I supress the --disable-mpd option's, I am able to compile :
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --enable-proc-uptime --enable-x11 --enable-double-buffer --enable-xdamage --enable-own-window --disable-xft --disable-audacious --disable-bmpx --disable-debug --disable-hddtemp --disable-rss --disable-smapi --disable-wlan --disable-portmon --build=i686-pc-linux-gnu

And so, I had mpd in USE variable in my make.conf and then emerge is able to compile it ! But I don't understand why ! (MPD is the  Multiplayer Deamon isn't it ?).
Comment 5 David Shakaryan (RETIRED) gentoo-dev 2008-08-22 09:20:23 UTC
The mpd flag does indeed add support for music player status information, and related things. There were problems with the previous version with compiling conky with the flag disabled for some reason (at least on my side), however Brenden fixed these. I'm assuming it wasn't a complete fix or such, as it does not seem to work for you.

Hopefully Brenden may know what the problem would be? (He's CC'd by the way)
Comment 6 David Shakaryan (RETIRED) gentoo-dev 2008-12-08 05:19:37 UTC
Latest prerelease, do it.