[Poppler-bugs] [Bug 28448] New: make fails in glib/demo/main.c:164 error: ‘GFile’ undeclared (first use in this function)
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue Jun 8 09:11:23 PDT 2010
https://bugs.freedesktop.org/show_bug.cgi?id=28448
Summary: make fails in glib/demo/main.c:164 error: ‘GFile’
undeclared (first use in this function)
Product: poppler
Version: unspecified
Platform: x86 (IA32)
OS/Version: Linux (All)
Status: NEW
Severity: minor
Priority: medium
Component: general
AssignedTo: poppler-bugs at lists.freedesktop.org
ReportedBy: rpkelly22 at gmail.com
Created an attachment (id=36153)
--> (https://bugs.freedesktop.org/attachment.cgi?id=36153)
patch fixes compile error
How to reproduce:
1) wget "http://poppler.freedesktop.org/poppler-0.12.4.tar.gz"
2) tar -xzf poppler-0.12.4.tar.gz
3) cd poppler-0.12.4
4) ./configure
5) make
make should fail trying to compile the fail main.c in glib/demo/main.c at line
164:
#if GLIB_CHECK_VERSION (2,15,0)
GFile *file;
file = g_file_new_for_commandline_arg (argv[1]);
uri = g_file_get_uri (file);
g_object_unref (file);
#else
apt-cache showpkg libglib2.0-0 shows 2.16.6-0ubuntu1.2 to be the version number
of GLib, which is why it is inside the #if block. Compilation fails with:
main.c: In function ‘main’:
main.c:164: error: ‘GFile’ undeclared (first use in this function)
main.c:164: error: (Each undeclared identifier is reported only once
main.c:164: error: for each function it appears in.)
main.c:164: error: ‘file’ undeclared (first use in this function)
main.c:166: warning: implicit declaration of function
‘g_file_new_for_commandline_arg’
main.c:167: warning: implicit declaration of function ‘g_file_get_uri’
main.c:167: warning: assignment makes pointer from integer without a cast
If I remove the #if block with the attached patch, it compiles fine.
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Poppler-bugs
mailing list