Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 438810 - app-text/calibre-0.9.1 - .../work/calibre/src/calibre/devices/mtp/unix/libmtp.c:131:43: error: ‘LIBMTP_FILETYPE_FOLDER’ undeclared (first use in this function)
Summary: app-text/calibre-0.9.1 - .../work/calibre/src/calibre/devices/mtp/unix/libmtp...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Zac Medico
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2012-10-18 15:14 UTC by Denis
Modified: 2012-10-19 05:06 UTC (History)
0 users

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


Attachments
Build log for calibre-0.9.1 (build.log,32.34 KB, text/plain)
2012-10-18 15:14 UTC, Denis
Details
ebuild environment file (environment,185.54 KB, text/plain)
2012-10-18 15:21 UTC, Denis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Denis 2012-10-18 15:14:11 UTC
Created attachment 326846 [details]
Build log for calibre-0.9.1

Build fails for app-text/calibre-0.9.1

I have tried 
#python-update
and 
#emerge -1 PyQt4 pykde4 calibre

but result is always the same.


####### Building extension libmtp #######
gcc -march=core2 -mtune=generic -O2 -pipe -fPIC -march=core2 -mtune=generic -O2 -pipe -pthread -I/usr/include/python2.7 -c /var/tmp/portage/app-text/calibre-0.9.1/work/calibre/src/calibre/devices/mtp/unix/libmtp.c -o /var/tmp/portage/app-text/calibre-0.9.1/work/calibre/build/objects/libmtp/libmtp.o
/var/tmp/portage/app-text/calibre-0.9.1/work/calibre/src/calibre/devices/mtp/unix/libmtp.c: In function ‘build_file_metadata’:
/var/tmp/portage/app-text/calibre-0.9.1/work/calibre/src/calibre/devices/mtp/unix/libmtp.c:131:43: error: ‘LIBMTP_FILETYPE_FOLDER’ undeclared (first use in this function)
/var/tmp/portage/app-text/calibre-0.9.1/work/calibre/src/calibre/devices/mtp/unix/libmtp.c:131:43: note: each undeclared identifier is reported only once for each function it appears in
/var/tmp/portage/app-text/calibre-0.9.1/work/calibre/src/calibre/devices/mtp/unix/libmtp.c: In function ‘Device_init’:
/var/tmp/portage/app-text/calibre-0.9.1/work/calibre/src/calibre/devices/mtp/unix/libmtp.c:218:17: warning: assignment makes pointer from integer without a cast
/var/tmp/portage/app-text/calibre-0.9.1/work/calibre/src/calibre/devices/mtp/unix/libmtp.c: In function ‘recursive_get_files’:
/var/tmp/portage/app-text/calibre-0.9.1/work/calibre/src/calibre/devices/mtp/unix/libmtp.c:366:11: warning: assignment makes pointer from integer without a cast
/var/tmp/portage/app-text/calibre-0.9.1/work/calibre/src/calibre/devices/mtp/unix/libmtp.c:380:34: error: ‘LIBMTP_FILETYPE_FOLDER’ undeclared (first use in this function)
Error while executing: gcc -march=core2 -mtune=generic -O2 -pipe -fPIC -march=core2 -mtune=generic -O2 -pipe -pthread -I/usr/include/python2.7 -c /var/tmp/portage/app-text/calibre-0.9.1/work/calibre/src/calibre/devices/mtp/unix/libmtp.c -o /var/tmp/portage/app-text/calibre-0.9.1/work/calibre/build/objects/libmtp/libmtp.o

Traceback (most recent call last):
  File "setup.py", line 99, in <module>
    sys.exit(main())
  File "setup.py", line 85, in main
    command.run_all(opts)
  File "/var/tmp/portage/app-text/calibre-0.9.1/work/calibre/setup/__init__.py", line 163, in run_all
    self.run_cmd(self, opts)
  File "/var/tmp/portage/app-text/calibre-0.9.1/work/calibre/setup/__init__.py", line 156, in run_cmd
    self.run_cmd(scmd, opts)
  File "/var/tmp/portage/app-text/calibre-0.9.1/work/calibre/setup/__init__.py", line 159, in run_cmd
    cmd.run(opts)
  File "/var/tmp/portage/app-text/calibre-0.9.1/work/calibre/setup/extensions.py", line 337, in run
    self.build(ext, dest)
  File "/var/tmp/portage/app-text/calibre-0.9.1/work/calibre/setup/extensions.py", line 378, in build
    self.check_call(cmd)
  File "/var/tmp/portage/app-text/calibre-0.9.1/work/calibre/setup/extensions.py", line 412, in check_call
    subprocess.check_call(*args, **kwargs)
  File "/usr/lib64/python2.7/subprocess.py", line 511, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['gcc', '-march=core2', '-mtune=generic', '-O2', '-pipe', '-fPIC', '-march=core2', '-mtune=generic', '-O2', '-pipe', '-pthread', '-I/usr/include/python2.7', '-c', '/var/tmp/portage/app-text/calibre-0.9.1/work/calibre/src/calibre/devices/mtp/unix/libmtp.c', '-o', '/var/tmp/portage/app-text/calibre-0.9.1/work/calibre/build/objects/libmtp/libmtp.o']' returned non-zero exit status 1
 * ERROR: app-text/calibre-0.9.1 failed (install phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line  85:  Called src_install
 *   environment, line 4766:  Called die
 * The specific snippet of code:
 *       PATH=${T}:${PATH} PYTHONPATH=${S}/src${PYTHONPATH:+:}${PYTHONPATH} python setup.py install --root="${D}" --prefix="${EPREFIX}/usr" --libdir="${EPREFIX}/usr/${libdir}" --staging-root="${ED}usr" --staging-libdir="${ED}usr/${libdir}" || die;
 *
 * If you need support, post the output of `emerge --info '=app-text/calibre-0.9.1'`,
 * the complete build log and the output of `emerge -pqv '=app-text/calibre-0.9.1'`.
 * The complete build log is located at '/var/tmp/portage/app-text/calibre-0.9.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-text/calibre-0.9.1/temp/environment'.
 * Working directory: '/var/tmp/portage/app-text/calibre-0.9.1/work/calibre'
 * S: '/var/tmp/portage/app-text/calibre-0.9.1/work/calibre'
Comment 1 Denis 2012-10-18 15:15:41 UTC
Here's my emerge --info

Portage 2.1.11.9 (default/linux/amd64/10.0/desktop/kde, gcc-4.5.4, glibc-2.12.2, 3.0.6-gentoo x86_64)
=================================================================
System uname: Linux-3.0.6-gentoo-x86_64-Intel-R-_Core-TM-_i3_CPU_540_@_3.07GHz-with-gentoo-2.1
Timestamp of tree: Thu, 18 Oct 2012 04:45:01 +0000
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r2, 3.1.5
dev-util/cmake:           2.8.8-r3
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.4.5, 4.5.4
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -mtune=generic -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /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="-march=core2 -mtune=generic -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.tups.lv/source/ http://ftp.ds.karen.hj.se/gentoo/ ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://mirror.elen.ktu.lt/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.lv.gentoo.org/gentoo-portage"
USE="X a52 aac acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif gpm iconv ipv6 jpeg jpeg2k kde kipi lcms libnotify mad mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nsplugin ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pppd qt3support qt4 readline scanner sdl semantic-desktop session spell sse sse2 ssl startup-notification svg tcpd threads tiff truetype udev udisks unicode upower usb vim-syntax vorbis wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" SANE_BACKENDS="pixma" USERLAND="GNU" VIDEO_CARDS="nvidia fbdev intel vesa" 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, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 2 Denis 2012-10-18 15:21:00 UTC
Created attachment 326848 [details]
ebuild environment file
Comment 3 Zac Medico gentoo-dev 2012-10-18 16:17:22 UTC
Do you have media-libs/libmtp installed and if so, what version? Does it help if you rebuild it?
Comment 4 Denis 2012-10-19 04:59:17 UTC
Yes! I had media-libs/libmtp-1.0.3-r1 and updated it to media-libs/libmtp-1.1.4. After that calibre build worked like a charm.

Thanks a lot!
Comment 5 Zac Medico gentoo-dev 2012-10-19 05:06:43 UTC
I've updated the ebuilds to require at least libmtp-1.1.4.