Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 377493 - app-pda/libimobiledevice-1.1.1 fails to compile due to missing GStatBuf in glib
Summary: app-pda/libimobiledevice-1.1.1 fails to compile due to missing GStatBuf in glib
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Olivier Crete (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-03 02:19 UTC by Paul B. Henson
Modified: 2011-09-27 13:40 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 Paul B. Henson 2011-08-03 02:19:25 UTC
idevicebackup2.c: In function ‘mb2_handle_list_directory’:
idevicebackup2.c:913: error: ‘GStatBuf’ undeclared (first use in this function)
idevicebackup2.c:913: error: (Each undeclared identifier is reported only once
idevicebackup2.c:913: error: for each function it appears in.)
idevicebackup2.c:913: error: expected ‘;’ before ‘st’
idevicebackup2.c:914: error: ‘st’ undeclared (first use in this function)

SuSE has a patch that replaces GStatbuf with just struct stat:

https://build.opensuse.org/package/view_file?file=libimobiledevice-gstatbuf-fix.patch&package=libimobiledevice&project=multimedia%3Alibs&srcmd5=2ae4be41ba47300f5ddbfbe54f44877c

After applying this patch the package compiles fine.

Per http://developer.gnome.org/glib/unstable/glib-File-Utilities.html GStatbuf should be in gstdio.h, but perhaps that's for a newer version of glib? The libimobiledevice ebuild requires >=dev-libs/glib-2.14.1, I have 2.14.1 installed. Hmm, looks like 2.28.8 (currently marked stable) includes GStatBuf. 

Perhaps the ebuild glib dep should be increased to whatever version introduced GStatBuf? Or the suse patch applied which is functionally equivilent and won't make people have to update glib :).

Thanks...
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2011-09-27 13:40:47 UTC
+  27 Sep 2011; Samuli Suominen <ssuominen@gentoo.org>
+  libimobiledevice-1.1.1.ebuild:
+  Raise dev-libs/glib requirement (required for GStatBuf) wrt #377493 by Paul
+  B. Henson