Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 128195 - apmd does not compile
Summary: apmd does not compile
Status: RESOLVED DUPLICATE of bug 73435
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-30 19:17 UTC by Maxi Combina
Modified: 2006-03-30 22:09 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maxi Combina 2006-03-30 19:17:29 UTC
I have the following versions of apmd available:
maxlo@atenea ~/tmp $ eix apmd
* sys-apps/apmd
     Available versions:  3.0.2-r3 ~3.2.0 3.2.1_p4 ~3.2.2_p5

but neither compiles...:
atenea ~ # emerge apmd
Calculating dependencies ...done!
>>> emerge (1 of 1) sys-apps/apmd-3.2.1_p4 to /
>>> md5 files   ;-) apmd-3.2.1_p4.ebuild
>>> md5 files   ;-) apmd-3.0.2-r3.ebuild
>>> md5 files   ;-) apmd-3.2.2_p5.ebuild
>>> md5 files   ;-) apmd-3.2.0.ebuild
>>> md5 files   ;-) files/digest-apmd-3.0.2-r3
>>> md5 files   ;-) files/digest-apmd-3.2.1_p4
>>> md5 files   ;-) files/digest-apmd-3.2.2_p5
>>> md5 files   ;-) files/apmsleep.c.diff
>>> md5 files   ;-) files/apmd.rc6
>>> md5 files   ;-) files/apmd-no-on_ac_power_script.patch
>>> md5 files   ;-) files/apmd.kernel26x.patch
>>> md5 files   ;-) files/apmsleep.c.diff.3.2.0
>>> md5 files   ;-) files/apmd-3.2.0.kernel26x.patch
>>> md5 files   ;-) files/digest-apmd-3.2.0
>>> md5 files   ;-) files/apmd.confd
>>> md5 src_uri ;-) apmd_3.2.1.orig.tar.gz
>>> md5 src_uri ;-) apmd_3.2.1-4.diff.gz
>>> Unpacking source...
>>> Unpacking apmd_3.2.1.orig.tar.gz to /var/tmp/portage/apmd-3.2.1_p4/work
>>> Unpacking apmd_3.2.1-4.diff.gz to /var/tmp/portage/apmd-3.2.1_p4/work
 * Applying apmd_3.2.1-4.diff ...                                                                                         [ ok ]
>>> Source unpacked.
libtool --quiet --mode=compile gcc -c  -O -g -Wall -pipe -I. -I/usr/src/linux/include -I/usr/src/linux-2.2/include -I /usr/src/linux-2.0/include -DVERSION=\"3.2.1\" -DDEFAULT_PROXY_NAME=\"/etc/apmd_proxy\" apmlib.c
libtool --quiet --mode=compile gcc -c  -O -g -Wall -pipe -I. -I/usr/src/linux/include -I/usr/src/linux-2.2/include -I /usr/src/linux-2.0/include -DVERSION=\"3.2.1\" -DDEFAULT_PROXY_NAME=\"/etc/apmd_proxy\" apm.c
libtool --quiet --mode=compile gcc -c  -O -g -Wall -pipe -I. -I/usr/src/linux/include -I/usr/src/linux-2.2/include -I /usr/src/linux-2.0/include -DVERSION=\"3.2.1\" -DDEFAULT_PROXY_NAME=\"/etc/apmd_proxy\" apmd.c
libtool --quiet --mode=compile gcc -c  -O -g -Wall -pipe -I. -I/usr/src/linux/include -I/usr/src/linux-2.2/include -I /usr/src/linux-2.0/include -DVERSION=\"3.2.1\" -DDEFAULT_PROXY_NAME=\"/etc/apmd_proxy\" -DNARROWPROTO xapm.c
libtool --quiet --mode=compile gcc -c  -O -g -Wall -pipe -I. -I/usr/src/linux/include -I/usr/src/linux-2.2/include -I /usr/src/linux-2.0/include -DVERSION=\"3.2.1\" -DDEFAULT_PROXY_NAME=\"/etc/apmd_proxy\" apmsleep.c
libtool --quiet --mode=link gcc -o libapm.la apmlib.lo -rpath /usr/lib -version-info 1:0
x86_64-pc-linux-gnu-g++: /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../lib64/crti.o: No such file or directory
x86_64-pc-linux-gnu-g++: /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/crtbeginS.o: No such file or directory
x86_64-pc-linux-gnu-g++: /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/crtendS.o: No such file or directory
x86_64-pc-linux-gnu-g++: /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../lib64/crtn.o: No such file or directory
make: *** [libapm.la] Error 1
make: *** Waiting for unfinished jobs....
apmsleep.c:60: warning: 'rcsid' defined but not used
rm apm.o

!!! ERROR: sys-apps/apmd-3.2.1_p4 failed.
!!! Function src_compile, Line 50, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.

atenea ~ #                       
atenea ~ # emerge =apmd-3.0.2-r3
Calculating dependencies ...done!
>>> emerge (1 of 1) sys-apps/apmd-3.0.2-r3 to /
>>> md5 files   ;-) apmd-3.2.1_p4.ebuild
>>> md5 files   ;-) apmd-3.0.2-r3.ebuild
>>> md5 files   ;-) apmd-3.2.2_p5.ebuild
>>> md5 files   ;-) apmd-3.2.0.ebuild
>>> md5 files   ;-) files/digest-apmd-3.0.2-r3
>>> md5 files   ;-) files/digest-apmd-3.2.1_p4
>>> md5 files   ;-) files/digest-apmd-3.2.2_p5
>>> md5 files   ;-) files/apmsleep.c.diff
>>> md5 files   ;-) files/apmd.rc6
>>> md5 files   ;-) files/apmd-no-on_ac_power_script.patch
>>> md5 files   ;-) files/apmd.kernel26x.patch
>>> md5 files   ;-) files/apmsleep.c.diff.3.2.0
>>> md5 files   ;-) files/apmd-3.2.0.kernel26x.patch
>>> md5 files   ;-) files/digest-apmd-3.2.0
>>> md5 files   ;-) files/apmd.confd
>>> md5 src_uri ;-) apmd-3.0.2.tar.gz
>>> Unpacking source...
>>> Unpacking apmd-3.0.2.tar.gz to /var/tmp/portage/apmd-3.0.2-r3/work
 * Applying apmsleep.c.diff ...                                                                                           [ ok ]
 * Applying apmd.kernel26x.patch ...                                                                                      [ ok ]
>>> Source unpacked.
gcc -c  -O2 -pipe -march=athlon64 -Wall -pipe -I. -I/usr/src/linux/include -I/usr/src/linux-2.2/include -I /usr/src/linux-2.0/include -DVERSION=\"3.0.2\" -DAPMD_PROXY_NAME=\"/etc/apm/apmd_proxy\" apmlib.c
ar rv libapm.a apmlib.o
ar: creating libapm.a
a - apmlib.o
ranlib libapm.a
gcc -c  -O2 -pipe -march=athlon64 -Wall -pipe -I. -I/usr/src/linux/include -I/usr/src/linux-2.2/include -I /usr/src/linux-2.0/include -DVERSION=\"3.0.2\" -DAPMD_PROXY_NAME=\"/etc/apm/apmd_proxy\" apm.c
apm.c: In function `change_state':
apm.c:40: warning: implicit declaration of function `exit'
gcc -o apm apm.o  -L. -lapm
gcc -c  -O2 -pipe -march=athlon64 -Wall -pipe -I. -I/usr/src/linux/include -I/usr/src/linux-2.2/include -I /usr/src/linux-2.0/include -DVERSION=\"3.0.2\" -DAPMD_PROXY_NAME=\"/etc/apm/apmd_proxy\" apmd.c
apmd.c: In function `apmd_call_proxy':
apmd.c:245: error: syntax error before string constant
apmd.c:245: warning: left-hand operand of comma expression has no effect
apmd.c:245: error: syntax error before ')' token
apmd.c:328: error: syntax error before string constant
apmd.c:328: warning: left-hand operand of comma expression has no effect
apmd.c:328: error: syntax error before ')' token
apmd.c:332: error: syntax error before string constant
apmd.c:332: warning: left-hand operand of comma expression has no effect
apmd.c:332: warning: left-hand operand of comma expression has no effect
apmd.c:332: error: syntax error before ')' token
apmd.c:357: error: syntax error before string constant
apmd.c:357: warning: left-hand operand of comma expression has no effect
apmd.c:357: error: syntax error before ')' token
apmd.c:374: error: syntax error before string constant
apmd.c:374: warning: left-hand operand of comma expression has no effect
apmd.c:374: error: syntax error before ')' token
apmd.c:382: error: syntax error before string constant
apmd.c:382: warning: left-hand operand of comma expression has no effect
apmd.c:382: error: syntax error before ')' token
apmd.c:394: error: syntax error before string constant
apmd.c:394: warning: left-hand operand of comma expression has no effect
apmd.c:394: error: syntax error before ')' token
apmd.c:402: error: syntax error before string constant
apmd.c:402: warning: left-hand operand of comma expression has no effect
apmd.c:402: warning: left-hand operand of comma expression has no effect
apmd.c:402: error: syntax error before ')' token
apmd.c:408: error: syntax error before string constant
apmd.c:408: warning: left-hand operand of comma expression has no effect
apmd.c:408: warning: left-hand operand of comma expression has no effect
apmd.c:408: error: syntax error before ')' token
apmd.c: In function `apmd_power_reset':
apmd.c:426: error: syntax error before string constant
apmd.c:426: warning: left-hand operand of comma expression has no effect
apmd.c:426: error: syntax error before ')' token
apmd.c: In function `apmd_suspend':
apmd.c:463: error: syntax error before string constant
apmd.c:463: warning: left-hand operand of comma expression has no effect
apmd.c:463: error: syntax error before ')' token
apmd.c: In function `apmd_standby':
apmd.c:497: error: syntax error before string constant
apmd.c:497: warning: left-hand operand of comma expression has no effect
apmd.c:497: error: syntax error before ')' token
apmd.c: In function `apmd_resume':
apmd.c:532: error: syntax error before string constant
apmd.c:532: warning: left-hand operand of comma expression has no effect
apmd.c:532: error: syntax error before ')' token
apmd.c: In function `apmd_low_battery':
apmd.c:593: error: syntax error before string constant
apmd.c:593: warning: left-hand operand of comma expression has no effect
apmd.c:593: error: syntax error before ')' token
apmd.c: In function `apmd_check_power':
apmd.c:612: error: syntax error before string constant
apmd.c:612: warning: left-hand operand of comma expression has no effect
apmd.c:612: error: syntax error before ')' token
apmd.c: In function `main':
apmd.c:959: error: syntax error before string constant
apmd.c:959: warning: left-hand operand of comma expression has no effect
apmd.c:959: error: syntax error before ')' token
make: *** [apmd.o] Error 1
rm apm.o

!!! ERROR: sys-apps/apmd-3.0.2-r3 failed.
!!! Function src_compile, Line 58, Exitcode 2
!!! compile problem
!!! If you need support, post the topmost build error, NOT this status message.


other useful info:
atenea ~ # gcc --version
gcc (GCC) 3.4.5 (Gentoo 3.4.5, ssp-3.4.5-1.0, pie-8.7.9)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

atenea ~ # emerge --info
Portage 2.0.54 (default-linux/amd64/2006.0, gcc-3.4.5, glibc-2.3.5-r2, 2.6.15-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.15-gentoo-r7 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.14
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=athlon64"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/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 -pipe -march=athlon64"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://adelie.polymtl.ca/ http://gentoo.arcticnetwork.ca/ http://gentoo.mirrored.ca/ http://gentoo.osuosl.org/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://www.gtlib.gatech.edu/pub/gentoo http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://gentoo.chem.wisc.edu/gentoo/ http://cudlug.cudenver.edu/gentoo/ http://gentoo.mirrors.pair.com/ http://gentoo.mirrors.tds.net/gentoo http://gentoo.netnitco.net http://mirror.espri.arizona.edu/gentoo/ http://mirrors.acm.cs.rpi.edu/gentoo/ http://open-systems.ufl.edu/mirrors/gentoo http://gentoo.llarian.net/ http://gentoo.binarycompass.org http://mirror.datapipe.net/gentoo http://gentoo.cs.lewisu.edu/gentoo/ http://prometheus.cs.wmich.edu/gentoo http://modzer0.cs.uaf.edu/public/gentoo/ http://mirror.usu.edu/mirrors/gentoo/ http://mirror.phy.olemiss.edu/mirror/gentoo http://gentoo.mirrors.easynews.com/linux/gentoo/ http://gentoo.cites.uiuc.edu/pub/gentoo/ http://mirror.clarkson.edu/pub/distributions/gentoo/ http://gentoo.localhost.net.ar/ http://www.las.ic.unicamp.br/pub/gentoo/ http://gentoo.inode.at/ http://gd.tuwien.ac.at/opsys/linux/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://gentoo.ITDNet.net/gentoo http://mirror.uni-c.dk/pub/gentoo/ http://ftp.linux.ee/pub/gentoo/distfiles/ http://trumpetti.atm.tut.fi/gentoo/ http://mirror.ovh.net/gentoo-distfiles/ http://gentoo.modulix.net/gentoo/ http://ftp.club-internet.fr/pub/mirrors/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/ http://ftp.rz.tu-bs.de/pub/mirror/ftp.gentoo.org/gentoo/ http://gentoo.intergenia.de http://files.gentoo.org http://ftp.ntua.gr/pub/linux/gentoo/ http://ftp.uoi.gr/mirror/OS/gentoo/ http://ftp.physics.auth.gr/pub/mirrors/gentoo/ http://gentoo.inf.elte.hu/ http://ftp.rhnet.is/pub/gentoo/ http://ftp.heanet.ie/pub/gentoo/ http://mirror.hamakor.org.il/pub/mirrors/gentoo/ http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ http://gentoo.ngi.it http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://mirror.gentoo.no/ http://darkstar.ist.utl.pt/gentoo/ http://src.gentoo.pl http://gentoo.prz.rzeszow.pl http://gentoo.zie.pg.gda.pl http://gentoo.po.opole.pl http://ftp.lug.ro/gentoo/ http://ftp.roedu.net/pub/mirrors/gentoo.org/ http://ftp.romnet.org/gentoo/ http://gentoo.ynet.sk/pub http://mirror.aiya.ru/pub/gentoo/ http://ftp.citkit.ru/pub/Linux/gentoo http://linuv.uv.es/mirror/gentoo/ http://ftp.du.se/pub/os/gentoo http://ds.thn.htu.se/linux/gentoo http://ftp.ds.hj.se/pub/Linux/distributions/gentoo/ http://mirror.switch.ch/ftp/mirror/gentoo/ http://gentoo.mirror.solnet.ch http://ftp.ankara.edu.tr/gentoo/ http://gentoo.blueyonder.co.uk http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://mirror.etf.bg.ac.yu/gentoo http://public.planetmirror.com/pub/gentoo/ http://mirror.pacific.net.au/linux/Gentoo http://mirror.isp.net.au/ftp/pub/gentoo/ http://ftp.swin.edu.au/gentoo http://mirror.gentoo.gr.jp http://gentoo.gg3.net/ http://gentoo.channelx.biz/ http://fido.online.kz/gentoo http://ftp.gentoo.or.kr/ http://gentoo.kems.net http://gentoo.scphost.com http://ftp.isu.edu.tw/pub/Linux/Gentoo http://ftp.twaren.net/Linux/Gentoo/ "
LANG="en_US.ISO-8859-1"
LC_ALL="en_US.ISO-8859-1"
LINGUAS="en es pt it"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X aalib alsa apache2 arts audiofile avi bash-completion berkdb bitmap-fonts bzip2 cdr cli crypt ctype cups curl dba directfb doc dri dvd dvdr dvdread eds emboss encode esd exif expat fam fastbuild fbcon ffmpeg foomaticdb force-cgi-redirect fortran ftp gd gdbm gif glut gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal idn imlib ipv6 isdnlog java jpeg kde lcms libcaca libwww lm_sensors lzw lzw-tiff mad memlimit mng mp3 mpeg ncurses nls nptl nptlonly ogg opengl pam pcre pdflib perl png posix pppd python qt quicktime readline sdl session simplexml slang soap sockets spell spl ssl svg tcpd tetex tiff tokenizer truetype truetype-fonts type1-fonts udev unicode usb vorbis xml xml2 xmms xpm xsl xv xvid zlib linguas_en linguas_es linguas_pt linguas_it userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS, PORTDIR_OVERLAY

atenea ~ #
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-03-30 22:09:44 UTC
fix_libtool_files.sh 3.4.4; emerge -1 libtool


*** This bug has been marked as a duplicate of 73435 ***