Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 86109 - pcmcia-cs 3.2.7 fails to compile with 'undeclared' error
Summary: pcmcia-cs 3.2.7 fails to compile with 'undeclared' error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: Mobile Herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
: 89623 (view as bug list)
Depends on:
Blocks: 68964
  Show dependency tree
 
Reported: 2005-03-21 02:35 UTC by Oleg Kokorin
Modified: 2005-04-25 05:14 UTC (History)
1 user (show)

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 Oleg Kokorin 2005-03-21 02:35:32 UTC
cc -O2 -mtune=G3 -fno-strict-aliasing -pipe -O3 -Wall -Wstrict-prototypes -pipe -Wa,--no-warn -MD -I../include/static -I/usr/src/linux/include -I../include -I../modules -I/usr/X11R6/include -I/usr/X11/include -I/usr/X11R6/include/X11 -c xcardinfo.c
cc -O2 -mtune=G3 -fno-strict-aliasing -pipe -O -Wall -MD -I../include/static -I/usr/src/linux/include -I../include -I../modules -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -c gpccard.c
xcardinfo.c:97: error: `CS_EVENT_RESET_COMPLETE' undeclared here (not in a function)
xcardinfo.c:97: error: initializer element is not constant
xcardinfo.c:97: error: (near initialization for `event_tag[4].event')
xcardinfo.c:97: error: initializer element is not constant
xcardinfo.c:97: error: (near initialization for `event_tag[4]')
xcardinfo.c:98: error: initializer element is not constant
xcardinfo.c:98: error: (near initialization for `event_tag[5]')
xcardinfo.c:99: error: initializer element is not constant
xcardinfo.c:99: error: (near initialization for `event_tag[6]')
xcardinfo.c:100: error: initializer element is not constant
xcardinfo.c:100: error: (near initialization for `event_tag[7]')
xcardinfo.c:101: error: initializer element is not constant
xcardinfo.c:101: error: (near initialization for `event_tag[8]')
xcardinfo.c:102: error: initializer element is not constant
xcardinfo.c:102: error: (near initialization for `event_tag[9]')
make[1]: *** [xcardinfo.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/pcmcia-cs-3.2.7/work/pcmcia-cs-3.2.7/cardmgr'
make: *** [all] Error 2


Reproducible: Always
Steps to Reproduce:
1.emerge pcmcia-cs
2.Watch the compile and errors
3.

Actual Results:  
Error was received as shown 

Expected Results:  
Complete the compile

okibookG3 root # emerge info
Portage 2.0.51.19 (default-linux/ppc/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0,
2.6.10-gentoo-r6 ppc)
=================================================================
System uname: 2.6.10-gentoo-r6 ppc 750CXe
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Mar 17 2005, 20:52:52)]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.5, 1.8.5-r3, 1.9.4, 1.6.3, 1.7.9-r1, 1.4_p6
sys-devel/binutils:  2.15.90.0.3-r3
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.4.22
ACCEPT_KEYWORDS="ppc"
AUTOCLEAN="yes"
CFLAGS="-O2 -mtune=G3 -fno-strict-aliasing -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mtune=G3 -fno-strict-aliasing -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://gentoo.chem.wisc.edu/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa berkdb bitmap-fonts cdr cups curl dvd emboss esd fam font-server
foomaticdb fortran gcj gdbm gif gimpprint gnome gphoto2 gpm gstreamer gtk icq
imagemagick imlib jack jpeg kde mime mozilla mp3 mysql ncurses nls opengl pam
pda perl png ppc ppds print python qt readline samba scanner slang ssl tcpd tiff
truetype truetype-fonts type1-fonts unicode usb xml2 xprint xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 1 Oleg Kokorin 2005-03-21 08:08:32 UTC
take a look on this comment, it might help:

"Please note there is a small bug in pcmcia_cs-3.2.8 when compiling against linux-2.6.10. You have to switch the order of the include statements (-I) to get <pcmcia_cs>/include in front of /usr/src/linux/include. I catched this issue when compiling cardmgr/xcardinfo.c using gcc-3.4.3."

http://jan.generation-online.de/os/teles_cs/
Comment 2 Henrik Brix Andersen 2005-04-19 01:43:57 UTC
*** Bug 89623 has been marked as a duplicate of this bug. ***
Comment 3 Henrik Brix Andersen 2005-04-25 05:14:27 UTC
Fixed in sys-apps/pcmcia-cs-3.2.8. Thank you for reporting this.