There were several errors, but one major one which was similar to what appeared in the output of the ./configure command. I have pasted in the smaller ones first.
The config.log makes some recommendations about how to get around this near the end, but I must be honest, I am not sure what they are referring to here:
**but you can also set the PKG_CONFIG environment to point to the\n");
**| printf("*** correct copy of pkg-config. (In this case, you will have to\n");
**| printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
**| printf("*** so that the correct libraries are found at run-time
Is the solution to edit the configure script?
here are the errors as they appeared in config.log:
configure:2697: gcc -c -g -O2 conftest.c >&5
conftest.c:2: parse error before "me"
configure:2700: $? = 1
configure: failed program was:
| #ifndef __cplusplus
| choke me
| #endif
configure:3798: checking how to run the C preprocessor
configure:3834: gcc -E conftest.c
configure:3840: $? = 0
configure:3872: gcc -E conftest.c
configure:3877:28: ac_nonexistent.h: No such file or directory
configure:3878: $? = 1
configure: failed program was:
| #line 3863 "configure"
| /* confdefs.h. */
| #define PACKAGE_NAME "pygtk"
| #define PACKAGE_TARNAME "pygtk"
| #define PACKAGE_VERSION "1.99.14"
| #define PACKAGE_STRING "pygtk 1.99.14"
| #define PACKAGE_BUGREPORT "http://bugzilla.gnome.org/enter_bug.cgi?product=gnome-python&component=pygtk"
| #define PYGTK_MAJOR_VERSION 1
| #define PYGTK_MINOR_VERSION 99
| #define PYGTK_MICRO_VERSION 14
| #define PACKAGE "pygtk"
| #define VERSION "1.99.14"
| #define HAVE_BIND_TEXTDOMAIN_CODESET 1
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:3916: result: gcc -E
configure:3941: gcc -E conftest.c
configure:3947: $? = 0
configure:3979: gcc -E conftest.c
configure:3984:28: ac_nonexistent.h: No such file or directory
configure:3985: $? = 1
configure: failed program was:
| #line 3970 "configure"
| /* confdefs.h. */
configure:5172: checking if gcc static flag -static works
configure:5197: gcc -o conftest -g -O2 -static conftest.c >&5
/usr/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
configure:5200: $? = 1
configure: failed program was:
| #line 5180 "configure"
| /* confdefs.h. */
configure:8775: checking for pkg-config
configure:8806: result: /usr/bin/pkg-config
configure:8827: checking for GTK+ - version >= 2.0.0
configure:8943: gcc -o conftest -g -O2 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freety$
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2/../../../libpangoxft-1.0.so: undefined reference to `FT_Seek_Stream'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2/../../../libpangoxft-1.0.so: undefined reference to `FT_Get_Short'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2/../../../libpangoxft-1.0.so: undefined reference to `FT_Forget_Frame'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2/../../../libpangoxft-1.0.so: undefined reference to `FT_Access_Frame'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2/../../../libpangoxft-1.0.so: undefined reference to `FT_Get_Long'
collect2: ld returned 1 exit status
configure:8946: $? = 1
configure: program exited with status 1
configure: failed program was:
| #line 8862 "configure"
| /* confdefs.h. */
| #include <gtk/gtk.h>
| #include <stdio.h>
| #include <stdlib.h>
|
| int
| main ()
| {
| int major, minor, micro;
| char *tmp_version;
|
| system ("touch conf.gtktest");
|
| /* HP/UX 9 (%@#!) writes to sscanf strings */
| tmp_version = g_strdup("2.0.0");
| if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
| printf("%s, bad version string\n", "2.0.0");
| exit(1);
| }
|
| if ((gtk_major_version != 2) ||
| (gtk_minor_version != 0) ||
| (gtk_micro_version != 6))
| {
| printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
| 2, 0, 6,
| gtk_major_version, gtk_minor_version, gtk_micro_version);
| printf ("*** was found! If pkg-config was correct, then it is best\n");
| printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
| printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
| printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
| printf("*** required on your system.\n");
| printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
| printf("*** to point to the correct configuration files\n");
| }
| else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
| (gtk_minor_version != GTK_MINOR_VERSION) ||
| (gtk_micro_version != GTK_MICRO_VERSION))
| {
| printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
| GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
| printf("*** library (version %d.%d.%d)\n",
| gtk_major_version, gtk_minor_version, gtk_micro_version);
| }
| else
| {
| if ((gtk_major_version > major) ||
| ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
| ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
| {
| return 0;
| }
| else
| {
| printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
| gtk_major_version, gtk_minor_version, gtk_micro_version);
| printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
| major, minor, micro);
| printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
| printf("***\n");
| printf("*** If you have already installed a sufficiently new version, this error\n");
| printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
| printf("*** being found. The easiest way to fix this is to remove the old version\n");
| printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
| printf("*** correct copy of pkg-config. (In this case, you will have to\n");
| printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
| printf("*** so that the correct libraries are found at run-time))\n");
| }
| }
| return 1;
| }
|
configure:8973: result: no
configure:9007: gcc -o conftest -g -O2 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freety$
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2/../../../libpangoxft-1.0.so: undefined reference to `FT_Seek_Stream'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2/../../../libpangoxft-1.0.so: undefined reference to `FT_Get_Short'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2/../../../libpangoxft-1.0.so: undefined reference to `FT_Forget_Frame'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2/../../../libpangoxft-1.0.so: undefined reference to `FT_Access_Frame'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2/../../../libpangoxft-1.0.so: undefined reference to `FT_Get_Long'
collect2: ld returned 1 exit status
configure:9010: $? = 1
configure: failed program was:
| #line 8987 "configure"
| /* confdefs.h. */
| #include <gtk/gtk.h>
| #include <stdio.h>
|
| int
| main ()
| {
| return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
| ;
| return 0;
| }
configure:9041: error: maybe you want the gtk-gnome-1-2 branch?
Christian Reis wrote:
_______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/On Wed, Jan 01, 2003 at 06:23:33PM -0500, joehill wrote:I read through the config.log file as suggested, but I couldn't see anything there that was helpful, at least at my level of understanding. I would be more than happy to post the contents of that file.config.log will contain the error that the compilation of the gtk test application generated, and it's helpful to understand what is wrong. Can you find it?Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
