From owner-freebsd-questions Thu May 3 7:35:29 2001 Delivered-To: freebsd-questions@freebsd.org Received: from fac13.ds.psu.edu (fac13.ds.psu.edu [146.186.61.98]) by hub.freebsd.org (Postfix) with ESMTP id 9296C37B422 for ; Thu, 3 May 2001 07:35:23 -0700 (PDT) (envelope-from hawk@fac13.ds.psu.edu) Received: from fac13.ds.psu.edu (localhost [127.0.0.1]) by fac13.ds.psu.edu (8.11.3/8.11.3) with ESMTP id f43EYBx07811 for ; Thu, 3 May 2001 14:34:11 GMT (envelope-from hawk@fac13.ds.psu.edu) Message-Id: <200105031434.f43EYBx07811@fac13.ds.psu.edu> To: freebsd-questions@FreeBSD.ORG Subject: can't build vim6 From: "Richard E. Hawkins" Reply-To: dochawk@psu.edu, freebsd-questions@FreeBSD.ORG Date: Thu, 03 May 2001 10:34:10 -0400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG WIth both vim6 and vim6+ruby, I fail on build. The offending output seems to be: configure:4330: glib.h: No such file or directory configure: In function `main': configure:4343: warning: implicit declaration of function `g_strdup' configure:4343: warning: assignment makes pointer from integer without a cast configure:4349: `glib_major_version' undeclared (first use in this function) configure:4349: (Each undeclared identifier is reported only once configure:4349: for each function it appears in.) configure:4349: syntax error before `)' configure:4350: `glib_minor_version' undeclared (first use in this function) configure:4350: syntax error before `)' configure:4351: `glib_micro_version' undeclared (first use in this function) configure:4351: syntax error before `)' configure:4354: syntax error before `,' configure:4365: `GLIB_MAJOR_VERSION' undeclared (first use in this function) configure:4366: `GLIB_MINOR_VERSION' undeclared (first use in this function) configure:4367: `GLIB_MICRO_VERSION' undeclared (first use in this function) configure: failed program was: #line 4328 "configure" #include "confdefs.h" #include #include #include int main () { int major, minor, micro; char *tmp_version; system ("touch conf.glibtest"); /* HP/UX 9 (%@#!) writes to sscanf strings */ tmp_version = g_strdup("1.2.8"); if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { printf("%s, bad version string\n", "1.2.8"); exit(1); } if ((glib_major_version != ) || (glib_minor_version != ) || (glib_micro_version != )) { printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.% d)\n", , , , glib_major_version, glib_minor_version, glib_micro_version); printf ("*** was found! If glib-config was correct, then it is best\n"); printf ("*** to remove the old version of GLIB. You may also be able to fi x the error\n"); printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by e diting\n"); printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n" ); printf("*** required on your system.\n"); printf("*** If glib-config was wrong, set the environment variable GLIB_CO NFIG\n"); printf("*** to point to the correct copy of glib-config, and remove the fi le config.cache\n"); printf("*** before re-running configure\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 v ersion of\n", major, minor, micro); printf("*** GLIB is always available from ftp://ftp.gtk.org.\n"); printf("***\n"); printf("*** If you have already installed a sufficiently new version, th is error\n"); printf("*** probably means that the wrong copy of the glib-config shell script is\n"); printf("*** being found. The easiest way to fix this is to remove the ol d version\n"); printf("*** of GLIB, but you can also set the GLIB_CONFIG environment to point to the\n"); printf("*** correct copy of glib-config. (In this case, you will have to \n"); printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /et c/ld.so.conf\n"); printf("*** so that the correct libraries are found at run-time))\n"); } } return 1; } configure:4448: cc -o conftest -O -pipe -march=pentiumpro -Wall -I/usr/local/in clude conftest.c -L/usr/local/lib -lintl -lxpg4 1>&5 configure:4440: glib.h: No such file or directory configure: In function `main': configure:4444: `glib_major_version' undeclared (first use in this function) configure:4444: (Each undeclared identifier is reported only once configure:4444: for each function it appears in.) configure:4444: `glib_minor_version' undeclared (first use in this function) configure:4444: `glib_micro_version' undeclared (first use in this function) configure: failed program was: #line 4438 "configure" #include "confdefs.h" #include #include int main() { return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); ; return 0; } (end of "config.log") *** Error code 1 Stop in /usr/ports/x11-toolkits/gtk12. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message