Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 328023 - app-mobilephone/gnokii-0.6.28.1 fails to build with pcsc-lite-1.6.0
Summary: app-mobilephone/gnokii-0.6.28.1 fails to build with pcsc-lite-1.6.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Mobile Phone Developers (INACTIVE)
URL:
Whiteboard:
Keywords:
Depends on: 319243
Blocks:
  Show dependency tree
 
Reported: 2010-07-13 00:12 UTC by Ch_E
Modified: 2010-08-10 13:14 UTC (History)
8 users (show)

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


Attachments
Output of emerge -pqv =app-mobilephone/gnokii-0.6.28.1 (gnokii_info,178 bytes, text/plain)
2010-07-13 00:15 UTC, Ch_E
Details
Complete gnokii build log (build.log,49.43 KB, text/plain)
2010-07-13 00:21 UTC, Ch_E
Details
Ebuild environment file (environment,140.18 KB, text/plain)
2010-07-13 00:22 UTC, Ch_E
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ch_E 2010-07-13 00:12:01 UTC
Since the last two times I did a 'emerge -qe --keep-going --accept-properties=-interactive world' the package app-mobilephone/gnokii-0.6.28.1 failes to (re)build. I don't use gnokii very often, but perhaps there are some users with the same bug around so it would be nice if someone can fix it. Thanks.

P.S. I already changed my CFLAGS to -O2 instead of -O3 but this doesn't remove the build failure. I thing it isn't that easy :(  Perhaps there is something wrong with the smartcard middleware (PCSC) used by gnokii. Rebuilding sys-apps/pcsc-lite-1.6.1 doesn't cure the gnokii ebuild.


Part of the output of 'emerge -v --oneshot app-mobilephone/gnokii-0.6.28.1':
****************************************************************************
mv -f .deps/libPHONES_la-atlg.Tpo .deps/libPHONES_la-atlg.Plo
libtool: compile:  x86_64-pc-linux-gnu-gcc -DCOMPILING_LIBGNOKII -I. -I../../include -I../../include -pthread -I/usr/include/PCSC -O2 -pipe -march=native -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mmmx -mpopcnt -mfpmath=sse -Wall -Wno-pointer-sign -fvisibility=hidden -fno-strict-aliasing -MT libPHONES_la-fake.lo -MD -MP -MF .deps/libPHONES_la-fake.Tpo -c fake.c -o libPHONES_la-fake.o >/dev/null 2>&1
pcsc.c: In function ‘get_gn_error’:
pcsc.c:202: error: ‘SCARD_W_INSERTED_CARD’ undeclared (first use in this function)
pcsc.c:202: error: (Each undeclared identifier is reported only once
pcsc.c:202: error: for each function it appears in.)
gmake[2]: *** [libPHONES_la-pcsc.lo] Fehler 1
gmake[2]: *** Warte auf noch nicht beendete Prozesse...
libtool: compile:  x86_64-pc-linux-gnu-gcc -DCOMPILING_LIBGNOKII -I. -I../../include -I../../include -pthread -I/usr/include/PCSC -O2 -pipe -march=native -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mmmx -mpopcnt -mfpmath=sse -Wall -Wno-pointer-sign -fvisibility=hidden -fno-strict-aliasing -MT libPHONES_la-nk6100.lo -MD -MP -MF .deps/libPHONES_la-nk6100.Tpo -c nk6100.c -o libPHONES_la-nk6100.o >/dev/null 2>&1
mv -f .deps/libPHONES_la-fake.Tpo .deps/libPHONES_la-fake.Plo
gnapplet.c:1106: warning: ‘gnapplet_sms_message_move’ defined but not used
libtool: compile:  x86_64-pc-linux-gnu-gcc -DCOMPILING_LIBGNOKII -I. -I../../include -I../../include -pthread -I/usr/include/PCSC -O2 -pipe -march=native -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mmmx -mpopcnt -mfpmath=sse -Wall -Wno-pointer-sign -fvisibility=hidden -fno-strict-aliasing -MT libPHONES_la-gnapplet.lo -MD -MP -MF .deps/libPHONES_la-gnapplet.Tpo -c gnapplet.c -o libPHONES_la-gnapplet.o >/dev/null 2>&1
mv -f .deps/libPHONES_la-atgen.Tpo .deps/libPHONES_la-atgen.Plo
nk6510.c:3820: warning: ‘NK6510_WriteCalendarNote’ defined but not used
nk6510.c:4580: warning: ‘NK6510_GetAnykeyAnswer’ defined but not used
libtool: compile:  x86_64-pc-linux-gnu-gcc -DCOMPILING_LIBGNOKII -I. -I../../include -I../../include -pthread -I/usr/include/PCSC -O2 -pipe -march=native -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mmmx -mpopcnt -mfpmath=sse -Wall -Wno-pointer-sign -fvisibility=hidden -fno-strict-aliasing -MT libPHONES_la-nk6510.lo -MD -MP -MF .deps/libPHONES_la-nk6510.Tpo -c nk6510.c -o libPHONES_la-nk6510.o >/dev/null 2>&1
mv -f .deps/libPHONES_la-gnapplet.Tpo .deps/libPHONES_la-gnapplet.Plo
mv -f .deps/libPHONES_la-nk7110.Tpo .deps/libPHONES_la-nk7110.Plo
mv -f .deps/libPHONES_la-nk6100.Tpo .deps/libPHONES_la-nk6100.Plo
mv -f .deps/libPHONES_la-nk6510.Tpo .deps/libPHONES_la-nk6510.Plo
gmake[2]: Leaving directory `/var/tmp/portage/app-mobilephone/gnokii-0.6.28.1/work/gnokii-0.6.28/common/phones'
gmake[1]: *** [all-recursive] Fehler 1
gmake[1]: Leaving directory `/var/tmp/portage/app-mobilephone/gnokii-0.6.28.1/work/gnokii-0.6.28/common'
make: *** [all-recursive] Fehler 1
 * ERROR: app-mobilephone/gnokii-0.6.28.1 failed:
 *   emake failed
 * 
 * Call stack:
 *     ebuild.sh, line   54:  Called src_compile
 *   environment, line 3776:  Called _eapi2_src_compile
 *     ebuild.sh, line  646:  Called die
 * The specific snippet of code:
 *              emake || die "emake failed"
 * 

Reproducible: Always

Steps to Reproduce:
1. emerge -v --oneshot =app-mobilephone/gnokii-0.6.28.1
Actual Results:  
Emerge failed to compile the ebuild and ends up with an error message.

Expected Results:  
Should compile and install fine.

Portage 2.1.8.3 (default/linux/amd64/10.0, gcc-4.4.4, glibc-2.11.2-r0, 2.6.34-gentoo-r1-chriss-2 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.34-gentoo-r1-chriss-2-x86_64-Intel-R-_Core-TM-_i7_CPU_950_@_3.07GHz-with-gentoo-2.0.1
Timestamp of tree: Sun, 11 Jul 2010 20:15:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r2, 3.1.2-r3
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20, 2.20.1-r1
sys-devel/gcc:       4.3.5, 4.4.4-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
virtual/os-headers:  2.6.34
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -pipe -march=native -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mmmx -mpopcnt -mfpmath=sse"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O3 -pipe -march=native -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mmmx -mpopcnt -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X X509 Xaw3d a52 aac aalib abiword accessibility acl acpi ada addressbook adns adplug aesicm agg aio akonadi alisp alsa amd64 amr ao archive ares arts asf aspell assistant asyncns atmo audiofile autotrace bash-completion bdf beagle berkdb bigtiff bittorrent bl blender-game bluetooth bonjour branding bs2b btrfs bugzilla bzip2 cairo calendar caps ccache cdda cddb cdparanoia cdr chm clamdtop cleartype cli clucene composite compressed-lumas consolekit contrast contrib coverage cracklib crypt css cue cups curl custom-cflags custom-cpuopts custom-optimization cvs cxx dbi dbus dc1394 designer-plugin desktopglobe devhelp device-mapper dga dia dirac disk-partition djbfft djvu dmraid dri dselect dts dv dvb dvd dvdr dvi eap-sim ebook eix embedded emf emovix encode esd exif expat expoblending extensions extra-ciphers extra-tools extras faac faad facedetect fam fat fbcon ffmpeg fftw flac flash floppy fltk fluidsynth fontconfig fontforge fortran fpx frei0r ftdi ftp fts3 fuse fusion gadu gcdmaster gcrypt gd gdbm gdu geoip geolocation ggi gif gimp git glade glitz gmp gmplayer gnome gnome-keyring gnutls google-gadgets gpg gphoto2 gpm gpu graphite graphviz groupwise grp gs gsm gstreamer gtk gucharmap guile hal hdri hfs hog hotpixels hpn ical icecast iconv icu id3tag idn ieee1394 ilbc imagemagick imlib inkjar inotify ipod ipv6 jabber jack java java6 jbig jfs jingle jpeg jpeg2k kate kde keyscrub kipi kontact kqemu kvm ladspa lame lapack lash lasi lastfm lcms lensfun libass libcaca libffi libnl libnotify libsamplerate libssh2 libtiger libv4l libv4l2 lightning lirc lm_sensors lua lvm lzma lzo mad matroska maxsysuid md5sum mdi meanwhile melt midi mikmod milter mjpeg mktemp mmap mmx mmxext mng modplug modules motif mozdom mp3 mp3tunes mp4 mpeg mpi mpi-threads mplayer msn mtp mudflap multilib multimedia musepack musicbrainz mvl mysql nautilus nbd ncurses net network networking nfs nilfs nilfs2 nls npp nptl nptlonly nsplugin ntfs ntlm ntp ntpl nut nuv nvidia ogg ogm openal opencl opencore-amr openexr opengl openmp openssl optimization oscar oss otr pam pango pcap pcre pdf perl phonon physfs plasma playlist plotutils pm-utils pmu png pnm policykit postproc postscript pppd profiler projectm ps pth pulseaudio pvr python python3 qalculate qpak qt3 qt3support qt4 qtxmlpatterns quicktime qwt radio rar raw rawio rdp readline recode redeyes reflection reiserfs replytolist rle rss rtsp ruby samba scale0tilt scanner schroedinger scim scrobbler sdl sdl-image secure-delete semantic-desktop sensord serial serprog session shine shout sid skins skype slang slp smbsharemodes smp sms sndfile soap soundtouch sourceview sox speex spell spl sql sqlite sqlite3 srtp sse sse2 sse3 sse4.2 ssh ssl ssse ssse3 startup-notification static-libs stats strong-optimization subtitles subversion svg swig sysfs syslog system-sqlite taglib tcl tcpd teletext templates test-programs theora threads threadsafe thumbnail tidy tiff tilepath timezone tk toolbar tools totem track-src-odirect truetype twolame udev udev-acl unicode upnp urandom usb uswsusp utils uuid v4l v4l2 vaapi vamp vcd vcdx vde vdpau vdr video vim-pager virtuoso vlm vnc vorbis vpx wad watchdog wavpack webdav-serf webkit webpresence winbind winpopup wma-fixed wmf wps wxwidgets wxwindows x264 xanim xattr xcomposite xfs xft xine xml xmldoclet xmlpatterns xmp xorg xosd xpm xscreensaver xulrunner xv xvid xvmc yahoo yv12 zeroconf zip zlib zoran zvbi" ALSA_CARDS="emu10k1x hdsp hdspm" 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" CAMERAS="CAMERAS canon" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vmware" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

=================================================================
                        Package Settings
=================================================================

app-mobilephone/gnokii-0.6.28.1 was built with the following:
USE="X bluetooth ical (multilib) mysql nls sms usb -debug -irda -postgres" LINGUAS="de -cs -et -fi -fr -it -nl -pl -pt -sk -sl -sv -zh_CN" 
CFLAGS="-O2 -pipe -march=native -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mmmx -mpopcnt -mfpmath=sse"
CXXFLAGS="-O2 -pipe -march=native -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mmmx -mpopcnt -mfpmath=sse"
Comment 1 Ch_E 2010-07-13 00:15:50 UTC
Created attachment 238527 [details]
Output of emerge -pqv =app-mobilephone/gnokii-0.6.28.1
Comment 2 Ch_E 2010-07-13 00:21:25 UTC
Created attachment 238529 [details]
Complete gnokii build log
Comment 3 Ch_E 2010-07-13 00:22:46 UTC
Created attachment 238531 [details]
Ebuild environment file
Comment 4 Rafał Mużyło 2010-07-13 15:12:38 UTC
This is triggered by pcsc-lite 1.6.0.
Upstream fixed it (in git - no release yet) by removing that define.
Comment 5 Blu3 2010-08-01 07:57:23 UTC
Scott gnokii # cat /usr/local/portage/app-mobilephone/gnokii/files/gnokii-0.6.28.1-scard_inserted.patch--- gnokii-0.6.28/common/phones/pcsc.c.orig     2009-09-07 04:38:34.000000000 -0400
+++ gnokii-0.6.28/common/phones/pcsc.c  2010-08-01 03:37:54.094681757 -0400
@@ -199,7 +199,9 @@
        case SCARD_W_UNPOWERED_CARD:
        case SCARD_W_RESET_CARD:
        case SCARD_W_REMOVED_CARD:
+/* removed from pcsc-lite
        case SCARD_W_INSERTED_CARD:
+*/
                return GN_ERR_SIMPROBLEM;
        case SCARD_E_NO_MEMORY:
                return GN_ERR_MEMORYFULL;


and add to the ebuild
Scott gnokii # diff -ruN /usr/portage/app-mobilephone/gnokii/gnokii-0.6.28.1.ebuild gnokii-0.6.28.1-r1.ebuild
--- /usr/portage/app-mobilephone/gnokii/gnokii-0.6.28.1.ebuild  2010-06-17 16:36:25.000000000 -0400
+++ gnokii-0.6.28.1-r1.ebuild   2010-08-01 03:43:05.458851871 -0400
@@ -54,6 +54,7 @@
            #epatch "${FILESDIR}"/${PN}-0.6.27-icon.patch
            #epatch "${FILESDIR}"/${PN}-0.6.27-disable-database.patch
            #epatch "${FILESDIR}"/${PN}-0.6.27-TP-PI.patch
+           epatch "${FILESDIR}"/${P}-scard_inserted.patch
                :
        else
            epatch "${FILESDIR}"/${P}-icon.patch

since this is a couple months old (originally mentioned end of may), can we get this pushed to a -r1?
Comment 6 Diego Elio Pettenò (RETIRED) gentoo-dev 2010-08-01 14:22:01 UTC
That's a hacky patch and if I saw any Gentoo committer to ever think about adding something like that I'd be stripping their commit bit myself.

The proper solution is to have a #ifdef #endif check around it so that it works the same with older and newer versions. Definitely leaving stuff commented around is not good.
Comment 7 Blu3 2010-08-03 14:37:53 UTC
imagine my suprise and reverence in awe that you chose to spend so much more effort writing an unhelpful and useless bug comment all about the evils of comments rather than simply commit a patch with #ifdef SCARD_W_INSERTED_CARD instead.  nobody wants to help you when you do the same things you bitch at people for doing in bug comments.

is it really so hard to do this?

---gnokii-0.6.28/common/phones/pcsc.c.orig     2009-09-07 04:38:34.000000000 -0400
+++ gnokii-0.6.28/common/phones/pcsc.c  2010-08-01 03:37:54.094681757 -0400
@@ -199,7 +199,9 @@
        case SCARD_W_UNPOWERED_CARD:
        case SCARD_W_RESET_CARD:
        case SCARD_W_REMOVED_CARD:
+#ifdef SCARD_W_INSERTED_CARD /* removed from pcsc-lite */
        case SCARD_W_INSERTED_CARD:
+endif
                return GN_ERR_SIMPROBLEM;
        case SCARD_E_NO_MEMORY:
                return GN_ERR_MEMORYFULL;


p.s. the original came from upstream, go yell at him
Comment 8 Nuno Silva 2010-08-04 16:55:09 UTC
I confirm adding the #ifdef works (but note there's a typo, I think you mean "#endif").
Comment 9 Christian Faulhammer (RETIRED) gentoo-dev 2010-08-10 13:14:07 UTC
Should be fixed with the version bump to 0.6.29, please test.