In order to use perl bindings for glib, you must have glib 2.x and its
prerequisites (pkg-config and a decent standard c library) installed.
glib-2.x is available from http://www.gtk.org, http://www.gnome.org,
etc.

Glib uses unicode internally; therefore this module requires perl 5.8.0
or newer.
----- Original Message ----- From: "Andreas Schroeder" <[EMAIL PROTECTED]>
To: <beginners@perl.org>
Sent: Monday, November 28, 2005 1:35 PM
Subject: Re: want to install


I have Open Suse Linux 10.0 with kernel 2.6.13-15-default and tried to first make the makefile with perl Makefile.PL which suceeded with some warnings.
Then I tried to make the whole module which failed with a lot of errors.

I could list the procedures with resulting output in the ending of this mail.

Andy

-----------------

mymachine:/usr/local/src/perlmodules/Glib-1.101 # perl Makefile.PL
Including ApiDoc pod...
Deleting Glib from doc.pl's $data
Writing build/IFiles.pm
Note (probably harmless): No library found for -lgobject-2.0
Note (probably harmless): No library found for -lglib-2.0
Unrecognized argument in LIBS ignored: '-pthread'
Note (probably harmless): No library found for -lgthread-2.0
Writing Makefile for Glib

mymachine:/usr/local/src/perlmodules/Glib-1.101 # make
Skip blib/arch/Glib/Install/Files.pm (unchanged)
Skip blib/lib/Glib/Object/Subclass.pm (unchanged)
Skip blib/arch/Glib/Install/gperl.h (unchanged)
Skip blib/lib/Glib.pm (unchanged)
Skip blib/lib/Glib/GenPod.pm (unchanged)
Skip blib/lib/Glib/CodeGen.pm (unchanged)
Skip blib/arch/Glib/Install/gperl_marshal.h (unchanged)
Skip blib/lib/Glib/devel.pod (unchanged)
Skip blib/lib/Glib/ParseXSDoc.pm (unchanged)
Skip blib/arch/Glib/Install/doctypes (unchanged)
Skip blib/lib/Glib/MakeHelper.pm (unchanged)
Skip blib/arch/Glib/Install/typemap (unchanged)
cc -c -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -pthread -I. -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -Wall -pipe -DVERSION=\"1.101\" -DXS_VERSION=\"1.101\" -o Glib.o -fPIC "-I/usr/lib/perl5/5.8.7/i586-linux-thread-multi/CORE" Glib.c
In file included from Glib.xs:31:
gperl.h:37:25: error: glib-object.h: Datei oder Verzeichnis nicht gefunden
In file included from Glib.xs:31:
gperl.h:60: error: syntax error before 'gperl_alloc_temp'
gperl.h:60: warning: type defaults to 'int' in declaration of 'gperl_alloc_temp'
gperl.h:60: warning: data definition has no type or storage class
gperl.h:61: error: syntax error before '*' token
gperl.h:61: warning: type defaults to 'int' in declaration of 'gperl_filename_from_sv'
gperl.h:61: warning: data definition has no type or storage class
gperl.h:62: warning: type defaults to 'int' in declaration of 'gchar'
gperl.h:62: error: syntax error before '*' token
gperl.h:64: error: syntax error before 'gperl_str_eq'
gperl.h:64: warning: type defaults to 'int' in declaration of 'gperl_str_eq'
gperl.h:64: warning: data definition has no type or storage class
gperl.h:65: error: syntax error before 'gperl_str_hash'
gperl.h:65: error: syntax error before 'key'
gperl.h:65: warning: type defaults to 'int' in declaration of 'gperl_str_hash'
gperl.h:65: warning: data definition has no type or storage class
gperl.h:80: error: syntax error before 'gperl_type_class'
gperl.h:80: error: syntax error before 'type'
gperl.h:80: warning: type defaults to 'int' in declaration of 'gperl_type_class'
gperl.h:80: warning: data definition has no type or storage class
gperl.h:84: error: syntax error before 'gperl_try_convert_enum'
gperl.h:84: error: syntax error before 'type'
gperl.h:84: warning: type defaults to 'int' in declaration of 'gperl_try_convert_enum'
gperl.h:84: warning: data definition has no type or storage class
gperl.h:85: error: syntax error before 'gperl_convert_enum'
gperl.h:85: error: syntax error before 'type'
gperl.h:85: warning: type defaults to 'int' in declaration of 'gperl_convert_enum'
gperl.h:85: warning: data definition has no type or storage class
gperl.h:86: error: syntax error before 'type'
gperl.h:87: error: syntax error before 'type'
gperl.h:89: error: syntax error before 'gperl_try_convert_flag'
gperl.h:89: error: syntax error before 'type'
gperl.h:89: warning: type defaults to 'int' in declaration of 'gperl_try_convert_flag'
gperl.h:89: warning: data definition has no type or storage class
gperl.h:90: error: syntax error before 'gperl_convert_flag_one'
gperl.h:90: error: syntax error before 'type'
gperl.h:90: warning: type defaults to 'int' in declaration of 'gperl_convert_flag_one'
gperl.h:90: warning: data definition has no type or storage class
gperl.h:91: error: syntax error before 'gperl_convert_flags'
gperl.h:91: error: syntax error before 'type'
gperl.h:91: warning: type defaults to 'int' in declaration of 'gperl_convert_flags'
gperl.h:91: warning: data definition has no type or storage class
gperl.h:92: error: syntax error before 'type'
gperl.h:98: warning: type defaults to 'int' in declaration of 'GValue'
gperl.h:98: error: syntax error before '*' token
gperl.h:99: error: syntax error before '*' token
gperl.h:107: error: syntax error before 'gtype'
gperl.h:108: error: syntax error before 'gtype'
gperl.h:110: error: syntax error before 'gperl_fundamental_type_from_package' gperl.h:110: warning: type defaults to 'int' in declaration of 'gperl_fundamental_type_from_package'
gperl.h:110: warning: data definition has no type or storage class
gperl.h:111: error: syntax error before 'gtype'
gperl.h:112: error: syntax error before 'gtype'
gperl.h:118: error: syntax error before '*' token
gperl.h:119: error: syntax error before 'GError'
gperl.h:121: error: syntax error before 'domain'
gperl.h:125: error: syntax error before 'GError'
gperl.h:138: error: syntax error before 'gperl_type_from_package'
gperl.h:138: warning: type defaults to 'int' in declaration of 'gperl_type_from_package'
gperl.h:138: warning: data definition has no type or storage class
gperl.h:139: error: syntax error before 'type'
gperl.h:147: error: syntax error before 'gperl_sv_get_type'
gperl.h:147: error: syntax error before 'G_GNUC_CONST'
gperl.h:147: warning: type defaults to 'int' in declaration of 'G_GNUC_CONST'
gperl.h:147: warning: data definition has no type or storage class
gperl.h:157: error: syntax error before '*' token
gperl.h:157: warning: type defaults to 'int' in declaration of 'SvGChar'
gperl.h:157: warning: data definition has no type or storage class
gperl.h:158: warning: type defaults to 'int' in declaration of 'gchar'
gperl.h:158: error: syntax error before '*' token
gperl.h:165: error: syntax error before 'gperl_value_from_sv'
gperl.h:165: error: syntax error before '*' token
gperl.h:165: warning: type defaults to 'int' in declaration of 'gperl_value_from_sv'
gperl.h:165: warning: data definition has no type or storage class
gperl.h:166: warning: type defaults to 'int' in declaration of 'GValue'
gperl.h:166: error: syntax error before '*' token
gperl.h:174: error: syntax error before 'gtype'
gperl.h:178: error: syntax error before '*' token
gperl.h:178: error: syntax error before 'gtype'
gperl.h:180: warning: type defaults to 'int' in declaration of 'gpointer'
gperl.h:180: error: 'gpointer' declared as function returning a function
gperl.h:185: error: syntax error before 'GPerlBoxedUnwrapFunc'
gperl.h:185: warning: no semicolon at end of struct or union
gperl.h:187: error: syntax error before '}' token
gperl.h:191: error: syntax error before 'gtype'
gperl.h:195: error: syntax error before 'GType'
gperl.h:196: error: syntax error before 'GType'
gperl.h:197: error: syntax error before 'GType'
gperl.h:197: error: 'gperl_get_boxed_check' declared as function returning a function
gperl.h:200: error: syntax error before 'gperl_boxed_type_from_package'
gperl.h:200: warning: type defaults to 'int' in declaration of 'gperl_boxed_type_from_package'
gperl.h:200: warning: data definition has no type or storage class
gperl.h:201: error: syntax error before 'type'
gperl.h:207: error: syntax error before 'gtype'
gperl.h:209: error: syntax error before '*' token
gperl.h:210: error: syntax error before 'gtype'
gperl.h:213: error: syntax error before 'gtype'
gperl.h:215: error: syntax error before 'gtype'
gperl.h:216: error: syntax error before 'gtype'
gperl.h:217: error: syntax error before 'gperl_object_type_from_package'
gperl.h:217: warning: type defaults to 'int' in declaration of 'gperl_object_type_from_package'
gperl.h:217: warning: data definition has no type or storage class
gperl.h:219: error: syntax error before '*' token
gperl.h:221: error: syntax error before '*' token
gperl.h:221: warning: type defaults to 'int' in declaration of 'gperl_get_object'
gperl.h:221: warning: data definition has no type or storage class
gperl.h:222: error: syntax error before '*' token
gperl.h:222: error: syntax error before 'GType'
gperl.h:222: warning: type defaults to 'int' in declaration of 'gperl_get_object_check'
gperl.h:222: warning: data definition has no type or storage class
gperl.h:224: error: syntax error before 'GType'
gperl.h:227: error: syntax error before 'gchar_length'
gperl.h:227: warning: type defaults to 'int' in declaration of 'gchar_length'
gperl.h:227: warning: data definition has no type or storage class
gperl.h:228: error: syntax error before 'gchar_own'
gperl.h:228: warning: type defaults to 'int' in declaration of 'gchar_own'
gperl.h:228: warning: data definition has no type or storage class
gperl.h:229: error: syntax error before 'gchar_ornull'
gperl.h:229: warning: type defaults to 'int' in declaration of 'gchar_ornull'
gperl.h:229: warning: data definition has no type or storage class
gperl.h:232: error: syntax error before 'GObject_ornull'
gperl.h:232: warning: type defaults to 'int' in declaration of 'GObject_ornull'
gperl.h:232: warning: data definition has no type or storage class
gperl.h:233: error: syntax error before 'GObject_noinc'
gperl.h:233: warning: type defaults to 'int' in declaration of 'GObject_noinc'
gperl.h:233: warning: data definition has no type or storage class
gperl.h:234: error: syntax error before '*' token
gperl.h:234: warning: type defaults to 'int' in declaration of 'GPerlFilename'
gperl.h:234: warning: data definition has no type or storage class
gperl.h:235: error: syntax error before '*' token
gperl.h:235: warning: type defaults to 'int' in declaration of 'GPerlFilename_const'
gperl.h:235: warning: data definition has no type or storage class
gperl.h:236: error: syntax error before '*' token
gperl.h:236: warning: type defaults to 'int' in declaration of 'GPerlFilename_own'
gperl.h:236: warning: data definition has no type or storage class
gperl.h:237: error: syntax error before 'GPerlFilename_ornull'
gperl.h:237: warning: type defaults to 'int' in declaration of 'GPerlFilename_ornull'
gperl.h:237: warning: data definition has no type or storage class
gperl.h:248: error: syntax error before 'flags'
gperl.h:249: error: syntax error before 'SvGSignalFlags'
gperl.h:249: warning: type defaults to 'int' in declaration of 'SvGSignalFlags'
gperl.h:249: warning: data definition has no type or storage class
gperl.h:250: error: syntax error before '*' token
gperl.h:251: error: syntax error before '*' token
gperl.h:253: error: syntax error before 'instance_type'
gperl.h:256: error: syntax error before 'gperl_signal_connect'
gperl.h:260: error: syntax error before 'GConnectFlags'
gperl.h:260: warning: type defaults to 'int' in declaration of 'gperl_signal_connect'
gperl.h:260: warning: data definition has no type or storage class
gperl.h:268: error: syntax error before 'GClosure'
gperl.h:268: warning: no semicolon at end of struct or union
gperl.h:271: error: syntax error before 'swap'
gperl.h:271: warning: type defaults to 'int' in declaration of 'swap'
gperl.h:271: warning: data definition has no type or storage class
gperl.h:273: error: syntax error before '}' token
gperl.h:279: error: syntax error before '*' token
gperl.h:281: error: syntax error before 'gboolean'
gperl.h:281: warning: type defaults to 'int' in declaration of 'gperl_closure_new'
gperl.h:281: warning: data definition has no type or storage class
gperl.h:283: error: syntax error before '*' token
gperl.h:285: error: syntax error before 'gboolean'
gperl.h:286: warning: type defaults to 'int' in declaration of 'gperl_closure_new_with_marshaller'
gperl.h:286: warning: data definition has no type or storage class
gperl.h:294: error: syntax error before 'gint'
gperl.h:294: warning: no semicolon at end of struct or union
gperl.h:295: warning: type defaults to 'int' in declaration of 'param_types'
gperl.h:295: warning: data definition has no type or storage class
gperl.h:296: error: syntax error before 'return_type'
gperl.h:296: warning: type defaults to 'int' in declaration of 'return_type'
gperl.h:296: warning: data definition has no type or storage class
gperl.h:300: error: syntax error before '}' token
gperl.h:304: error: syntax error before 'gint'
gperl.h:311: error: syntax error before 'GValue'
gperl.h:318: error: syntax error before '*' token
gperl.h:319: error: syntax error before 'tag'
gperl.h:325: error: syntax error before 'gperl_handle_logs_for'
gperl.h:325: warning: type defaults to 'int' in declaration of 'gchar'
gperl.h:325: error: syntax error before '*' token
gperl.h:325: warning: type defaults to 'int' in declaration of 'gperl_handle_logs_for'
gperl.h:325: warning: data definition has no type or storage class
gperl.h:330: error: syntax error before '*' token
gperl.h:331: error: syntax error before '*' token
gperl.h:331: warning: type defaults to 'int' in declaration of 'SvGParamSpec'
gperl.h:331: warning: data definition has no type or storage class
gperl.h:332: error: syntax error before 'flags'
gperl.h:333: error: syntax error before 'SvGParamFlags'
gperl.h:333: warning: type defaults to 'int' in declaration of 'SvGParamFlags'
gperl.h:333: warning: data definition has no type or storage class
gperl.h:338:24: error: missing binary operator before token "("
gperl.h:345: error: syntax error before 'gtype'
Glib.xs:85: error: 'gperl_alloc_temp' declared as function returning a function
Glib.xs: In function 'gperl_alloc_temp':
Glib.xs:89: warning: implicit declaration of function 'g_return_val_if_fail'
Glib.xs:93: warning: return makes integer from pointer without a cast
Glib.xs: At top level:
Glib.xs:103: error: syntax error before '*' token
Glib.xs:105: warning: return type defaults to 'int'
Glib.xs: In function 'gperl_filename_from_sv':
Glib.xs:108: error: 'GError' undeclared (first use in this function)
Glib.xs:108: error: (Each undeclared identifier is reported only once
Glib.xs:108: error: for each function it appears in.)
Glib.xs:108: error: 'error' undeclared (first use in this function)
Glib.xs:109: error: 'gchar' undeclared (first use in this function)
Glib.xs:109: error: 'lname' undeclared (first use in this function)
Glib.xs:111: error: 'filename' undeclared (first use in this function)
Glib.xs:115: warning: implicit declaration of function 'g_filename_from_utf8'
Glib.xs:121: warning: implicit declaration of function 'g_free'
Glib.xs: At top level:
Glib.xs:132: warning: type defaults to 'int' in declaration of 'gchar'
Glib.xs:132: error: syntax error before '*' token
Glib.xs: In function 'gperl_sv_from_filename':
Glib.xs:134: error: 'GError' undeclared (first use in this function)
Glib.xs:134: error: 'error' undeclared (first use in this function)
Glib.xs:136: error: 'gsize' undeclared (first use in this function)
Glib.xs:136: error: syntax error before 'len'
Glib.xs:137: error: 'gchar' undeclared (first use in this function)
Glib.xs:137: error: 'str' undeclared (first use in this function)
Glib.xs:137: warning: implicit declaration of function 'g_filename_to_utf8'
Glib.xs:137: error: 'filename' undeclared (first use in this function)
Glib.xs:137: error: 'len' undeclared (first use in this function)
Glib.xs: At top level:
Glib.xs:156: error: syntax error before 'gperl_str_eq'
Glib.xs:158: warning: return type defaults to 'int'
Glib.xs:176: error: syntax error before 'gperl_str_hash'
Glib.xs:176: error: syntax error before 'key'
Glib.xs:177: warning: return type defaults to 'int'
Glib.xs: In function 'gperl_str_hash':
Glib.xs:178: error: 'key' undeclared (first use in this function)
Glib.xs:179: error: 'guint' undeclared (first use in this function)
Glib.xs:179: error: syntax error before 'h'
Glib.xs:181: error: 'h' undeclared (first use in this function)
Glib.xs: In function 'gperl_argv_new':
Glib.xs:207: warning: implicit declaration of function 'g_new'
Glib.xs:207: error: syntax error before 'GPerlArgv'
Glib.xs:233: warning: implicit declaration of function 'g_new0'
Glib.xs:233: error: syntax error before 'char'
Glib.xs:234: error: syntax error before 'char'
Glib.xs:242: warning: implicit declaration of function 'g_strdup'
Glib.xs:242: warning: assignment makes pointer from integer without a cast
Glib.xs: In function 'gperl_argv_free':
Glib.xs:275: warning: implicit declaration of function 'g_strfreev'
Glib.c: In function 'XS_Glib_filename_from_unicode':
Glib.c:280: error: syntax error before 'class_or_filename'
Glib.c:286: error: 'filename' undeclared (first use in this function)
Glib.c:288: error: syntax error before 'gperl_filename_from_sv'
Glib.xs:365: error: 'class_or_filename' undeclared (first use in this function)
Glib.c: In function 'XS_Glib_filename_to_unicode':
Glib.c:305: error: syntax error before 'RETVAL'
Glib.xs:375: error: 'RETVAL' undeclared (first use in this function)
Glib.xs: In function 'XS_Glib_filename_from_uri':
Glib.xs:385: error: 'gchar' undeclared (first use in this function)
Glib.xs:385: error: 'filename' undeclared (first use in this function)
Glib.xs:388: error: 'GError' undeclared (first use in this function)
Glib.xs:388: error: 'error' undeclared (first use in this function)
Glib.xs:392: warning: implicit declaration of function 'g_filename_from_uri'
Glib.xs: In function 'XS_Glib_filename_to_uri':
Glib.xs:411: error: 'GError' undeclared (first use in this function)
Glib.xs:411: error: 'error' undeclared (first use in this function)
Glib.c:366: error: 'RETVAL' undeclared (first use in this function)
Glib.xs:425: warning: implicit declaration of function 'g_filename_to_uri'
Glib.xs: In function 'boot_Glib':
Glib.xs:313: warning: implicit declaration of function 'g_type_init'
Glib.xs:332:24: error: missing binary operator before token "("
Glib.xs:337: error: 'glib_major_version' undeclared (first use in this function) Glib.xs:337: error: 'GLIB_MAJOR_VERSION' undeclared (first use in this function) Glib.xs:340: error: 'glib_minor_version' undeclared (first use in this function) Glib.xs:340: error: 'GLIB_MINOR_VERSION' undeclared (first use in this function) Glib.xs:344: error: 'glib_micro_version' undeclared (first use in this function) Glib.xs:344: error: 'GLIB_MICRO_VERSION' undeclared (first use in this function)
make: *** [Glib.o] Fehler 1

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>





--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to