Compilation of development version

Questions about Anatomist manipulation

Moderators: denghien, riviere

Post Reply
User avatar
schwartz
Posts: 26
Joined: Mon Mar 08, 2004 9:12 am
Location: Pitié-Salpêtrière - Centre MEG/EEG
Contact:

Compilation of development version

Post by schwartz »

Hello,

I synchronized my perforce tree this morning and I got the following error when I run build-config anatomist :

....
ValueError: No sources found for libxml2 in /pclxserver2/home/schwartz/perforce:/home/appli

It was not the case on version compiled on 12/28. libxml2 is installed on my system (developpement package).

Any idea ?

Denis
Centre MEG/EEG - LENA-UPR640 CNRS
Ph.: 33 (0)1 42 16 14 16
User avatar
riviere
Site Admin
Posts: 1361
Joined: Tue Jan 06, 2004 12:21 pm
Location: CEA NeuroSpin, Saint Aubin, France
Contact:

Post by riviere »

Hi Denis,

It's new ! the xml2 dependency has just been added...
On RedHat/Fedora systems at least (I guess it's the same on Mandrake), libxml2 is installed in /usr/include/libxml2/libxml/parser.h and /usr/lib/libxml2.so
The include path is not the same as other standard paths: we must compile using -I/usr/include/libxml2 (and not the default /usr/include path), so build-config has to change a little bit the standard search path for libxml2.
Where are your parser.h and libxml2.so located ?

Denis
Guest

Post by Guest »

Hi Denis,

Here are the locations :

/usr/local/lib/libxml2.so.2.6.16
/usr/local/include/libxml2/libxml/parser.h

Denis
User avatar
riviere
Site Admin
Posts: 1361
Joined: Tue Jan 06, 2004 12:21 pm
Location: CEA NeuroSpin, Saint Aubin, France
Contact:

Post by riviere »

And is there a /usr/local/lib/libxml2.so (without the numbers), which should be a symlink to the numbered file ?
If not, that's the problem.
If yes, well, there's a bug in build-config.

Denis
User avatar
schwartz
Posts: 26
Joined: Mon Mar 08, 2004 9:12 am
Location: Pitié-Salpêtrière - Centre MEG/EEG
Contact:

Post by schwartz »

yeap !


ls /usr/local/lib :

....
libxml2.so -> libxml2.so.2.6.16
Centre MEG/EEG - LENA-UPR640 CNRS
Ph.: 33 (0)1 42 16 14 16
User avatar
riviere
Site Admin
Posts: 1361
Joined: Tue Jan 06, 2004 12:21 pm
Location: CEA NeuroSpin, Saint Aubin, France
Contact:

Post by riviere »

In this case there's a bug in build-config. I will check...
Denis
User avatar
riviere
Site Admin
Posts: 1361
Joined: Tue Jan 06, 2004 12:21 pm
Location: CEA NeuroSpin, Saint Aubin, France
Contact:

Post by riviere »

It's strange: it works for me when libxml2 is in the same paths as on your system. Are you sure your build-config is up to date ?
By the way, why have you installed libxml2 in /usr/local, isn't it part of your standard system in /usr ?
Can you run build-config in verbose mode:

Code: Select all

build-config --verbose libxml2
and tell me what it outputs ?
For me it says:

Code: Select all

buildInstances: libxml2
options of libxml2 : {'packversion': None, 'verbose': 1, 'tar': 1, 'help': 0, 'sources': '/misc/sys2/home/appli:/home/appli', 'prefix': '/usr/local/shfj', 'build': 1, 'install': 0, 'x11': 1, 'configure': 1, 'pack': 0}
libxml2 include: /usr/include/libxml2
libxml2 : found  : 1
libxml2 : enabled: 1
postInit libxml2
includes of  libxml2 :  ['/usr/include/libxml2']
defines of libxml2 : []
build libs of libxml2 : ['-lxml2']
libxml2: nothing to configure
libxml2: nothing to build
Denis
User avatar
schwartz
Posts: 26
Joined: Mon Mar 08, 2004 9:12 am
Location: Pitié-Salpêtrière - Centre MEG/EEG
Contact:

Post by schwartz »

hi denis,

The latest version of libxml2 is installed in /usr/local, the one coming with redhat9 is in /usr. I thought at the beginning that my version was to old so I recompiled and installed the latest one (maybe this was not a good move ...).

here's the output :

build-config --verbose libxml2

buildInstances: libxml2
Traceback (most recent call last):
File "/pclxserver2/home/schwartz/perforce/util-main/build-config", line 3719, in ?
buildInstances( componentsToBuild )
File "/pclxserver2/home/schwartz/perforce/util-main/build-config", line 177, in buildInstances
compclass = buildExternalComponent( comp[0], comp[1] )
File "/pclxserver2/home/schwartz/perforce/util-main/build-config", line 237, in buildExternalComponent
raise ValueError( 'No sources found for ' + component + ' in ' \
ValueError: No sources found for libxml2 in /pclxserver2/home/schwartz/perforce:/home/appli


and concerning build-config : ls -al util-main :

-r-xr-xr-x 1 schwartz PERFORCE 6609 Jun 21 2004 build-algosdk
-rwxrwxrwx 1 schwartz PERFORCE 126132 Oct 25 10:28 build-config
-r-xr-xr-x 1 schwartz PERFORCE 6180 Jan 7 10:35 build-nightly
-r-xr-xr-x 1 schwartz PERFORCE 25780 Jun 21 2004 build-shfjpack
-r-xr-xr-x 1 schwartz PERFORCE 9005 Dec 2 18:25 configure
-r-xr-xr-x 1 schwartz PERFORCE 1558 Jun 21 2004 copyDirectoryStructure
-r-xr-xr-x 1 schwartz PERFORCE 3261 Jun 21 2004 distccmon
-r-xr-xr-x 1 schwartz PERFORCE 2776 Oct 25 10:20 dllinstall
-r-xr-xr-x 1 schwartz PERFORCE 751 Jun 21 2004 fpath
-r-xr-xr-x 1 schwartz PERFORCE 4485 Jun 21 2004 makeCommandsDoc
-r-xr-xr-x 1 schwartz PERFORCE 97350 Jan 11 14:50 maker
-rw-rw-r-- 1 schwartz PERFORCE 83575 Dec 22 16:36 makerc
-r-xr-xr-x 1 schwartz PERFORCE 563 Jun 21 2004 nobadlink
-r-xr-xr-x 1 schwartz PERFORCE 106 Dec 2 18:25 nodeadlink
-r-xr-xr-x 1 schwartz PERFORCE 100 Jun 21 2004 nodep
-r-xr-xr-x 1 schwartz PERFORCE 3621 Jun 21 2004 p4client
-r-xr-xr-x 1 schwartz PERFORCE 2802 Jun 21 2004 p4h
-r-xr-xr-x 1 schwartz PERFORCE 2329 Jun 21 2004 pythonProfile
-r-xr-xr-x 1 schwartz PERFORCE 13492 Jan 7 10:35 setupPackage.py
-r-xr-xr-x 1 schwartz PERFORCE 451 Jun 21 2004 stat-exec
-r-xr-xr-x 1 schwartz PERFORCE 6165 Jun 21 2004 stat-management
-r-xr-xr-x 1 schwartz PERFORCE 809 Oct 1 13:18 systemIdentification
-r-xr-xr-x 1 schwartz PERFORCE 3616 Nov 8 10:43 update-bin
-r-xr-xr-x 1 schwartz PERFORCE 1493 Oct 25 10:20 update-lib
drwxrwsr-x 2 schwartz PERFORCE 4096 Oct 1 13:18 usbMount

Denis
Centre MEG/EEG - LENA-UPR640 CNRS
Ph.: 33 (0)1 42 16 14 16
User avatar
riviere
Site Admin
Posts: 1361
Joined: Tue Jan 06, 2004 12:21 pm
Location: CEA NeuroSpin, Saint Aubin, France
Contact:

Post by riviere »

Ah OK, that's the problem: your build-config has not been updated since oct. 25. You have it opened under perforce. Revert it and sync...
Denis
User avatar
schwartz
Posts: 26
Joined: Mon Mar 08, 2004 9:12 am
Location: Pitié-Salpêtrière - Centre MEG/EEG
Contact:

Post by schwartz »

OK now it seems to compile, i had something really strange with perforce, first time I reverted it sais build-config not edited and refused to update it with p4 sync -f , I had to remove util-main directory, p4 sync, it synchronized correctly except for build-config which was nowhere ..., so i did again a revert ok this time)and p4 sync -f util-main/build-config (sucessfull).

Thanks a lot !

Denis
Centre MEG/EEG - LENA-UPR640 CNRS
Ph.: 33 (0)1 42 16 14 16
Post Reply