Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 139534 - libgphoto2-2.2.1 build fails with "error: 'String' undeclared"
Summary: libgphoto2-2.2.1 build fails with "error: 'String' undeclared"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Alastair Tse (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-07 03:37 UTC by Samuli Suominen (RETIRED)
Modified: 2006-07-11 03:23 UTC (History)
3 users (show)

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


Attachments
Fixes the compilation of libgphoto2 (libgphoto2-2.2.1-ngettext.patch,433 bytes, patch)
2006-07-07 23:27 UTC, Andrew Resch
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Samuli Suominen (RETIRED) gentoo-dev 2006-07-07 03:37:51 UTC
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../libgphoto2_port/libgphoto2_port -I../../libgphoto2_port -I../../libgphoto2 -I../../libgphoto2 -DLOCALEDIR=\"/usr/share/locale\" -DCAMLIBS=\"/usr/lib/libgphoto2/2.2.1\" -Wall -Wmissing-declarations -Wmissing-prototypes -g -g -march=athlon-xp -O3 -pipe -MT library.lo -MD -MP -MF .deps/library.Tpo -c library.c  -fPIC -DPIC -o .libs/library.o
sonix.c: In function 'sonix_init':
sonix.c:48: warning: pointer targets in passing argument 2 of 'SONIX_READ' differ in signedness
sonix.c:54: warning: pointer targets in passing argument 2 of 'SONIX_READ' differ in signedness
sonix.c:60: warning: pointer targets in passing argument 2 of 'SONIX_COMMAND' differ in signedness
sonix.c:64: warning: pointer targets in passing argument 2 of 'SONIX_READ' differ in signedness
sonix.c:66: warning: pointer targets in passing argument 2 of 'SONIX_READ' differ in signedness
sonix.c:69: warning: pointer targets in passing argument 2 of 'SONIX_READ4' differ in signedness
sonix.c:70: warning: pointer targets in passing argument 2 of 'SONIX_READ' differ in signedness
sonix.c:75: warning: pointer targets in passing argument 2 of 'SONIX_COMMAND' differ in signedness
sonix.c:85: warning: pointer targets in passing argument 2 of 'SONIX_READ4' differ in signedness
sonix.c:86: warning: pointer targets in passing argument 2 of 'SONIX_READ' differ in signedness
sonix.c:95: warning: pointer targets in passing argument 2 of 'SONIX_READ' differ in signedness
sonix.c:96: warning: pointer targets in passing argument 2 of 'SONIX_COMMAND' differ in signedness
sonix.c:98: warning: pointer targets in passing argument 2 of 'SONIX_READ' differ in signedness
sonix.c:100: warning: pointer targets in passing argument 2 of 'SONIX_READ4' differ in signedness
sonix.c:113: warning: pointer targets in passing argument 2 of 'SONIX_READ' differ in signedness
sonix.c: In function 'sonix_get_picture_width':
sonix.c:137: warning: pointer targets in passing argument 2 of 'SONIX_COMMAND' differ in signedness
sonix.c:139: warning: pointer targets in passing argument 2 of 'SONIX_READ4' differ in signedness
sonix.c: In function 'sonix_read_picture_data':
sonix.c:180: warning: pointer targets in passing argument 2 of 'SONIX_COMMAND' differ in signedness
sonix.c:183: warning: pointer targets in passing argument 2 of 'SONIX_READ4' differ in signedness
sonix.c: In function 'sonix_delete_all_pics':
sonix.c:204: warning: pointer targets in passing argument 2 of 'SONIX_COMMAND' differ in signedness
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../libgphoto2_port/libgphoto2_port -I../../libgphoto2_port -I../../libgphoto2 -I../../libgphoto2 -DLOCALEDIR=\"/usr/share/locale\" -DCAMLIBS=\"/usr/lib/libgphoto2/2.2.1\" -Wall -Wmissing-declarations -Wmissing-prototypes -g -g -march=athlon-xp -O3 -pipe -MT sonix.lo -MD -MP -MF .deps/sonix.Tpo -c sonix.c -o sonix.o >/dev/null 2>&1
library.c: In function 'camera_summary':
library.c:97: error: 'String' undeclared (first use in this function)
library.c:97: error: (Each undeclared identifier is reported only once
library.c:97: error: for each function it appears in.)
library.c: In function 'get_file_func':
library.c:182: warning: pointer targets in passing argument 3 of 'sonix_read_picture_data' differ in signedness
library.c:190: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness
library.c:191: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
library.c:192: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
library.c:206: warning: pointer targets in passing argument 2 of 'gp_file_set_data_and_size' differ in signedness
library.c:218: warning: pointer targets in passing argument 3 of 'sonix_read_picture_data' differ in signedness
library.c:221: warning: pointer targets in passing argument 2 of 'gp_file_append' differ in signedness
make[3]: *** [library.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/portage/libgphoto2-2.2.1/work/libgphoto2-2.2.1/camlibs/sonix'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/libgphoto2-2.2.1/work/libgphoto2-2.2.1/camlibs'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/libgphoto2-2.2.1/work/libgphoto2-2.2.1'
make: *** [all] Error 2

Portage 2.1.1_pre2-r4 (default-linux/x86/2006.0, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.17-gentoo i686)
=================================================================
System uname: 2.6.17-gentoo i686 AMD Athlon(tm) XP 2200+
Gentoo Base System version 1.12.1
ccache version 2.4 [enabled]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17.50.0.2
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-g -march=athlon-xp -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-g -march=athlon-xp -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache collision-protect distlocks metadata-transfer sandbox sfperms splitdebug strict"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/overlay /usr/portage/local/layman/sunrise"
SYNC="rsync://trumpetti.atm.tut.fi/gentoo-portage"
USE="x86 3dnow 3dnowext X a52 aac aalib alsa apm asf avi bash-completion berkdb bitmap-fonts bzip2 cairo cdparanoia cdr cli compositor crypt dbus dlloader dri dts dvd dvdread emboss encode ffmpeg firefox flac foomaticdb fortran gdbm gif glitz glut gphoto2 gstreamer gtk gtk2 hal imagemagick imlib insecure-savers ipv6 isdnlog jpeg libcaca libg++ libnotify libwww mad matroska mikmod mmx mmxext motif mozcalendar mp3 mpeg mplayer ncurses nptl nptlonly offensive ogg openal opengl oss pam pcre pdf pdflib perl pic png pppd python quicktime readline real reflection rtc sdl session speex spl sse ssl startup-notification svg tcpd theora tiff truetype truetype-fonts type1-fonts udev unicode usb userlocales v4l vidix vorbis win32codecs xanim xcb xml xml2 xorg xscreensaver xv xvid zlib elibc_glibc input_devices_keyboard input_devices_evdev kernel_linux userland_GNU video_cards_radeon video_cards_ati video_cards_r200"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS

FYI, I also tried with LDFLAGS="" CFLAGS="" CXXFLAGS="".

[ebuild     U ] media-libs/libgphoto2-2.2.1 [2.1.6-r2] USE="hal% usb% -doc -exif -nls" 0 kB

- drac
Comment 1 Devon Warren 2006-07-07 09:10:20 UTC
I confirm this, got the same error with 2.2.0 when that was the newest version.

emerge --info
Portage 2.1.1_pre2-r4 (default-linux/amd64/2006.0, gcc-4.1.1/amd64-vanilla, glibc-2.4-r3, 2.6.17-gentoo x86_64)
=================================================================
System uname: 2.6.17-gentoo x86_64 AMD Athlon(tm) 64 Processor 3700+
Gentoo Base System version 1.12.1
ccache version 2.4 [enabled]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  0.4.2-r1
sys-apps/sandbox:    1.2.18.1
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-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O3 -pipe -msse3"
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/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=k8 -O3 -pipe -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.twaren.net/Linux/Gentoo/ http://ftp.twaren.net/Linux/Gentoo/ http://mirror.datapipe.net/gentoo ftp://ftp.ndlug.nd.edu/pub/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/overlays/break-my-gentoo-main/bmg-main /usr/local/overlays/yao /usr/local/overlays/ecatmur /usr/local/overlays/portage-xgl /usr/local/overlays/flameeyes-overlay /usr/local/overlays/pro-audio /usr/local/overlays/xwing /usr/local/overlays/sunrise /usr/local/overlays/hanno-xgl"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 3ds 7zip X X509 Xaw3d a52 aac aalib accessibility acpi aim aimextras aio akode allegro alsa amarok amd animation ao aotuv apache2 applet arts artswrappersuid artworkextra asf async atk atlas audiofile automount avi bash-completion bcmath bdf beagle berkdb bitmap-fonts bittorrent bl blender-game bootsplash buttons bzip2 c++ cairo calendar canvas cdda cddb cdinstall cdio cdparanoia cdr cdrom cg chm chroot clamav clamd clanJavaScript cli compositor courier cpudetection cracklib crypt cscope css csv cups curl curlwrappers custom-cflags cvs cvsgraph daap dar64 dbus dedicated devil dga dhcp diet dio dlloader dmalloc dmi dnd doc dri dvb dvd dvdr dvdread ecc editor effects emboss emoticon emul-linux-x86 encode enscript esd ethereal examples exif expat exscalibar ext-png ext-zlib extensions extrafilters extraicons extramodules extras fame fat festival ffmpeg figlet flac flash flood fluidsynth fmod font-server foomaticdb fortran fpx freetype ftp fuse gcj gecko-sdk geoip gif gimp gimpprint gimpshop glep glibc glitz glut glx gmail gmailtimestamps gmp gnet gnome-print gnomedb gnuplot gnutls google gpg2-experimental gpgme gphoto2 gpm gps graphviz gs gsm gstreamer gstreamer010 gtalk gtk gtk2 gtkhtml gzip h323 hal hddtemp hlapi hpn html http httpd icq id3 ifp ilbc image imagemagick imlib imlib2 inifile inkjar input_devices_keyboard input_devices_mouse input_devices_penmount ipod ipv6 isdnlog j2ee jabber jack-tmpfs java javascript jcs jikes jingle john jp2 jpeg jpeg2k jrtplib justify jython kcal kde kdeenablefinal kdepim kig-scripting kipi ladcca ladspa lame libcaca libclamav libsamplerate libtommath libvisual libwww lids lirc live lm_sensors logitech-mouse lua lzo lzw lzw-tiff mad mapeditor maps math mbrola mcal md5sum mem-cache menubar mew mikmod mime mimencode ming mixer mjpeg mng mod mod_python modplug mono moodbar motif moviepack moviesounds mozcalendar mozdevelop moznocompose moznomail moznoroaming mozsha1 mozsvg mp3 mp4 mp4live mpeg mpeg2 mpeg4 mpegts mpi mplayer msession musepack music musicbrainz mysql mythtv ncurses net network networkmanager new-login nforce2 njb nntp nptl nptlonly nsplugin nspr ntfs ntlm numarray numeric nvidia nxclient oav ode offensive ogg oggvorbis ogm ogre on-the-fly-crypt openal openexr opengl openntpd openssh openssl ortp osc oscache oscar oss paint_patch pam pango password pcapnav pci pcre pda pdf pdfkit pdflib perl pertty php physfs pic pike player plib plotutils png pop portaudio postscript povray ppds pppd prelude priority pyste python pyzor qt qt3 qt4 quicktime rar razor rdesktop readline realms recode reflection reiser4 reiserfs remix rogue rplay rrdtool rsh rss rtc rtsp ruby samba sametime sample scanner sdk sdl seamonkey sendfile sensord server session sftp shared shorten silvercity silverxp skins slp smime sms sndfile sofia-sip sounds sox spamassassin speech speedo speex spell spl spreadsheet sql sqlite sqlite3 ssl stats stencil-buffer stream streamzap subp subtitles subversion svg svgz swat switch_all_desktops syslog szip tcltk tcpd themes theora thesaurus thumbnail tidy tiff tomsfastmath toolbar tools transcode truetype truetype-fonts type1 type1-fonts udev uml unicode upnp usb userlocales v4l v4l2 vcd vcdimager vchroot vfat video_cards_nv video_cards_nvidia video_cards_v4l videos vim vim-pager vim-with-x virus-scan visualization vlm vnc voice vorbis webservices wifi wma wma123 wmf wmp wordperfect wv wxgtk1 wxwindows x11vnc x264 xanim xcomposite xface xfs xine xml xml2 xmlreader xmlrpc xmlwriter xmms xorg xpm xprint xrandr xscreensaver xsl xslt xv xvid xvmc yahoo yp zeroconf zip zlib elibc_glibc kernel_linux userland_GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Andrew Resch 2006-07-07 23:27:48 UTC
Created attachment 91192 [details, diff]
Fixes the compilation of libgphoto2
Comment 3 Andrew Resch 2006-07-07 23:28:49 UTC
I have made a simple patch to fix the bug.  This bug only affects users with USE="-nls".  
Comment 4 Daniel Drake (RETIRED) gentoo-dev 2006-07-11 03:23:02 UTC
Obviously correct and the same fix is merged upstream, thanks. Committed.