Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 250994 - conky-1.6.2_pre1321 fails to compile because storage size of 'he' isn't known
Summary: conky-1.6.2_pre1321 fails to compile because storage size of 'he' isn't known
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: David Shakaryan (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-15 08:13 UTC by Juergen Rose
Modified: 2008-12-23 09:18 UTC (History)
8 users (show)

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


Attachments
PPC32 emerge --info (same problem) (emerge_info,3.71 KB, text/plain)
2008-12-15 10:18 UTC, Mike Hammill
Details
emerge error output on x86 (output.txt,15.14 KB, text/plain)
2008-12-19 15:14 UTC, Gürkan
Details
emerge-log (app-admin:conky-1.6.2_pre1347:20081220-125053.log,28.97 KB, text/plain)
2008-12-20 12:52 UTC, Boris Petersen
Details
patch that fixes this bug (conky-1.6.2_pre1321-missing-include.patch,267 bytes, patch)
2008-12-20 13:09 UTC, David Watzke
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Rose 2008-12-15 08:13:22 UTC
'emerge conky-1.6.2_pre1321' fails with:
root@grizzly:/root(23)# emerge -pvuDN world
...
[ebuild     U ] app-admin/conky-1.6.2_pre1321 [1.6.2_pre1285] USE="X audacious hddtemp ipv6 truetype (-bmpx) -debug -moc -mpd -nano-syntax -nvidia -rss -smapi -vim-syntax -wifi" 0 kB [0]
...
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -DSYSTEM_CONFIG_FILE=\"/etc/conky/conky.conf\"    -O2 -march=k8 -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/libmowgli -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12         -I/usr/include/freetype2   -Wall -W -MT mail.o -MD -MP -MF .deps/mail.Tpo -c -o mail.o mail.c
mail.c: In function 'imap_thread':
mail.c:353: error: storage size of 'he' isn't known
mail.c:356: error: storage size of 'their_addr' isn't known
mail.c:362: warning: implicit declaration of function 'gethostbyname_r'
mail.c:363: warning: implicit declaration of function 'hstrerror'
mail.c:363: error: 'h_errno' undeclared (first use in this function)
...
make[1]: Leaving directory `/var/tmp/portage/app-admin/conky-1.6.2_pre1321/work/conky-1.6.2_pre1321/src'
make: *** [all-recursive] Error 1


Reproducible: Always




root@grizzly:/root(24)# emerge --info
Portage 2.1.6.1 (default-linux/amd64/2007.0, gcc-4.3.2, glibc-2.9_p20081201-r0, 2.6.27.8 x86_64)
=================================================================
System uname: Linux-2.6.27.8-x86_64-AMD_Athlon-tm-_64_Processor_3200+-with-glibc2.2.5
Timestamp of tree: Mon, 15 Dec 2008 03:01:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p48
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.4.4-r15, 2.5.2-r8
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r8
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.2
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="-O2 -march=k8"
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/tex
mf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=k8"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
FFLAGS="-O2 -march=k8"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ rsync://ftp.fi.mu
ni.cz/pub/linux/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.tu-clau
sthal.de/pub/linux/gentoo ftp://ftp.easynet.nl/mirror/gentoo/ "
LDFLAGS=""
LINGUAS="de fr"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/d
istfiles --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/layman/zugaina /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X Xaw3d a52 aac acl acpi administrator afs aiglx alsa amd64 amrr ao aotuv apache2 asf atlas auctex audacious audiofile autom
ount bash-completion beagle berkdb bjam blas bluetooth bonobo boo boost bzip2 c++ cairo cdda cddb cdf cdio cdparanoia cdr cgi chm cli corba crac
klib cran crypt cups curl cxx daap dbus device-mapper dga dia divx djvu dlloader dmi doc dri ds3490 dv dvb dvd dvdr dvi dxr3 dynagraph eds effec
ts 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 gt
k guile hal hardened harness hddtemp hdf hdf5 hlapi http iconv icq icu id3 ide imagemagick imap innodb ipv6 irda irmc isdnlog ithreads jabber ja
va jbig john jpeg jpeg2k kde4 kerberos kexi keyring ladspa lame lapack latex lcms ldap libffi libgda libsamplerate lirc lm_sensors lua lzo lzw m
ad maildir math matroska midi mmx mmxext mng mod mono motif mozdevelop mozilla mozsvg mozxmlterm mp3 mp4 mp4live mpeg mpeg2 mplayer mudflap musi
cbrainz mysql mysqli nautilus ncurses neXt netcdf netpbm network networkmanager nfs nls nntp nptl nptlonly nsplugin ntfs numarray numeric obex o
caml octave odbc ogdi ogg ole opengl openmp pae pam pcre pda pdf perl plotutils plugins png posix postgres postscript pppd preview-latex proj pr
ojectx pstricks python qhull quicktime readline reflection reiserfs rhythmbox rle rpc rrdcgi rrdtool samba sasl science sdl session slang slp sn
dfile snmp soup sox speex spell spl sqlite sse sse2 ssl stlport subtitles subversion suexec svg sysfs t1lib tcl tcpd tex theora threads thunderb
ird tidy tiff tk truetype unicode userlocales utempter v4l2 vorbis wmf wxwindows xattr xcb xemacs xext xine xml xmlreader xmlrpc xorg xpm xulrun
ner xv xvid xvmc zlib zvbi" ALSA_CARDS="AC'97" 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 a
uthn_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 me
m_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="tda10046 saa7134" ELIBC="glibc" INPUT_DEVICES="keyboard mouse                " KERNEL="linux" LCD_DEVICES="ba
yrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de fr" LIRC_DEVICES="hauppauge_dvb" NETBEANS_MODULES="ide websvcco
mmon nb harness apisupport groovy gsf j2ee java xml" USERLAND="GNU" VIDEO_CARDS="radeon vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Mike Hammill 2008-12-15 10:18:29 UTC
Created attachment 175314 [details]
PPC32 emerge --info (same problem)

I have exactly the same problem under ppc32
Comment 2 Brenden Matthews 2008-12-16 04:10:05 UTC
Would you mind building from git?  This should be fixed since the headers have been rearranged recently.  Here's an example:

$ git clone git://git.omp.am/conky.git
$ cd conky
$ sh autogen.sh
$ ./configure --prefix=/usr --enable-testing
$ make
$ ./src/conky
Comment 3 Stefan Schmiedl 2008-12-16 07:56:59 UTC
(In reply to comment #2)
> Would you mind building from git?  This should be fixed since the headers have
> been rearranged recently.  Here's an example:
> 
> $ git clone git://git.omp.am/conky.git
> $ cd conky
> $ sh autogen.sh
> $ ./configure --prefix=/usr --enable-testing
> $ make
> $ ./src/conky
> 

Compilation completes successfully. I used

./configure --prefix=/ --exec-prefix=/usr --enable-testing --enable-config-output --enable-own-window --enable-hddtemp --enable-math --enable-nvidia --enable-portmon --enable-x11 --enable-xft --enable-rss --disable-mpd --disable-moc --enable-smapi

However, when drawing to the root window, conky draws on top of "normal" windows, which is not a nice thing to do ...
Comment 4 Boris Petersen 2008-12-18 19:17:25 UTC
i get a different error but can confirm git source works.

i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -DSYSTEM_CONFIG_FILE=\"/etc/conky/conky.conf\"    -O2 -march=prescott -fomit-frame-pointer -pipe -pthread -D_REENTRANT -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/libmowgli -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12         -I/usr/include/freetype2   -Wall -W -MT mboxscan.o -MD -MP -MF .deps/mboxscan.Tpo -c -o mboxscan.o mboxscan.c
mail.c: In function 'imap_thread':
mail.c:353: error: storage size of 'he' isn't known
mail.c:356: error: storage size of 'their_addr' isn't known
mail.c:362: warning: implicit declaration of function 'gethostbyname_r'
mail.c:363: warning: implicit declaration of function 'hstrerror'
mail.c:363: error: 'h_errno' undeclared (first use in this function)
mail.c:363: error: (Each undeclared identifier is reported only once
mail.c:363: error: for each function it appears in.)
mail.c:363: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
mail.c:391: warning: implicit declaration of function 'htons'
mail.c:392: error: dereferencing pointer to incomplete type
mail.c:356: warning: unused variable 'their_addr'
mail.c:353: warning: unused variable 'he'
mail.c: In function 'pop3_thread':
mail.c:654: error: storage size of 'he' isn't known
mail.c:657: error: storage size of 'their_addr' isn't known
mail.c:662: error: 'h_errno' undeclared (first use in this function)
mail.c:662: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
mail.c:691: error: dereferencing pointer to incomplete type
mail.c:657: warning: unused variable 'their_addr'
mail.c:654: warning: unused variable 'he'
mv -f .deps/audacious.Tpo .deps/audacious.Po
make[2]: *** [mail.o] Error 1
make[2]: *** Waiting for unfinished jobs....
mv -f .deps/timed_thread.Tpo .deps/timed_thread.Po
mv -f .deps/hddtemp.Tpo .deps/hddtemp.Po
mv -f .deps/mixer.Tpo .deps/mixer.Po
mv -f .deps/users.Tpo .deps/users.Po
mv -f .deps/top.Tpo .deps/top.Po
mv -f .deps/diskio.Tpo .deps/diskio.Po
mv -f .deps/mboxscan.Tpo .deps/mboxscan.Po
mv -f .deps/linux.Tpo .deps/linux.Po
mv -f .deps/conky.Tpo .deps/conky.Po
make[2]: Leaving directory `/var/tmp/portage/app-admin/conky-1.6.2_pre1321/work/conky-1.6.2_pre1321/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/app-admin/conky-1.6.2_pre1321/work/conky-1.6.2_pre1321/src'
make: *** [all-recursive] Error 1
Comment 5 Mike Hammill 2008-12-19 14:15:35 UTC
(In reply to comment #2)
This also works on ppc32.  I used only the defaults to configure.  It compiled and ran, although I got the error

Conky: MFD error: problems getting a response from "localhost" on port 6600 : Connection refused"

Conky output otherwise looked OK on ppc32.

/Mike
Comment 6 Gürkan 2008-12-19 15:14:25 UTC
Created attachment 175880 [details]
emerge error output on x86

Looks same, a longer error on my x86
You can find emerge info on: http://bugs.gentoo.org/show_bug.cgi?id=250155
Comment 7 David Shakaryan (RETIRED) gentoo-dev 2008-12-20 02:53:06 UTC
Please try conky-1.6.2_pre1347 as it should fix this problem.
Comment 8 Boris Petersen 2008-12-20 12:52:41 UTC
Created attachment 175941 [details]
emerge-log

I still can't compile. Not even app-admin/conky-1.6.2_pre1347. See attached log
Comment 9 David Watzke 2008-12-20 13:09:06 UTC
Created attachment 175944 [details, diff]
patch that fixes this bug

(In reply to comment #7)
well not really, there's just another #include missing (see bug #251726)
Comment 10 Brenden Matthews 2008-12-23 04:09:16 UTC
Can someone with this problem please try building from git again?

It seems to be a problem with the order of the headers, but I cannot reproduce it myself.
Comment 11 Boris Petersen 2008-12-23 09:18:29 UTC
(In reply to comment #10)
> Can someone with this problem please try building from git again?
> 
> It seems to be a problem with the order of the headers, but I cannot reproduce
> it myself.
> 

as before, from git builds fine, from ebuild doesn't