Could not run GTK+,GLIB test program

Could not run GTK+,GLIB test program

offline
  • Pridružio: 15 Avg 2005
  • Poruke: 112
  • Gde živiš: Belgrade

Imam problem prilikom instalacije Wireshark-a. Kada pokrenem ./configure drnda pa mi pokaze ovo :

checking for pkg-config... /usr/bin/pkg-config
checking for GTK+ - version >= 2.0.0... no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK+ is incorrectly installed.
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for GLIB - version >= 2.0.0... no
*** Could not run GLIB test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GLIB is incorrectly installed.
configure: error: GLib2 distribution not found.

Kada pogledam u config.log vidim ovo:

...
configure:20791: checking for GTK+ - version >= 2.0.0
configure:20906: gcc -o conftest -D_U_="__attribute__((unused))" -Wall -Wpointer-arith -W -g -O2 -I/usr/local/include -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/X11R6/include -I/usr/include/libpng12 -I/usr/local/include -L/usr/local/lib conftest.c -pthread -L/usr/X11R6/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lfreetype -lz -lfontconfig -lXrender -lX11 -lXext -lpng12 -lgthread-2.0 -lglib-2.0 >&5
conftest.c: In function `main':
conftest.c:76: warning: comparison between signed and unsigned
conftest.c:77: warning: comparison between signed and unsigned
conftest.c:77: warning: comparison between signed and unsigned
conftest.c:78: warning: comparison between signed and unsigned
conftest.c:78: warning: comparison between signed and unsigned
conftest.c:78: warning: comparison between signed and unsigned
/usr/lib/gcc-lib/i486-slackware-linux/3.3.6/../../../../i486-slackware-linux/bin/ld: cannot find -lgtk-x11-2.0
collect2: ld returned 1 exit status
configure:20909: $? = 1
configure: program exited with status 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "wireshark"
| #define VERSION "0.99.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #ifdef __cplusplus
| extern "C" void std::exit (int) throw (); using std::exit;
| #endif
| #define YYTEXT_POINTER 1
| #define HTML_VIEWER "mozilla"
| #define HAVE_LIBGNUTLS 1
| #define HAVE_LIBGCRYPT 1
| #define DATAFILE_DIR "/usr/local/share/wireshark"
| /* end 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, &micro) != 3) {
| printf("%s, bad version string\n", "2.0.0");
| exit(1);
| }
|
| if ((gtk_major_version != 2) ||
| (gtk_minor_version != Cool ||
| (gtk_micro_version != 20))
| {
| printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
| 2, 8, 20,
| 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 [Link mogu videti samo ulogovani korisnici]\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:20936: result: no
configure:20969: gcc -o conftest -D_U_="__attribute__((unused))" -Wall -Wpointer-arith -W -g -O2 -I/usr/local/include -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/X11R6/include -I/usr/include/libpng12 -I/usr/local/include -L/usr/local/lib conftest.c -pthread -L/usr/X11R6/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lfreetype -lz -lfontconfig -lXrender -lX11 -lXext -lpng12 -lgthread-2.0 -lglib-2.0 >&5
/usr/lib/gcc-lib/i486-slackware-linux/3.3.6/../../../../i486-slackware-linux/bin/ld: cannot find -lgtk-x11-2.0
collect2: ld returned 1 exit status
configure:20975: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "wireshark"
| #define VERSION "0.99.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #ifdef __cplusplus
| extern "C" void std::exit (int) throw (); using std::exit;
| #endif
| #define YYTEXT_POINTER 1
| #define HTML_VIEWER "mozilla"
| #define HAVE_LIBGNUTLS 1
| #define HAVE_LIBGCRYPT 1
| #define DATAFILE_DIR "/usr/local/share/wireshark"
| /* end confdefs.h. */
|
| #include <gtk/gtk.h>
| #include <stdio.h>
|
| int
| main ()
| {
| return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
| ;
| return 0;
| }
configure:21380: checking for pkg-config
configure:21411: result: /usr/bin/pkg-config
configure:21434: checking for GLIB - version >= 2.0.0
configure:21553: gcc -o conftest -D_U_="__attribute__((unused))" -Wall -Wpointer-arith -W -g -O2 -I/usr/local/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/local/include -L/usr/local/lib conftest.c -Wl,--export-dynamic -lgmodule-2.0 -ldl -lglib-2.0 >&5
conftest.c: In function `main':
conftest.c:76: warning: comparison between signed and unsigned
conftest.c:77: warning: comparison between signed and unsigned
conftest.c:77: warning: comparison between signed and unsigned
conftest.c:78: warning: comparison between signed and unsigned
conftest.c:78: warning: comparison between signed and unsigned
conftest.c:78: warning: comparison between signed and unsigned
/usr/lib/gcc-lib/i486-slackware-linux/3.3.6/../../../../i486-slackware-linux/bin/ld: cannot find -lgmodule-2.0
collect2: ld returned 1 exit status
configure:21556: $? = 1
configure: program exited with status 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "wireshark"
| #define VERSION "0.99.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #ifdef __cplusplus
| extern "C" void std::exit (int) throw (); using std::exit;
| #endif
| #define YYTEXT_POINTER 1
| #define HTML_VIEWER "mozilla"
| #define HAVE_LIBGNUTLS 1
| #define HAVE_LIBGCRYPT 1
| #define DATAFILE_DIR "/usr/local/share/wireshark"
| /* end confdefs.h. */
|
| #include <glib.h>
| #include <stdio.h>
| #include <stdlib.h>
|
| int
| main ()
| {
| int major, minor, micro;
| char *tmp_version;
|
| system ("touch conf.glibtest");
|
| /* HP/UX 9 (%@#!) writes to sscanf strings */
| tmp_version = g_strdup("2.0.0");
| if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
| printf("%s, bad version string\n", "2.0.0");
| exit(1);
| }
|
| if ((glib_major_version != 2) ||
| (glib_minor_version != 12) ||
| (glib_micro_version != 4))
| {
| printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
| 2, 12, 4,
| glib_major_version, glib_minor_version, glib_micro_version);
| printf ("*** was found! If pkg-config was correct, then it is best\n");
| printf ("*** to remove the old version of GLib. 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 ((glib_major_version != GLIB_MAJOR_VERSION) ||
| (glib_minor_version != GLIB_MINOR_VERSION) ||
| (glib_micro_version != GLIB_MICRO_VERSION))
| {
| printf("*** GLIB header files (version %d.%d.%d) do not match\n",
| GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
| printf("*** library (version %d.%d.%d)\n",
| glib_major_version, glib_minor_version, glib_micro_version);
| }
| else
| {
| if ((glib_major_version > major) ||
| ((glib_major_version == major) && (glib_minor_version > minor)) ||
| ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
| {
| return 0;
| }
| else
| {
| printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
| glib_major_version, glib_minor_version, glib_micro_version);
| printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
| major, minor, micro);
| printf("*** GLIB is always available from [Link mogu videti samo ulogovani korisnici]\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 GLIB, 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:21583: result: no
configure:21616: gcc -o conftest -D_U_="__attribute__((unused))" -Wall -Wpointer-arith -W -g -O2 -I/usr/local/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/local/include -L/usr/local/lib conftest.c -Wl,--export-dynamic -lgmodule-2.0 -ldl -lglib-2.0 >&5
/usr/lib/gcc-lib/i486-slackware-linux/3.3.6/../../../../i486-slackware-linux/bin/ld: cannot find -lgmodule-2.0
collect2: ld returned 1 exit status
configure:21622: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "wireshark"
| #define VERSION "0.99.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #ifdef __cplusplus
| extern "C" void std::exit (int) throw (); using std::exit;
| #endif
| #define YYTEXT_POINTER 1
| #define HTML_VIEWER "mozilla"
| #define HAVE_LIBGNUTLS 1
| #define HAVE_LIBGCRYPT 1
| #define DATAFILE_DIR "/usr/local/share/wireshark"
| /* end confdefs.h. */
|
| #include <glib.h>
| #include <stdio.h>
|
| int
| main ()
| {
| return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
| ;
| return 0;
| }
configure:21663: error: GLib2 distribution not found.
...

Koristim Slackware 10.2 sa 2.6.17 kerenlom.

pkg-config gtk+-2.0 --modversion: 2.8.20
pkg-config glib-2.0 --modversion: 2.12.4

Hvala unapred.[/code]



Registruj se da bi učestvovao u diskusiji. Registrovanim korisnicima se NE prikazuju reklame unutar poruka.
offline
  • bocke  Male
  • Moderator foruma
  • Glavni moderator Linux foruma
  • Veliki Pingvin
  • Guru
  • Pridružio: 16 Dec 2005
  • Poruke: 12562
  • Gde živiš: Južni pol

Koja distribucija?

Da li imas instaliran GTK+ 2.0 i Glib 2.0?



offline
  • Pridružio: 15 Avg 2005
  • Poruke: 112
  • Gde živiš: Belgrade

Kao sto rekoh:

Koristim Slackware 10.2 sa 2.6.17 kerenelom.

pkg-config gtk+-2.0 --modversion: 2.8.20
pkg-config glib-2.0 --modversion: 2.12.4

Imam instalirane i GLIB-2.0 i GTK+-2.0

Dopuna: 30 Apr 2007 21:54

Resio sam problem. Nisam siguran kako ali mislim da je upgrade paketa upalio.Mozda i nesto drugo ko mu ga zna, sta sam sve probao.

Ko je trenutno na forumu
 

Ukupno su 1194 korisnika na forumu :: 239 registrovanih, 21 sakrivenih i 934 gosta   ::   [ Administrator ] [ Supermoderator ] [ Moderator ] :: Detaljnije

Najviše korisnika na forumu ikad bilo je 20624 - dana 04 Apr 2026 04:18

Korisnici koji su trenutno na forumu:
Korisnici trenutno na forumu: -[CoA]-, 4. Ozrenska, _stipa_, A.R.Chafee.Jr., Adaminho1985, aleksandarbl, aleksjevt, Alen-Delon-u-boji, aleph_one, ALEXV, amstel, aramis s, Areal84, Asparagus, Asteker, atmel, Atomski čoban, avalon, Avladi, awathorn, babaroga, Bahuss, bambulic, Banovo Brdo, Barista, bavar357, black_raven, BlackTower, bobo85, boj.an, Bojcca, bokicacar, bokisha253, BrcakRS, celeron, CHARLIE JA., chichabg, cifra, Civa, cole77, Comyymoc, cuvarkuca, cyprus, Darth Wader, debeli, Dekanovic, deki1001, del boy, desmeki, DezurniOperativni, Dimitrije Paunovic, djboj, Djokislav, djonsule, djukapfc, DJUNTA, Dolinc, DonRumataEstorski, Dragacevac, draganl, Drugsparrow, Dukelander, dusan.l, dusan2022, Dusko_Dugousko, DzigiNS, Dzondzula, Džekson, Ercomero, fijufijukrozkapiju55, Fliper, Fog of War, gasazem, Georgius, GH69, ghoost, Giskard, goxin, Hemi, Ice, igorkozar83, IQ116, istina, Istman, istokzapad, Iwo Jima, Jakonjveliki, jalos, Jan, Jester, Jomini, Jose, Jovan.D, jugoslav.70, K a s p e r, kalens021, kaput21, kenny74, kib, KimiMR, Kobrim, komenski, kondenzator, konstruktor, Kontrausluga, Koridor, Kosmos Banja Luka, kozhedub, Kozi-RS, Krin, Kum Ruzvelt, kunktator, larix, Lelemood, Levi, lord sir giga, Lucije Kvint, LUDI, luka35, mackenzie, Mackomen, Mae, Malahit, mane123, Manjane, Marjant, marko.markovic, Marko1238, marsi, mat, matrix_1, Metanoja, Miki 24pbr, Miki 84, Miki01, mikrimaus, Milanče222, milivoje_vatrogasac, miodrag, Miskinn, MK10, mrm, nebidrag, Nemanja.M, nenooo, neutrino, nobutado, oganj123, Ognjen D., oldtimer, omen, operniki, OtacMakarije, Otto Grunf, Papadubi, pds, Pekman, Permaldar, Petarvu, Petrusci, pisac12, Polemarchoi, PoolbegD02, prasinar, proka89, pzoca, Radoslava, RajkoB, rakivan, rebro1974, RJ, Romibrat, samocitam, SamoGledam, sasa87, Sava89, Savantije, Shinobi, shiro, Sir Budimir, sistem22, siwoti, Slingshot, Smor, Solunac na steroidima, Sone0883, Sonic, stalja, stefanmpurtic, StepskiVuk, Stoorb, styg, synergia, tanakadzo, taomaster, Tas011, tesa, The trojkaaa, tm, Toper, tubular, Tumansky, Tunguska55, Tvrtko I, uruk, VanZan, VaRvArI 85, Vasilije Budović, Vaske8990, vaso1, vathra, vdeki, Veless, Velizar Laro, Velički, veljko82, vlahale, Vojvoda81, Vrač, vseve40, vukovi, vuksa72, wizzardone, xJeremijAx, Yekaterinburg, zdrebac, Zerajic, zexon, Zimbabwe, zivojin32, zixmix, Zmajac, zombicar153, zule2, zvomar, |_MeD_|, Žrnov, Đido Mova 071, 1107