IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Opened 20 years ago

Closed 20 years ago

#839 closed defect (invalid)

pslib.h looks for xmllib2 headers in the wrong place.

Reported by: robert.desonia@… Owned by: Paul Price
Priority: high Milestone:
Component: build Version: 0.12.0
Severity: normal Keywords:
Cc:

Description

3) pslib.h looks for xmllib2 headers in the wrong place.

Using the build specified above and all the environment variables
noted at the beginning, I try to compile the very simplest bit of
code I can think of:

% cat simplest.c
#include "pslib.h"

int main() {

return 0;

};
% cc $CPPFLAGS simplest.c
In file included from /array-2/tmp/lsst/local/include/pslib_strict.h:43,

from /array-2/tmp/lsst/local/include/pslib.h:19,
from simplest.c:1:

/array-2/tmp/lsst/local/include/psXML.h:21:27: libxml/parser.h: No
such file or directory
In file included from /array-2/tmp/lsst/local/include/pslib_strict.h:43,

from /array-2/tmp/lsst/local/include/pslib.h:19,
from simplest.c:1:...

So it's not finding a libxml include file, and indeed this dir does not exist:

/array-2/tmp/lsst/local/include/libxml/

Instead the libxml include files are in:

/array-2/tmp/lsst/local/include/libxml2/libxml/

so maybe something is funky about the libxml installation.

To work around that I can make a symbolic link:
ln -s /array-2/tmp/lsst/local/include/libxml2/libxml/ \

/array-2/tmp/lsst/local/include/libxml

but it seems like a bug that this should be necessary.

At that point the simple code compiles, but attempting to do anything
more complicated fails.
% cat openfits.c
#include "pslib.h"

int main() {

psFits* fitsFile = psFitsOpen("gimg0128.fits", "r");

...
% cc $CPPFLAGS openfits.c
/tmp/ccyOw0id.o(.text+0x2a): In function `main':
: undefined reference to `psFitsOpen'
...

that is probably use error, but I'm not sure. It may also indicate
that my build is totally hosed. In any case...I would very much
appreciate your logging these bugs. Also, if I can get access to the
bug tracker, I would be most grateful. If you need an in-project
reference for me, either Robert Lupton or Jeff Morgan would give me a
good reference.

Regards,

-- Russell

Change History (1)

comment:1 by Paul Price, 20 years ago

Resolution: invalid
Status: newclosed

libxml has been removed from our dependencies since this code.

Note: See TracTickets for help on using tickets.