[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Nel] configure and compilation problems on linux
From: |
Michael Warnock |
Subject: |
[Nel] configure and compilation problems on linux |
Date: |
Mon, 20 Jan 2003 12:45:50 -0600 |
Greetings,
I've compiled Nel on Win and Linux many times in the past, but its been
several months since the last time. I'm using Gentoo Linux 1.4 now, as opposed
to Debian previously, but I don't think my problems have anything to do with
that. With a fresh CVS (1/20/03), the results of "./configure
--with-stlport=/usr/local --with-xml-prefix=/usr/include/libxml2/libxml
--with-xml-exec-prefix=/usr" are:
checking for xml2-config... /usr/bin/xml2-config
checking for libxml - version >= 2.0.0... no
*** Could not run libxml 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 LIBXML was incorrectly
installed
*** or that you have moved LIBXML since it was installed. In the latter case,
you
*** may want to edit the xml2-config script: /usr/bin/xml2-config
configure: error: libxml2 must be installed.
and config.log with what I deemed irrelevant removed contains:
configure:7190: checking for xml2-config
configure:7225: checking for libxml - version >= 2.0.0
configure:7327: gcc -o conftest -O6 -DNL_RELEASE -ftemplate-depth-24
-D_REENTRANT Usage: xml2-config [OPTION]
Known values for OPTION are:
--prefix=DIR change libxml prefix [default /usr]
--libs print library linking information
--cflags print pre-processor and compiler flags
--help display this help and exit
--version output version information conftest.c Usage:
xml2-config [OPTION]
Known values for OPTION are:
--prefix=DIR change libxml prefix [default /usr]
--libs print library linking information
--cflags print pre-processor and compiler flags
--help display this help and exit
--version output version information -lstlport -L/usr/local/lib
-lpthread -L/usr/X11R6/lib 1>&5
gcc (GCC) 3.2.1 20021207 (Gentoo Linux 3.2.1-20021207)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure: failed program was:
#line 7248 "configure"
#include "confdefs.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <libxml/xmlversion.h>
int
main()
{
int xml_major_version, xml_minor_version, xml_micro_version;
int major, minor, micro;
char *tmp_version;
system("touch conf.xmltest");
/* Capture xml2-config output via autoconf/configure variables */
/* HP/UX 9 (address@hidden) writes to sscanf strings */
tmp_version = (char *)strdup("2.0.0");
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
printf("%s, bad version string from xml2-config\n", "2.0.0");
exit(1);
}
free(tmp_version);
/* Capture the version information from the header files */
tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version,
&xml_micro_version) != 3) {
printf("%s, bad version string from libxml includes\n",
"LIBXML_DOTTED_VERSION");
exit(1);
}
free(tmp_version);
/* Compare xml2-config output to the libxml headers */
if ((xml_major_version != age: xml2-config [OPTION]
own values for OPTION are:
--prefix=DIR change libxml prefix [default /usr]
--libs print library linking information
--cflags print pre-processor and compiler flags
--help display this help and exit
--version output version information) ||
(xml_minor_version != age: xml2-config [OPTION]
own values for OPTION are:
--prefix=DIR change libxml prefix [default /usr]
--libs print library linking information
--cflags print pre-processor and compiler flags
--help display this help and exit
--version output version information) ||
(xml_micro_version != age: xml2-config [OPTION]
own values for OPTION are:
--prefix=DIR change libxml prefix [default /usr]
--libs print library linking information
--cflags print pre-processor and compiler flags
--help display this help and exit
--version output version information))
{
printf("*** libxml header files (version %d.%d.%d) do not match\n",
xml_major_version, xml_minor_version, xml_micro_version);
printf("*** xml2-config (version %d.%d.%d)\n",
age: xml2-config [OPTION]
own values for OPTION are:
--prefix=DIR change libxml prefix [default /usr]
--libs print library linking information
--cflags print pre-processor and compiler flags
--help display this help and exit
--version output version information, age: xml2-config [OPTION]
own values for OPTION are:
--prefix=DIR change libxml prefix [default /usr]
--libs print library linking information
--cflags print pre-processor and compiler flags
--help display this help and exit
--version output version information, age: xml2-config [OPTION]
own values for OPTION are:
--prefix=DIR change libxml prefix [default /usr]
--libs print library linking information
--cflags print pre-processor and compiler flags
--help display this help and exit
--version output version information);
return 1;
}
/* Compare the headers to the library to make sure we match */
/* Less than ideal -- doesn't provide us with return value feedback,
* only exits if there's a serious mismatch between header and library.
*/
LIBXML_TEST_VERSION;
/* Test that the library is greater than our minimum version */
if ((xml_major_version > major) ||
((xml_major_version == major) && (xml_minor_version > minor)) ||
((xml_major_version == major) && (xml_minor_version == minor) &&
(xml_micro_version >= micro)))
{
return 0;
}
else
{
printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
xml_major_version, xml_minor_version, xml_micro_version);
printf("*** You need a version of libxml newer than %d.%d.%d. The
latest version of\n",
major, minor, micro);
printf("*** libxml is always available from ftp://ftp.xmlsoft.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 xml2-config shell
script is\n");
printf("*** being found. The easiest way to fix this is to remove the
old version\n");
printf("*** of LIBXML, but you can also set the XML2_CONFIG environment
to point to the\n");
printf("*** correct copy of xml2-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:7372: gcc -o conftest -O6 -DNL_RELEASE -ftemplate-depth-24
-D_REENTRANT Usage: xml2-config [OPTION]
Known values for OPTION are:
--prefix=DIR change libxml prefix [default /usr]
--libs print library linking information
--cflags print pre-processor and compiler flags
--help display this help and exit
--version output version information conftest.c -lstlport
-L/usr/local/lib -lpthread -L/usr/X11R6/lib Usage: xml2-config [OPTION]
Known values for OPTION are:
--prefix=DIR change libxml prefix [default /usr]
--libs print library linking information
--cflags print pre-processor and compiler flags
--help display this help and exit
--version output version information 1>&5
gcc (GCC) 3.2.1 20021207 (Gentoo Linux 3.2.1-20021207)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure: failed program was:
#line 7362 "configure"
#include "confdefs.h"
#include <libxml/xmlversion.h>
#include <stdio.h>
int main() {
LIBXML_TEST_VERSION; return 0;
; return 0; }
It appears to me that the configure script uses xml2-config improperly
for whatever reason. This occurs with the distro's libxml2 and one compiled by
me from the latest tarball. Any ideas?
If I --disable-xmltest configure finishes. Make seems fine for a
while, until:
rm -f .libs/window_displayer.lo
g++ -DHAVE_CONFIG_H -I. -I. -I../../include -O3 -DNL_RELEASE -march=pentium4
-O2 -pipe -ftemplate-depth-24 -Wall -Wno-multichar -D_REENTRANT
-I/usr/X11R6/include -I/usr/local/include/stlport -I/usr/include/libxml2
-I../../include -DHAVE_NELCONFIG_H -Wp,-MD,.deps/window_displayer.pp -c
window_displayer.cpp -fPIC -DPIC -o .libs/window_displayer.lo
In file included from window_displayer.cpp:38:
../../include/nel/misc/window_displayer.h: In constructor
`NLMISC::CWindowDisplayer::CWindowDisplayer(const char*)':
../../include/nel/misc/window_displayer.h:114: warning: member initializers for
`NLMISC::IThread*NLMISC::CWindowDisplayer::_Thread'
../../include/nel/misc/window_displayer.h:109: warning: and `sint
NLMISC::CWindowDisplayer::_HistorySize'
../../include/nel/misc/window_displayer.h:54: warning: will be re-ordered to
match declaration order
window_displayer.cpp: In constructor
`NLMISC::CUpdateThread::CUpdateThread(NLMISC::CWindowDisplayer*,
_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> >,
bool, int, int, int, int, int, int, const _STL::string&, bool)':
window_displayer.cpp:52: warning: member initializers for `bool
NLMISC::CUpdateThread::Iconified'
window_displayer.cpp:49: warning: and `uint32 NLMISC::CUpdateThread::FS'
window_displayer.cpp:57: warning: will be re-ordered to match declaration
order
window_displayer.cpp:51: warning: member initializers for `_STL::string
NLMISC::CUpdateThread::FN'
window_displayer.cpp:50: warning: and `bool NLMISC::CUpdateThread::WW'
window_displayer.cpp:57: warning: will be re-ordered to match declaration
order
window_displayer.cpp: In member function `virtual void
NLMISC::CWindowDisplayer::doDisplay(const NLMISC::TDisplayInfo&, const
char*)':
window_displayer.cpp:206: parse error before `int'
make[3]: *** [window_displayer.lo] Error 1
make[3]: Leaving directory `/opt/code/nel/src/misc'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/opt/code/nel/src/misc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/code/nel/src'
make: *** [all-recursive] Error 1
I hope I've provided enough information and not too much. Thanks in
advance for any help rendered.
Michael
- [Nel] configure and compilation problems on linux,
Michael Warnock <=