hello I'm trying to create a package from the DICOM toolkit tarball (dcmtk http://dicom.offis.de/dcmtk.php.en). I want to use openpkg to maintain some applications written by our division and their dependencies packages (ie dcmtk). Openpkg would be installed on top on solaris package system wich manage only packages related to the system (ie gnu developpment tools). The problem is my newly created dcmtk package need libxml to compile properly. And libxml need libiconv to work properly. I installed libiconv, libxml from the latest openpackage release. When I try to compile my package dcmtk, I have the following

c++ -O2 -I/home/cyril/Packages/include/libxml2 -I/home/cyril/Packages/include -fPIC -L../libsrc -L../../ofstd/libsrc -o xml2dcm xml2dcm.o -lxml2 -ldcmdata -lofstd -lz -lm -lthread -lsocket -lnsl
error:
Undefined first referenced
symbol in file
libiconv /home/cyril/Packages/lib/libxml2.a(encoding.o)
libiconv_open /home/cyril/Packages/lib/libxml2.a(encoding.o)
libiconv_close /home/cyril/Packages/lib/libxml2.a(encoding.o)
ld: fatal: Symbol referencing errors. No output written to xml2dcm


Obviously, when I try to link on libxml it fails. I think it is because Gnu GCC has a built-in version of libiconv and it is confused on the freshly installed libiconv package.
I would like to be able to compile this code without installing gcc as openpkg (System packages are not maintained by our team).


Is anybody has had similar problems ?
any tips ?
thanks a lot

Cyrille Duret
Digital Imaging Unit, Head
Service of Medical Informatics
University Hospital of Geneva             E-mail: [EMAIL PROTECTED]
24, rue Micheli du Crest
CH-1211 GENEVA 14. SWITZERLAND

______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
User Communication List                      [EMAIL PROTECTED]

Reply via email to