ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to install NOX which is a openflow controller and it needs Xerces-C++ this. I installed it successfully on the Debian. The output of the xerces after running the "make install" command is as follows which shows that is successfully installed on the machine.
Looking at the g++ command line you've posted, there is no reference to the xercesc libraries. Maybe you have to specify either the exact location of these libraries or their name (or both). Since the xercesc installation provided the pkg-config file /usr/local/lib/pkgconfig/xerces-c.pc, you can easily find out the required information by running the following:
Then you have to pass these informations to the configure step of nox, either by adding the --with-xerces-inc and --with-xerces-lib options with the correct arguments OR by exporting the correct values for CPPFLAGS, CFLAGS, LIBS and LDFLAGS environment variables.
Also take a look at the file config.log, that should have been generated after running the ./configure script and see if it actually missed informations about the xerces installation, e.g.
Code:
grep -i xerces ./config.log
If in doubt, please post the output of the commands above. Hope this helps.
There is something weird here: nox has been configured to use xerces version 2.8.0, but you show us installation of version 3.1.1 and actually the build process looks for 3.1.1 functions. Maybe have you mixed-up two different installations of xerces in the same place? What is the output of the pkg-config command suggested in my previous post? Finally, please can you show the environment variables and the ./configure command line used to configure nox? Thx
After running your commands I am getting this error
Code:
henrietta:/home/xerces-c-3.1.1# ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether to use rpath... yes
checking for g++... g++
checking for C++ compiler default output file name...
configure: error: in `/home/xerces-c-3.1.1':
configure: error: C++ compiler cannot create executables
See `config.log' for more details.
And after checking the config.log file I got very strange things in the log file :S
Code:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by xerces-c configure 3.1.1, which was
generated by GNU Autoconf 2.64. Invocation command line was
$ ./configure
## --------- ##
## Platform. ##
## --------- ##
hostname = henrietta
uname -m = i686
uname -r = 2.6.26-2-xen-686
uname -s = Linux
uname -v = #1 SMP Wed Nov 4 23:23:33 UTC 2009
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2921: checking build system type
configure:2935: result: i686-pc-linux-gnu
configure:2955: checking host system type
configure:2968: result: i686-pc-linux-gnu
configure:3006: checking for a BSD-compatible install
configure:3074: result: /usr/bin/install -c
configure:3085: checking whether build environment is sane
configure:3135: result: yes
configure:3276: checking for a thread-safe mkdir -p
configure:3315: result: /bin/mkdir -p
configure:3328: checking for gawk
configure:3358: result: no
configure:3328: checking for mawk
configure:3344: found /usr/bin/mawk
configure:3355: result: mawk
configure:3366: checking whether make sets $(MAKE)
configure:3388: result: yes
configure:3463: checking how to create a ustar tar archive
configure:3476: tar --version
tar (GNU tar) 1.20
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by John Gilmore and Jay Fenlason.
configure:3479: $? = 0
configure:3519: tardir=conftest.dir && eval tar --format=ustar -chf - "$tardir" >conftest.tar
configure:3522: $? = 0
configure:3526: tar -xf - <conftest.tar
configure:3529: $? = 0
configure:3542: result: gnutar
configure:3550: checking whether to enable maintainer-specific portions of Makefiles
configure:3559: result: no
configure:3574: checking whether to use rpath
configure:3583: result: yes
configure:3645: checking for g++
configure:3661: found /usr/bin/g++
configure:3672: result: g++
configure:3699: checking for C++ compiler version
g++ (Debian 4.3.2-1.1) 4.3.2
Copyright (C) 2008 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:3719: $? = 0
configure:3708: g++ -v >&5
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.3.2-1.1' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-la$
Thread model: posix
gcc version 4.3.2 (Debian 4.3.2-1.1)
configure:3719: $? = 0
configure:3708: g++ -V >&5
g++: '-V' option must have argument
configure:3719: $? = 1
configure:3708: g++ -qversion >&5
g++: unrecognized option '-qversion'
g++: no input files
g++: no input files
configure:3719: $? = 1
configure:3741: checking for C++ compiler default output file name
configure:3763: g++ /usr/lib/pkgconfig:/usr/local/lib/pkgconfig conftest.cpp >&5
g++: /usr/lib/pkgconfig:/usr/local/lib/pkgconfig: No such file or directory
configure:3767: $? = 1
configure:3804: result:
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "xerces-c"
| #define PACKAGE_TARNAME "xerces-c"
| #define PACKAGE_VERSION "3.1.1"
| #define PACKAGE_STRING "xerces-c 3.1.1"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "xerces-c"
| #define VERSION "3.1.1"
| /* end confdefs.h. */
| #include <stdio.h>
| int
| main ()
{
| FILE *f = fopen ("conftest.out", "w");
| return ferror (f) || fclose (f) != 0;
|
| ;
| return 0;
| }
configure:3810: error: in `/home/xerces-c-3.1.1':
configure:3814: error: C++ compiler cannot create executables
See `config.log' for more details.
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME "xerces-c"
#define PACKAGE_TARNAME "xerces-c"
#define PACKAGE_VERSION "3.1.1"
#define PACKAGE_STRING "xerces-c 3.1.1"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define PACKAGE "xerces-c"
#define VERSION "3.1.1"
configure: exit 77
I think highlighted section was creating the problem. I dont know how to resolve this
Sorry but I cannot follow you. Why did you tried to configure xerces-c-3.1.1 again? Wasn't it successfully installed?
Code:
henrietta:/home/xerces-c-3.1.1# ./configure
checking build system type... i686-pc-linux-gnu
...
Anyway, use
Code:
unset PKG_CONFIG_PATH
or close the terminal and open a new one to reset the default environment. The PKG_CONFIG_PATH was that one giving problems in your last configure attempt.
undefined reference to `xercesc_3_1::XMemory::operator delete(void*)'. PLS HELP
Hello,
While installing "Simulation of Urban MObility"(SUMO) I am getting the following error. The error is not coming while doing ./configure. But when I am doing make the error is coming. I have followed all the steps adviced in the thread, but still it doesn't solve for me. PLS help...
make[3]: Leaving directory `/home/somreeta/sumo-0.26.0/src/od'
Making all in marouter
make[3]: Entering directory `/home/somreeta/sumo-0.26.0/src/marouter'
marouter_main.o: In function `xercesc_3_1::XMLAttDefList::~XMLAttDefList()':
marouter_main.cpp(.text._ZN11xercesc_3_113XMLAttDefListD0Ev[_ZN11xercesc_3_113XMLAttDefListD5Ev]+0x8):undefined reference to `xercesc_3_1::XMemory::operator delete(void*)'
marouter_main.o:
In function `xercesc_3_1::DefaultHandler::fatalError(xercesc_3_1::SAXParseException const&)':marouter_main.cpp(.text._ZN11xercesc_3_114DefaultHandler10fatalErrorERKNS_17SAXParseExcepti onE[xercesc_3_1::DefaultHandler::fatalError(xercesc_3_1::SAXParseException const&)]+0x2d): undefined reference to `xercesc_3_1::SAXParseException::SAXParseException(xercesc_3_1::SAXParseException const&)'
marouter_main.cpp:(.text._ZN11xercesc_3_114DefaultHandler10fatalErrorERKNS_17SAXParseExceptionE[xercesc_3_1::DefaultHandler::fatalError(xercesc_3_1::SAXParseException const&)]+0x32): undefined reference to `xercesc_3_1::SAXParseException::~SAXParseException()'
marouter_main.cpp:
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This post is a duplicate of this one.
Also, please do not post to very old threads, always best to start your own.
For guidance in posting your question please see the Site FAQ, and in particular this page.
Last edited by astrogeek; 04-26-2017 at 12:41 AM.
Reason: Added info
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.