mtpfs fails to install

Anything that pertains to Portage

Moderator: Moderators

mtpfs fails to install

Postby gav989 » Fri Jan 01, 2010 13:08

I'm trying to install mtpfs (with the hope of being able to add files to my creative zen v plus)

so far i've added the akoya overlay using
Code: Select all
layman -a akoya

before it would let me do that i had to run
Code: Select all
emerge dev-util/mercurial

(not sure what that is but it let me add the overlay so i'm happy)

I then ran
Code: Select all
emerge mtpfs


which failed and gave me a log file containing the following:
Code: Select all
 * CPV:  sys-fs/mtpfs-0.7
 * REPO: akoya
 * USE:  elibc_glibc kernel_linux userland_GNU x86
>>> Unpacking source...
>>> Unpacking mtpfs-0.7.tar.gz to /var/tmp/portage/sys-fs/mtpfs-0.7/work
>>> Source unpacked in /var/tmp/portage/sys-fs/mtpfs-0.7/work
>>> Compiling source in /var/tmp/portage/sys-fs/mtpfs-0.7/work/mtpfs-0.7.orig ...
./configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-debug
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i686-pc-linux-gnu-gcc accepts -g... yes
checking for i686-pc-linux-gnu-gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of i686-pc-linux-gnu-gcc... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking for i686-pc-linux-gnu-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for FUSE... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
make -j2 -s
mtpfs.c: In function ‘save_playlist’:
mtpfs.c:142: error: too many arguments to function ‘LIBMTP_Create_New_Playlist’
mtpfs.c: In function ‘mtpfs_release’:
mtpfs.c:416: error: too many arguments to function ‘LIBMTP_Send_Track_From_File_Descriptor’
mtpfs.c:432: error: too many arguments to function ‘LIBMTP_Send_File_From_File_Descriptor’
mtpfs.c: In function ‘mtpfs_mkdir’:
mtpfs.c:845: error: too few arguments to function ‘LIBMTP_Create_Folder’
make: *** [mtpfs-mtpfs.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from /usr/include/string.h:640,
                 from id3read.c:22:
In function ‘strncat’,
    inlined from ‘getTracknum’ at id3read.c:272:
/usr/include/bits/string3.h:153: warning: call to __builtin___strncat_chk might overflow destination buffer
>>> Source compiled.
>>> Test phase [not enabled]: sys-fs/mtpfs-0.7

>>> Install mtpfs-0.7 into /var/tmp/portage/sys-fs/mtpfs-0.7/image/ category sys-fs
mtpfs.c: In function ‘save_playlist’:
mtpfs.c:142: error: too many arguments to function ‘LIBMTP_Create_New_Playlist’
mtpfs.c: In function ‘mtpfs_release’:
mtpfs.c:416: error: too many arguments to function ‘LIBMTP_Send_Track_From_File_Descriptor’
mtpfs.c:432: error: too many arguments to function ‘LIBMTP_Send_File_From_File_Descriptor’
mtpfs.c: In function ‘mtpfs_mkdir’:
mtpfs.c:845: error: too few arguments to function ‘LIBMTP_Create_Folder’
make: *** [mtpfs-mtpfs.o] Error 1
 * ERROR: sys-fs/mtpfs-0.7 failed:
 *   einstall failed
 *
 * Call stack:
 *     ebuild.sh, line   55:  Called src_install
 *   environment, line 2304:  Called einstall
 *     ebuild.sh, line  589:  Called die
 * The specific snippet of code:
 *         ${MAKE:-make} prefix="${D}usr" \
 *            datadir="${D}usr/share" \
 *            infodir="${D}usr/share/info" \
 *            localstatedir="${D}var/lib" \
 *            mandir="${D}usr/share/man" \
 *            sysconfdir="${D}etc" \
 *            ${LOCAL_EXTRA_EINSTALL} \
 *            ${MAKEOPTS} ${EXTRA_EMAKE} -j1 \
 *            "$@" install || die "einstall failed"
 *
 * If you need support, post the output of 'emerge --info =sys-fs/mtpfs-0.7',
 * the complete build log and the output of 'emerge -pqv =sys-fs/mtpfs-0.7'.
 * This ebuild is from an overlay named 'akoya': '/usr/local/portage/layman/akoya/'
 * The complete build log is located at '/var/lib/entropy/logs/sys-fs:mtpfs-0.7:20100101-115300.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-fs/mtpfs-0.7/temp/environment'.
 * S: '/var/tmp/portage/sys-fs/mtpfs-0.7/work/mtpfs-0.7.orig'


does anyone know how to solve this?
gav989
Simple Hen
 
Posts: 47
Joined: Wed Dec 09, 2009 11:27

Re: mtpfs fails to install

Postby Fitzcarraldo » Fri Jan 01, 2010 13:36

Don't know, but from the error log you posted it looks like there could be an incompatibility with libmtp. Which version of libmtp have you got installed?

Also, there's an mtpfs ebuild dated 11 Sept. 2009 in Gentoo Bugzilla Bug Report No. 259079, so you could try that ebuild instead, in a local overlay (see SL Wiki and various SL Forums threadfs for how to install packages in local overlays).
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7335
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: mtpfs fails to install

Postby gav989 » Fri Jan 01, 2010 14:03

currently have libmtp 1.0.1

i'll have a look at that ebuild, thanks for the help
gav989
Simple Hen
 
Posts: 47
Joined: Wed Dec 09, 2009 11:27

Re: mtpfs fails to install

Postby gav989 » Fri Jan 01, 2010 14:42

you explained here
how to go about using local overlays; how did you know which directories to make?

example:
Code: Select all
2. Create the directory (well, directories, to be precise) /usr/local/portage/app-emulation/emul-linux-x86-bjdeps/

3. Create the directory (well, directories, to be precise) /usr/local/portage/net-print/cnijfilter/


i can't work out from the bugzilla page you linked me to where i would need to put the new ebuild


EDIT: i worked it out, for those reading - the mtpfs-0.9.ebuild file needs to go in /usr/local/portage/sys-fs/mtpfs/
gav989
Simple Hen
 
Posts: 47
Joined: Wed Dec 09, 2009 11:27

Re: mtpfs fails to install

Postby Thev00d00 » Fri Jan 01, 2010 19:53

it should be
Code: Select all
${CATEGORY}/${PN}/${PVR}.ebuild

or in human:
Code: Select all
category/packagename/packagename-version.ebuild
Image
Please report Bugs on the Bugzilla, not forum
Please Adopt an Unanswered thread
Website / Blog : v00d00.net
twitter: Follow Me
G+: Circle Me
User avatar
Thev00d00
Generally Awesome (tm)
 
Posts: 1467
Joined: Wed Feb 21, 2007 15:52
Location: United Kingdom


Return to Portage|Emerge Package Managers

Who is online

Users browsing this forum: No registered users and 2 guests