You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xerces.apache.org by girishw <ma...@yahoo.com> on 2009/03/02 07:53:00 UTC

Re: Compile error while trying to 'make' /obj folder

Hi Alberto,

Yes. I have set the XERCESCROOT env variable. 

girish@tempbox:/$ echo $XERCESCROOT
/usr/local/src/xerces-c-src_2_7_0
girish@tempbox:/$

Rebooted the system. Still getting the same error.

gIrIsh

***************************************************************************************



Alberto Massari wrote:
> 
> The "make -C /obj -k " line makes me think you haven't set the 
> XERCESCROOT env variable (note the C between XERCES and ROOT)
> 
> Alberto
> 
> girishw wrote:
>> Hi,
>>
>> I am trying to install xerces 2.7.0 on Ubuntu 8.10 server (Intrepid
>> Ibex). I
>> have followed all the build instructions as per the document. First, the
>> compilation was interrupted when the files were missing in
>> /include/xerces/dom/impl/ folder. I manually copied all the files from
>> the
>> source and ran 'make' again. Now, it is throwing below error:
>>
>> *** error start ***
>>   (CP)  /include/xercesc/validators/schema/identity
>>   (CP)  /include/xercesc/validators/common
>>   (CP)  /include/xercesc/validators/datatype
>>   (CP)  /include/xercesc/validators/DTD
>>   (CP)  /include/xercesc/validators/schema
>>   (CP)  /include/xercesc/validators/schema/identity
>>   (CP)  /include/xercesc/validators/schema/identity
>> toplevel Building /lib/libxerces-c.so.27.0
>> make -C /obj -k 
>> make[1]: Entering directory `/obj'
>> make[1]: *** No targets specified and no makefile found.  Stop.
>> make[1]: Leaving directory `/obj'
>> make: *** [/lib/libxerces-c.so.27.0] Error 2
>> girish@tempbox:/obj$
>> *** error end ***
>>
>> girish@tempbox:/obj$ ls -l
>> total 20
>> drwxr-xr-x 3 root root 20480 2009-02-27 17:59 LINUX
>> girish@tempbox:/obj$
>>
>> Can somebody help?
>>
>> Note - I must use xerces-c-2.7.0 due to some strict dependency. The newer
>> version won't work. Hence, installing readily available ubuntu package
>> "libxerces-c2-dev" is not an option. Unfortunately, the older package
>> "libxerces27-dev" is deprecated in Intrepid. 
>>
>> gIrIsh
>>
>>   
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Compile-error-while-trying-to-%27make%27--obj-folder-tp22246133p22283013.html
Sent from the Xerces - C - Users mailing list archive at Nabble.com.


Re: Compile error while trying to 'make' /obj folder

Posted by girishw <ma...@yahoo.com>.
The issue is resolved. 

I realized that the 'make' is pointing to wrong directory. I modified the
command to "$sudo make -C ../../obj -k" and it worked.

gIrIsh.



girishw wrote:
> 
> Hi Alberto,
> 
> Yes. I have set the XERCESCROOT env variable. 
> 
> girish@tempbox:/$ echo $XERCESCROOT
> /usr/local/src/xerces-c-src_2_7_0
> girish@tempbox:/$
> 
> Rebooted the system. Still getting the same error.
> 
> gIrIsh
> 
> ***************************************************************************************
> 
> 
> 
> Alberto Massari wrote:
>> 
>> The "make -C /obj -k " line makes me think you haven't set the 
>> XERCESCROOT env variable (note the C between XERCES and ROOT)
>> 
>> Alberto
>> 
>> girishw wrote:
>>> Hi,
>>>
>>> I am trying to install xerces 2.7.0 on Ubuntu 8.10 server (Intrepid
>>> Ibex). I
>>> have followed all the build instructions as per the document. First, the
>>> compilation was interrupted when the files were missing in
>>> /include/xerces/dom/impl/ folder. I manually copied all the files from
>>> the
>>> source and ran 'make' again. Now, it is throwing below error:
>>>
>>> *** error start ***
>>>   (CP)  /include/xercesc/validators/schema/identity
>>>   (CP)  /include/xercesc/validators/common
>>>   (CP)  /include/xercesc/validators/datatype
>>>   (CP)  /include/xercesc/validators/DTD
>>>   (CP)  /include/xercesc/validators/schema
>>>   (CP)  /include/xercesc/validators/schema/identity
>>>   (CP)  /include/xercesc/validators/schema/identity
>>> toplevel Building /lib/libxerces-c.so.27.0
>>> make -C /obj -k 
>>> make[1]: Entering directory `/obj'
>>> make[1]: *** No targets specified and no makefile found.  Stop.
>>> make[1]: Leaving directory `/obj'
>>> make: *** [/lib/libxerces-c.so.27.0] Error 2
>>> girish@tempbox:/obj$
>>> *** error end ***
>>>
>>> girish@tempbox:/obj$ ls -l
>>> total 20
>>> drwxr-xr-x 3 root root 20480 2009-02-27 17:59 LINUX
>>> girish@tempbox:/obj$
>>>
>>> Can somebody help?
>>>
>>> Note - I must use xerces-c-2.7.0 due to some strict dependency. The
>>> newer
>>> version won't work. Hence, installing readily available ubuntu package
>>> "libxerces-c2-dev" is not an option. Unfortunately, the older package
>>> "libxerces27-dev" is deprecated in Intrepid. 
>>>
>>> gIrIsh
>>>
>>>   
>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Compile-error-while-trying-to-%27make%27--obj-folder-tp22246133p22283406.html
Sent from the Xerces - C - Users mailing list archive at Nabble.com.


Re: Compile error while trying to 'make' /obj folder

Posted by girishw <ma...@yahoo.com>.
Alberto,

You are correct. Although, the $XERCESCROOT was set, the 'make' was not able
to read it somehow. I still don't understand 'why'. So, I added
XERCESCROOT=/usr/local/src/xerces-c-src_2_7_0 at the beginning of the
Makefile.incl and it solved the problem. Thanx.

gIrIsh

***********************************************************  


girishw wrote:
> 
> Hi Alberto,
> 
> Yes. I have set the XERCESCROOT env variable. 
> 
> girish@tempbox:/$ echo $XERCESCROOT
> /usr/local/src/xerces-c-src_2_7_0
> girish@tempbox:/$
> 
> Rebooted the system. Still getting the same error.
> 
> gIrIsh
> 
> ***************************************************************************************
> 
> 
> 
> Alberto Massari wrote:
>> 
>> The "make -C /obj -k " line makes me think you haven't set the 
>> XERCESCROOT env variable (note the C between XERCES and ROOT)
>> 
>> Alberto
>> 
>> girishw wrote:
>>> Hi,
>>>
>>> I am trying to install xerces 2.7.0 on Ubuntu 8.10 server (Intrepid
>>> Ibex). I
>>> have followed all the build instructions as per the document. First, the
>>> compilation was interrupted when the files were missing in
>>> /include/xerces/dom/impl/ folder. I manually copied all the files from
>>> the
>>> source and ran 'make' again. Now, it is throwing below error:
>>>
>>> *** error start ***
>>>   (CP)  /include/xercesc/validators/schema/identity
>>>   (CP)  /include/xercesc/validators/common
>>>   (CP)  /include/xercesc/validators/datatype
>>>   (CP)  /include/xercesc/validators/DTD
>>>   (CP)  /include/xercesc/validators/schema
>>>   (CP)  /include/xercesc/validators/schema/identity
>>>   (CP)  /include/xercesc/validators/schema/identity
>>> toplevel Building /lib/libxerces-c.so.27.0
>>> make -C /obj -k 
>>> make[1]: Entering directory `/obj'
>>> make[1]: *** No targets specified and no makefile found.  Stop.
>>> make[1]: Leaving directory `/obj'
>>> make: *** [/lib/libxerces-c.so.27.0] Error 2
>>> girish@tempbox:/obj$
>>> *** error end ***
>>>
>>> girish@tempbox:/obj$ ls -l
>>> total 20
>>> drwxr-xr-x 3 root root 20480 2009-02-27 17:59 LINUX
>>> girish@tempbox:/obj$
>>>
>>> Can somebody help?
>>>
>>> Note - I must use xerces-c-2.7.0 due to some strict dependency. The
>>> newer
>>> version won't work. Hence, installing readily available ubuntu package
>>> "libxerces-c2-dev" is not an option. Unfortunately, the older package
>>> "libxerces27-dev" is deprecated in Intrepid. 
>>>
>>> gIrIsh
>>>
>>>   
>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Compile-error-while-trying-to-%27make%27--obj-folder-tp22246133p22283422.html
Sent from the Xerces - C - Users mailing list archive at Nabble.com.


RE: Compile error while trying to 'make' /obj folder

Posted by girishw <ma...@yahoo.com>.
Thanx Nicholas,

btw, the problem really was with the higher version of compiler. The other
library I am using 'libmp7jrs' required older version (4.0.1) of gcc.

gIrIsh 


Thayer_Nicholas wrote:
> 
> Hello gIrIsh,
> 
> You should be able to make the library without sudo, but likely need
> root privileges to install.  Perform the compilation from a sandbox in
> your $HOME directory.  After the compilation, the modules can be
> installed to the system using the 'make install' target.  Also, you
> might want to consider a newer version of Xerces than 2.7.0.  
> 
> Run the following as 'girish' user:
> 
> $ cd
> $ cp {xerces_src_download_location}/xerces-c-src_2_7_0.tar.gz ./
> $ tar -xzvf ./xerces-c-src_2_7_0.tar.gz
> $ cd ./xerces-c-src_2_7_0-src_2_7_0
> $ export XERCESCROOT=$PWD
> $ cd ./src/xercesc
> $ ./runConfigure -p linux
> $ make
> $ cd ../../samples
> $ ./runConfigure -p linux
> $ cd ./DOMPrint
> $ make
> $ cd ../../bin
> $ export LD_LIBRARY_PATH=../lib:$LD_LIBRARY_PATH
> $ ./DOMPrint
> 
> Note: You may wish to build different versions of the library as
> command-line args for 'runConfigure' script, but as a quick test just
> run the following to build the libraries.
> 
> If this fails, then perhaps some permissions are incorrect on the
> system.  You should have read and executable access to 'make' utility
> without su privileges, and the samples should all build fine in the
> sandbox.
> 
> The target 'make install' will need su privileges.  If this target
> fails, then you've determined only an installation issue exists.  If
> necessary, you can manually copy the header files and shared modules to
> the appropriate directories at this point.
> 
> Regards,
> Nicholas
> 
> -----Original Message-----
> From: girishw [mailto:mail.girish@yahoo.com] 
> Sent: Monday, March 02, 2009 11:24 PM
> To: c-users@xerces.apache.org
> Subject: RE: Compile error while trying to 'make' /obj folder
> 
> 
> I exported the variable.
> 
> In fact, I added "XERCESCROOT=/usr/local/src/xerces-c-src_2_7_0" to
> ~/.bashrc and ~/.profile. Restarted the system. Ran "export
> XERCESCROOT". It
> didn't work.
> 
> I am logging in as a user 'girish' but, running 'make' using 'sudo' [$
> sudo
> make]. Is it possibly causing a problem? [I cannot run it as 'root'. no
> privilege.]
> 
> By the way, after successfuly compiling all libraries when I try to
> compile
> and run the sample code, I get the following run-time error. 
> 
> girish@tempbox:~/Mp7Jrs2.2/samples$ sudo g++ -I../../include/generated
> -I/usr/local/src/xerces-c-src_2_7_0/include -L/usr/lib -lxerces-c
> -lmp7jrs
> -o test main.cpp
> girish@tempbox:~/Mp7Jrs2.2/samples$ 
> girish@tempbox:~/Mp7Jrs2.2/samples$ ./test
> ./test: symbol lookup error: /usr/lib/libmp7jrs.2.so: undefined symbol:
> _ZTIN11xerces_2_712XMLExceptionE
> girish@tempbox:~/Mp7Jrs2.2/samples$ 
> 
> Any idea, if 'xerces-c' library causing this error?
> 
> gIrIsh
> 
> *****************************************************************
> 
> 
> Thayer_Nicholas wrote:
>> 
>> Hello gIrIsh,
>> 
>> I believe the problem is that the 'XERCESCROOT' environment variable
> is
>> not exported.  This variable needs to be exported from the current
> shell
>> to be seen by other invoked processes.  Run the following:
>> 
>> $ export XERCESCROOT
>> 
>> In the console prior to calling 'make', and then the 'make' utility
> will
>> be able to see the XERCESCROOT environment variable reference.
>> 
>> Regards,
>> Nicholas
>> 
>> 
>> -----Original Message-----
>> From: girishw [mailto:mail.girish@yahoo.com] 
>> Sent: Monday, March 02, 2009 1:39 AM
>> To: c-users@xerces.apache.org
>> Subject: Re: Compile error while trying to 'make' /obj folder
>> 
>> 
>> Alberto,
>> 
>> You are correct. Although, the $XERCESCROOT was set, the 'make' was
> not
>> able
>> to read it somehow. I still don't understand 'why'. So, I added
>> XERCESCROOT=/usr/local/src/xerces-c-src_2_7_0 at the beginning of the
>> Makefile.incl and it solved the problem. Thanx.
>> 
>> gIrIsh
>> 
>> ***********************************************************  
>> 
>> 
>> girishw wrote:
>>> 
>>> Hi Alberto,
>>> 
>>> Yes. I have set the XERCESCROOT env variable. 
>>> 
>>> girish@tempbox:/$ echo $XERCESCROOT
>>> /usr/local/src/xerces-c-src_2_7_0
>>> girish@tempbox:/$
>>> 
>>> Rebooted the system. Still getting the same error.
>>> 
>>> gIrIsh
>>> 
>>>
>>
> ************************************************************************
>> ***************
>>> 
>>> 
>>> 
>>> Alberto Massari wrote:
>>>> 
>>>> The "make -C /obj -k " line makes me think you haven't set the 
>>>> XERCESCROOT env variable (note the C between XERCES and ROOT)
>>>> 
>>>> Alberto
>>>> 
>>>> girishw wrote:
>>>>> Hi,
>>>>>
>>>>> I am trying to install xerces 2.7.0 on Ubuntu 8.10 server (Intrepid
>>>>> Ibex). I
>>>>> have followed all the build instructions as per the document.
> First,
>> the
>>>>> compilation was interrupted when the files were missing in
>>>>> /include/xerces/dom/impl/ folder. I manually copied all the files
>> from
>>>>> the
>>>>> source and ran 'make' again. Now, it is throwing below error:
>>>>>
>>>>> *** error start ***
>>>>>   (CP)  /include/xercesc/validators/schema/identity
>>>>>   (CP)  /include/xercesc/validators/common
>>>>>   (CP)  /include/xercesc/validators/datatype
>>>>>   (CP)  /include/xercesc/validators/DTD
>>>>>   (CP)  /include/xercesc/validators/schema
>>>>>   (CP)  /include/xercesc/validators/schema/identity
>>>>>   (CP)  /include/xercesc/validators/schema/identity
>>>>> toplevel Building /lib/libxerces-c.so.27.0
>>>>> make -C /obj -k 
>>>>> make[1]: Entering directory `/obj'
>>>>> make[1]: *** No targets specified and no makefile found.  Stop.
>>>>> make[1]: Leaving directory `/obj'
>>>>> make: *** [/lib/libxerces-c.so.27.0] Error 2
>>>>> girish@tempbox:/obj$
>>>>> *** error end ***
>>>>>
>>>>> girish@tempbox:/obj$ ls -l
>>>>> total 20
>>>>> drwxr-xr-x 3 root root 20480 2009-02-27 17:59 LINUX
>>>>> girish@tempbox:/obj$
>>>>>
>>>>> Can somebody help?
>>>>>
>>>>> Note - I must use xerces-c-2.7.0 due to some strict dependency. The
>>>>> newer
>>>>> version won't work. Hence, installing readily available ubuntu
>> package
>>>>> "libxerces-c2-dev" is not an option. Unfortunately, the older
>> package
>>>>> "libxerces27-dev" is deprecated in Intrepid. 
>>>>>
>>>>> gIrIsh
>>>>>
>>>>>   
>>>> 
>>>> 
>>>> 
>>> 
>>> 
>> 
>> -- 
>> View this message in context:
>>
> http://www.nabble.com/Compile-error-while-trying-to-%27make%27--obj-fold
>> er-tp22246133p22283423.html
>> Sent from the Xerces - C - Users mailing list archive at Nabble.com.
>> 
>> 
>> 
>> 
> 
> -- 
> View this message in context:
> http://www.nabble.com/Compile-error-while-trying-to-%27make%27--obj-fold
> er-tp22246133p22303132.html
> Sent from the Xerces - C - Users mailing list archive at Nabble.com.
> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Compile-error-while-trying-to-%27make%27--obj-folder-tp22246133p22432025.html
Sent from the Xerces - C - Users mailing list archive at Nabble.com.


RE: Compile error while trying to 'make' /obj folder

Posted by Th...@emc.com.
Hello gIrIsh,

You should be able to make the library without sudo, but likely need
root privileges to install.  Perform the compilation from a sandbox in
your $HOME directory.  After the compilation, the modules can be
installed to the system using the 'make install' target.  Also, you
might want to consider a newer version of Xerces than 2.7.0.  

Run the following as 'girish' user:

$ cd
$ cp {xerces_src_download_location}/xerces-c-src_2_7_0.tar.gz ./
$ tar -xzvf ./xerces-c-src_2_7_0.tar.gz
$ cd ./xerces-c-src_2_7_0-src_2_7_0
$ export XERCESCROOT=$PWD
$ cd ./src/xercesc
$ ./runConfigure -p linux
$ make
$ cd ../../samples
$ ./runConfigure -p linux
$ cd ./DOMPrint
$ make
$ cd ../../bin
$ export LD_LIBRARY_PATH=../lib:$LD_LIBRARY_PATH
$ ./DOMPrint

Note: You may wish to build different versions of the library as
command-line args for 'runConfigure' script, but as a quick test just
run the following to build the libraries.

If this fails, then perhaps some permissions are incorrect on the
system.  You should have read and executable access to 'make' utility
without su privileges, and the samples should all build fine in the
sandbox.

The target 'make install' will need su privileges.  If this target
fails, then you've determined only an installation issue exists.  If
necessary, you can manually copy the header files and shared modules to
the appropriate directories at this point.

Regards,
Nicholas

-----Original Message-----
From: girishw [mailto:mail.girish@yahoo.com] 
Sent: Monday, March 02, 2009 11:24 PM
To: c-users@xerces.apache.org
Subject: RE: Compile error while trying to 'make' /obj folder


I exported the variable.

In fact, I added "XERCESCROOT=/usr/local/src/xerces-c-src_2_7_0" to
~/.bashrc and ~/.profile. Restarted the system. Ran "export
XERCESCROOT". It
didn't work.

I am logging in as a user 'girish' but, running 'make' using 'sudo' [$
sudo
make]. Is it possibly causing a problem? [I cannot run it as 'root'. no
privilege.]

By the way, after successfuly compiling all libraries when I try to
compile
and run the sample code, I get the following run-time error. 

girish@tempbox:~/Mp7Jrs2.2/samples$ sudo g++ -I../../include/generated
-I/usr/local/src/xerces-c-src_2_7_0/include -L/usr/lib -lxerces-c
-lmp7jrs
-o test main.cpp
girish@tempbox:~/Mp7Jrs2.2/samples$ 
girish@tempbox:~/Mp7Jrs2.2/samples$ ./test
./test: symbol lookup error: /usr/lib/libmp7jrs.2.so: undefined symbol:
_ZTIN11xerces_2_712XMLExceptionE
girish@tempbox:~/Mp7Jrs2.2/samples$ 

Any idea, if 'xerces-c' library causing this error?

gIrIsh

*****************************************************************


Thayer_Nicholas wrote:
> 
> Hello gIrIsh,
> 
> I believe the problem is that the 'XERCESCROOT' environment variable
is
> not exported.  This variable needs to be exported from the current
shell
> to be seen by other invoked processes.  Run the following:
> 
> $ export XERCESCROOT
> 
> In the console prior to calling 'make', and then the 'make' utility
will
> be able to see the XERCESCROOT environment variable reference.
> 
> Regards,
> Nicholas
> 
> 
> -----Original Message-----
> From: girishw [mailto:mail.girish@yahoo.com] 
> Sent: Monday, March 02, 2009 1:39 AM
> To: c-users@xerces.apache.org
> Subject: Re: Compile error while trying to 'make' /obj folder
> 
> 
> Alberto,
> 
> You are correct. Although, the $XERCESCROOT was set, the 'make' was
not
> able
> to read it somehow. I still don't understand 'why'. So, I added
> XERCESCROOT=/usr/local/src/xerces-c-src_2_7_0 at the beginning of the
> Makefile.incl and it solved the problem. Thanx.
> 
> gIrIsh
> 
> ***********************************************************  
> 
> 
> girishw wrote:
>> 
>> Hi Alberto,
>> 
>> Yes. I have set the XERCESCROOT env variable. 
>> 
>> girish@tempbox:/$ echo $XERCESCROOT
>> /usr/local/src/xerces-c-src_2_7_0
>> girish@tempbox:/$
>> 
>> Rebooted the system. Still getting the same error.
>> 
>> gIrIsh
>> 
>>
>
************************************************************************
> ***************
>> 
>> 
>> 
>> Alberto Massari wrote:
>>> 
>>> The "make -C /obj -k " line makes me think you haven't set the 
>>> XERCESCROOT env variable (note the C between XERCES and ROOT)
>>> 
>>> Alberto
>>> 
>>> girishw wrote:
>>>> Hi,
>>>>
>>>> I am trying to install xerces 2.7.0 on Ubuntu 8.10 server (Intrepid
>>>> Ibex). I
>>>> have followed all the build instructions as per the document.
First,
> the
>>>> compilation was interrupted when the files were missing in
>>>> /include/xerces/dom/impl/ folder. I manually copied all the files
> from
>>>> the
>>>> source and ran 'make' again. Now, it is throwing below error:
>>>>
>>>> *** error start ***
>>>>   (CP)  /include/xercesc/validators/schema/identity
>>>>   (CP)  /include/xercesc/validators/common
>>>>   (CP)  /include/xercesc/validators/datatype
>>>>   (CP)  /include/xercesc/validators/DTD
>>>>   (CP)  /include/xercesc/validators/schema
>>>>   (CP)  /include/xercesc/validators/schema/identity
>>>>   (CP)  /include/xercesc/validators/schema/identity
>>>> toplevel Building /lib/libxerces-c.so.27.0
>>>> make -C /obj -k 
>>>> make[1]: Entering directory `/obj'
>>>> make[1]: *** No targets specified and no makefile found.  Stop.
>>>> make[1]: Leaving directory `/obj'
>>>> make: *** [/lib/libxerces-c.so.27.0] Error 2
>>>> girish@tempbox:/obj$
>>>> *** error end ***
>>>>
>>>> girish@tempbox:/obj$ ls -l
>>>> total 20
>>>> drwxr-xr-x 3 root root 20480 2009-02-27 17:59 LINUX
>>>> girish@tempbox:/obj$
>>>>
>>>> Can somebody help?
>>>>
>>>> Note - I must use xerces-c-2.7.0 due to some strict dependency. The
>>>> newer
>>>> version won't work. Hence, installing readily available ubuntu
> package
>>>> "libxerces-c2-dev" is not an option. Unfortunately, the older
> package
>>>> "libxerces27-dev" is deprecated in Intrepid. 
>>>>
>>>> gIrIsh
>>>>
>>>>   
>>> 
>>> 
>>> 
>> 
>> 
> 
> -- 
> View this message in context:
>
http://www.nabble.com/Compile-error-while-trying-to-%27make%27--obj-fold
> er-tp22246133p22283423.html
> Sent from the Xerces - C - Users mailing list archive at Nabble.com.
> 
> 
> 
> 

-- 
View this message in context:
http://www.nabble.com/Compile-error-while-trying-to-%27make%27--obj-fold
er-tp22246133p22303132.html
Sent from the Xerces - C - Users mailing list archive at Nabble.com.



RE: Compile error while trying to 'make' /obj folder

Posted by girishw <ma...@yahoo.com>.
I exported the variable.

In fact, I added "XERCESCROOT=/usr/local/src/xerces-c-src_2_7_0" to
~/.bashrc and ~/.profile. Restarted the system. Ran "export XERCESCROOT". It
didn't work.

I am logging in as a user 'girish' but, running 'make' using 'sudo' [$ sudo
make]. Is it possibly causing a problem? [I cannot run it as 'root'. no
privilege.]

By the way, after successfuly compiling all libraries when I try to compile
and run the sample code, I get the following run-time error. 

girish@tempbox:~/Mp7Jrs2.2/samples$ sudo g++ -I../../include/generated
-I/usr/local/src/xerces-c-src_2_7_0/include -L/usr/lib -lxerces-c -lmp7jrs
-o test main.cpp
girish@tempbox:~/Mp7Jrs2.2/samples$ 
girish@tempbox:~/Mp7Jrs2.2/samples$ ./test
./test: symbol lookup error: /usr/lib/libmp7jrs.2.so: undefined symbol:
_ZTIN11xerces_2_712XMLExceptionE
girish@tempbox:~/Mp7Jrs2.2/samples$ 

Any idea, if 'xerces-c' library causing this error?

gIrIsh

*****************************************************************


Thayer_Nicholas wrote:
> 
> Hello gIrIsh,
> 
> I believe the problem is that the 'XERCESCROOT' environment variable is
> not exported.  This variable needs to be exported from the current shell
> to be seen by other invoked processes.  Run the following:
> 
> $ export XERCESCROOT
> 
> In the console prior to calling 'make', and then the 'make' utility will
> be able to see the XERCESCROOT environment variable reference.
> 
> Regards,
> Nicholas
> 
> 
> -----Original Message-----
> From: girishw [mailto:mail.girish@yahoo.com] 
> Sent: Monday, March 02, 2009 1:39 AM
> To: c-users@xerces.apache.org
> Subject: Re: Compile error while trying to 'make' /obj folder
> 
> 
> Alberto,
> 
> You are correct. Although, the $XERCESCROOT was set, the 'make' was not
> able
> to read it somehow. I still don't understand 'why'. So, I added
> XERCESCROOT=/usr/local/src/xerces-c-src_2_7_0 at the beginning of the
> Makefile.incl and it solved the problem. Thanx.
> 
> gIrIsh
> 
> ***********************************************************  
> 
> 
> girishw wrote:
>> 
>> Hi Alberto,
>> 
>> Yes. I have set the XERCESCROOT env variable. 
>> 
>> girish@tempbox:/$ echo $XERCESCROOT
>> /usr/local/src/xerces-c-src_2_7_0
>> girish@tempbox:/$
>> 
>> Rebooted the system. Still getting the same error.
>> 
>> gIrIsh
>> 
>>
> ************************************************************************
> ***************
>> 
>> 
>> 
>> Alberto Massari wrote:
>>> 
>>> The "make -C /obj -k " line makes me think you haven't set the 
>>> XERCESCROOT env variable (note the C between XERCES and ROOT)
>>> 
>>> Alberto
>>> 
>>> girishw wrote:
>>>> Hi,
>>>>
>>>> I am trying to install xerces 2.7.0 on Ubuntu 8.10 server (Intrepid
>>>> Ibex). I
>>>> have followed all the build instructions as per the document. First,
> the
>>>> compilation was interrupted when the files were missing in
>>>> /include/xerces/dom/impl/ folder. I manually copied all the files
> from
>>>> the
>>>> source and ran 'make' again. Now, it is throwing below error:
>>>>
>>>> *** error start ***
>>>>   (CP)  /include/xercesc/validators/schema/identity
>>>>   (CP)  /include/xercesc/validators/common
>>>>   (CP)  /include/xercesc/validators/datatype
>>>>   (CP)  /include/xercesc/validators/DTD
>>>>   (CP)  /include/xercesc/validators/schema
>>>>   (CP)  /include/xercesc/validators/schema/identity
>>>>   (CP)  /include/xercesc/validators/schema/identity
>>>> toplevel Building /lib/libxerces-c.so.27.0
>>>> make -C /obj -k 
>>>> make[1]: Entering directory `/obj'
>>>> make[1]: *** No targets specified and no makefile found.  Stop.
>>>> make[1]: Leaving directory `/obj'
>>>> make: *** [/lib/libxerces-c.so.27.0] Error 2
>>>> girish@tempbox:/obj$
>>>> *** error end ***
>>>>
>>>> girish@tempbox:/obj$ ls -l
>>>> total 20
>>>> drwxr-xr-x 3 root root 20480 2009-02-27 17:59 LINUX
>>>> girish@tempbox:/obj$
>>>>
>>>> Can somebody help?
>>>>
>>>> Note - I must use xerces-c-2.7.0 due to some strict dependency. The
>>>> newer
>>>> version won't work. Hence, installing readily available ubuntu
> package
>>>> "libxerces-c2-dev" is not an option. Unfortunately, the older
> package
>>>> "libxerces27-dev" is deprecated in Intrepid. 
>>>>
>>>> gIrIsh
>>>>
>>>>   
>>> 
>>> 
>>> 
>> 
>> 
> 
> -- 
> View this message in context:
> http://www.nabble.com/Compile-error-while-trying-to-%27make%27--obj-fold
> er-tp22246133p22283423.html
> Sent from the Xerces - C - Users mailing list archive at Nabble.com.
> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Compile-error-while-trying-to-%27make%27--obj-folder-tp22246133p22303132.html
Sent from the Xerces - C - Users mailing list archive at Nabble.com.


RE: Compile error while trying to 'make' /obj folder

Posted by Th...@emc.com.
Hello gIrIsh,

I believe the problem is that the 'XERCESCROOT' environment variable is
not exported.  This variable needs to be exported from the current shell
to be seen by other invoked processes.  Run the following:

$ export XERCESCROOT

In the console prior to calling 'make', and then the 'make' utility will
be able to see the XERCESCROOT environment variable reference.

Regards,
Nicholas


-----Original Message-----
From: girishw [mailto:mail.girish@yahoo.com] 
Sent: Monday, March 02, 2009 1:39 AM
To: c-users@xerces.apache.org
Subject: Re: Compile error while trying to 'make' /obj folder


Alberto,

You are correct. Although, the $XERCESCROOT was set, the 'make' was not
able
to read it somehow. I still don't understand 'why'. So, I added
XERCESCROOT=/usr/local/src/xerces-c-src_2_7_0 at the beginning of the
Makefile.incl and it solved the problem. Thanx.

gIrIsh

***********************************************************  


girishw wrote:
> 
> Hi Alberto,
> 
> Yes. I have set the XERCESCROOT env variable. 
> 
> girish@tempbox:/$ echo $XERCESCROOT
> /usr/local/src/xerces-c-src_2_7_0
> girish@tempbox:/$
> 
> Rebooted the system. Still getting the same error.
> 
> gIrIsh
> 
>
************************************************************************
***************
> 
> 
> 
> Alberto Massari wrote:
>> 
>> The "make -C /obj -k " line makes me think you haven't set the 
>> XERCESCROOT env variable (note the C between XERCES and ROOT)
>> 
>> Alberto
>> 
>> girishw wrote:
>>> Hi,
>>>
>>> I am trying to install xerces 2.7.0 on Ubuntu 8.10 server (Intrepid
>>> Ibex). I
>>> have followed all the build instructions as per the document. First,
the
>>> compilation was interrupted when the files were missing in
>>> /include/xerces/dom/impl/ folder. I manually copied all the files
from
>>> the
>>> source and ran 'make' again. Now, it is throwing below error:
>>>
>>> *** error start ***
>>>   (CP)  /include/xercesc/validators/schema/identity
>>>   (CP)  /include/xercesc/validators/common
>>>   (CP)  /include/xercesc/validators/datatype
>>>   (CP)  /include/xercesc/validators/DTD
>>>   (CP)  /include/xercesc/validators/schema
>>>   (CP)  /include/xercesc/validators/schema/identity
>>>   (CP)  /include/xercesc/validators/schema/identity
>>> toplevel Building /lib/libxerces-c.so.27.0
>>> make -C /obj -k 
>>> make[1]: Entering directory `/obj'
>>> make[1]: *** No targets specified and no makefile found.  Stop.
>>> make[1]: Leaving directory `/obj'
>>> make: *** [/lib/libxerces-c.so.27.0] Error 2
>>> girish@tempbox:/obj$
>>> *** error end ***
>>>
>>> girish@tempbox:/obj$ ls -l
>>> total 20
>>> drwxr-xr-x 3 root root 20480 2009-02-27 17:59 LINUX
>>> girish@tempbox:/obj$
>>>
>>> Can somebody help?
>>>
>>> Note - I must use xerces-c-2.7.0 due to some strict dependency. The
>>> newer
>>> version won't work. Hence, installing readily available ubuntu
package
>>> "libxerces-c2-dev" is not an option. Unfortunately, the older
package
>>> "libxerces27-dev" is deprecated in Intrepid. 
>>>
>>> gIrIsh
>>>
>>>   
>> 
>> 
>> 
> 
> 

-- 
View this message in context:
http://www.nabble.com/Compile-error-while-trying-to-%27make%27--obj-fold
er-tp22246133p22283423.html
Sent from the Xerces - C - Users mailing list archive at Nabble.com.



Re: Compile error while trying to 'make' /obj folder

Posted by girishw <ma...@yahoo.com>.
Alberto,

You are correct. Although, the $XERCESCROOT was set, the 'make' was not able
to read it somehow. I still don't understand 'why'. So, I added
XERCESCROOT=/usr/local/src/xerces-c-src_2_7_0 at the beginning of the
Makefile.incl and it solved the problem. Thanx.

gIrIsh

***********************************************************  


girishw wrote:
> 
> Hi Alberto,
> 
> Yes. I have set the XERCESCROOT env variable. 
> 
> girish@tempbox:/$ echo $XERCESCROOT
> /usr/local/src/xerces-c-src_2_7_0
> girish@tempbox:/$
> 
> Rebooted the system. Still getting the same error.
> 
> gIrIsh
> 
> ***************************************************************************************
> 
> 
> 
> Alberto Massari wrote:
>> 
>> The "make -C /obj -k " line makes me think you haven't set the 
>> XERCESCROOT env variable (note the C between XERCES and ROOT)
>> 
>> Alberto
>> 
>> girishw wrote:
>>> Hi,
>>>
>>> I am trying to install xerces 2.7.0 on Ubuntu 8.10 server (Intrepid
>>> Ibex). I
>>> have followed all the build instructions as per the document. First, the
>>> compilation was interrupted when the files were missing in
>>> /include/xerces/dom/impl/ folder. I manually copied all the files from
>>> the
>>> source and ran 'make' again. Now, it is throwing below error:
>>>
>>> *** error start ***
>>>   (CP)  /include/xercesc/validators/schema/identity
>>>   (CP)  /include/xercesc/validators/common
>>>   (CP)  /include/xercesc/validators/datatype
>>>   (CP)  /include/xercesc/validators/DTD
>>>   (CP)  /include/xercesc/validators/schema
>>>   (CP)  /include/xercesc/validators/schema/identity
>>>   (CP)  /include/xercesc/validators/schema/identity
>>> toplevel Building /lib/libxerces-c.so.27.0
>>> make -C /obj -k 
>>> make[1]: Entering directory `/obj'
>>> make[1]: *** No targets specified and no makefile found.  Stop.
>>> make[1]: Leaving directory `/obj'
>>> make: *** [/lib/libxerces-c.so.27.0] Error 2
>>> girish@tempbox:/obj$
>>> *** error end ***
>>>
>>> girish@tempbox:/obj$ ls -l
>>> total 20
>>> drwxr-xr-x 3 root root 20480 2009-02-27 17:59 LINUX
>>> girish@tempbox:/obj$
>>>
>>> Can somebody help?
>>>
>>> Note - I must use xerces-c-2.7.0 due to some strict dependency. The
>>> newer
>>> version won't work. Hence, installing readily available ubuntu package
>>> "libxerces-c2-dev" is not an option. Unfortunately, the older package
>>> "libxerces27-dev" is deprecated in Intrepid. 
>>>
>>> gIrIsh
>>>
>>>   
>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Compile-error-while-trying-to-%27make%27--obj-folder-tp22246133p22283423.html
Sent from the Xerces - C - Users mailing list archive at Nabble.com.