Hello All,

I am trying to compile (I cannot name this activity 'porting')
xerces-c1_4 on DYNIX/ptx numa 4.0 V4.4.7 i386
I have GNU make and GCC 2.95.3 installed and configured
(it compile c++ programs including STL - so I assume
 all libraries are in place)

I found that DYNIX/ptx supported (this is not stated in the docs)
I thought that this shouldn't be a problem as
compiling c++ program that mainly works in memory
using modern GCC on UNIX without templates, RTTI and threads
must be basicly the same compared to linux. However I faced
several problems.

1) runConfigure and configure are not executable 
   out of the tgz
   so I chmod +x on them

then I run runConfigure -pptx -cgcc    -xc++
  configure.log.gz attached

then I run make
  It generaly works  but g++ is called  with -KPIC and -Kthread
  which are not known to g++
------------------------------------------
  g++ -KPIC -Kthread -DPTX -c -O -DXML_USE_NATIVE_TRANSCODER -DXML_USE_INMEM_MESS
  g++: unrecognized option `-KPIC'
  g++: unrecognized option `-Kthread'
------------------------------------------
then the following errors occured

--------------------------------------------------------------  
In file included from PTXPlatformUtils.cpp:73:
../Solaris/SolarisPlatformUtils.cpp:67: pthread.h: No such file or directory
^^^^I didn't find the way to specify that threads are not needed

make[3]: *** [PTXPlatformUtils.o] Error 1
make[3]: Leaving directory `/home/konst/xerces-c-src1_4_0/src/util/Platforms/PT
make[2]: Leaving directory `/home/konst/xerces-c-src1_4_0/src/util/Platforms'
cd Transcoders/Iconv ; make ; cd ../..
make[2]: Entering directory `/home/konst/xerces-c-src1_4_0/src/util/Transcoders
mkdir -p /home/konst/xerces-c-src1_4_0/include/util/Transcoders/Iconv
cp -fp IconvTransService.hpp /home/konst/xerces-c-src1_4_0/include/util/Transco
g++ -KPIC -Kthread -DPTX -c -O -DXML_USE_NATIVE_TRANSCODER -DXML_USE_INMEM_MESS
g++: unrecognized option `-KPIC'
g++: unrecognized option `-Kthread'
In file included from IconvTransService.cpp:68:
/usr/include/wchar.h:45: warning: `NULL' redefined
/usr/local/lib/gcc-lib/i386-sequent-sysv4/2.95.3/include/stdio.h:118: warning:
IconvTransService.cpp: In method `int IconvTransService::compareIString(const X
IconvTransService.cpp:127: `_L' undeclared (first use this function)
IconvTransService.cpp:127: (Each undeclared identifier is reported only once
IconvTransService.cpp:127: for each function it appears in.)
IconvTransService.cpp: In method `bool IconvTransService::isSpace(short unsigne
IconvTransService.cpp:170: `_S' undeclared (first use this function)
IconvTransService.cpp:170: implicit declaration of function `int isspace(...)'
make[2]: *** [IconvTransService.o] Error 1
----------------------------------------------------------------
the libxerces-c1_4.so is build however

then in the samples directory I run runConfigure with the same parameters
It said that it will use g++ 
(samples/configure2.log.gz is attached)
however then it tries to do something realy stupid
---------------------------------------------------------------
Building SAXPrint
cd SAXPrint ; make  ; cd ..
make[1]: Entering directory `/home/konst/xerces-c-src1_4_0/samples/SAXPrint'
mkdir -p /home/konst/xerces-c-src1_4_0/bin/obj/SAXPrint
cc  -I. -I/home/konst/xerces-c-src1_4_0/include
-o /home/konst/xerces-c-src1_4_0/bin/obj/SAXPrint/SAXPrint.o
/home/konst/xerces-c-src1_4_0/samples/SAXPrint/SAXPrint.cpp
ld: /home/konst/xerces-c-src1_4_0/samples/SAXPrint/SAXPrint.cpp:
fatal error: file type unknown to the library used by ld
make[1]: *** [/home/konst/xerces-c-src1_4_0/bin/obj/SAXPrint/SAXPrint.o] Error
----------------------------------------------------------
make2.log.gz is attached

then I tryed to run g++ by hand (with -lsocket and -lnsl added)
but link stage failed because XMLPlatformUtils was not found 
(no surprise, as its compliation failed becaues of pthreads.h)
---------------------------------------------
konst@[numa]://...samples>cd DOMCount/
konst@[numa]://...DOMCount>g++ -I. -I /home/konst/xerces-c-src1_4_0/include/ 
DOMCount.cpp -o DOMCount -L  $XERCESCROOT/lib  -lxerces-c1_4 -lsocket -lnsl
/var/tmp/cc0vEvDs.o: In function `main':
/var/tmp/cc0vEvDs.o(.text+0x34d): undefined reference to 
`XMLPlatformUtils::getCurrentMillis(void)'
/var/tmp/cc0vEvDs.o(.text+0x370): undefined reference to 
`XMLPlatformUtils::getCurrentMillis(void)'
/home/konst/xerces-c-src1_4_0/lib/libxerces-c1_4.so: undefined reference to 
`XMLPlatformUtils::makeTransService(void)'
/home/konst/xerces-c-src1_4_0/lib/libxerces-c1_4.so: undefined reference to 
`XMLPlatformUtils::readFileBuffer(void *, unsigned int, unsigned char *)'
/home/konst/xerces-c-src1_4_0/lib/libxerces-c1_4.so: undefined reference to 
`XMLPlatformUtils::loadAMsgSet(unsigned short const *)'
/home/konst/xerces-c-src1_4_0/lib/libxerces-c1_4.so: undefined reference to 
`XMLPlatformUtils::unlockMutex(void *)'
/home/konst/xerces-c-src1_4_0/lib/libxerces-c_4.so: undefined reference to `XMLP
------------------------------------------------

Can sombody give an advice? Sorry for a long letter.



-- 
Sincerely Yours, Konstantin Kivi, Russia, [EMAIL PROTECTED]

configure.log.gz

make.log.gz

configure2.log.gz

����:make2.log��Ao�0�{>ŻM�DX������Pi��*M���#�,`"��� 
�)v;�C�G����u�*I�D���_��rź����{�g��j�h����؊��&'�Ge.����3��sQ��.#^x�W�h����_��!兯z�Yd�:
�^��统��`�]�꿗����*����t��W��(���Eo^�����S�R�~HR����{��P�P>rH���
�
��il�i�\�����ö֦�G�z�_tȱ�9F���V���1����E�su���&���.�J�;�D�N���k'Hh�4�.0�zI�;;?����'6����#�k�Q�c��1zvL�y��ge�G���8�w0����w��F�⪚B���g&HeO������$Ν3?�:��4g��KN�x�&"7�3$$w�OW�\/�&g��'�_������g~�ҐS59�M�L���A���I9g~fr��OI��&wó
 �oȩ����&g&HEN������$��3?39��$g�]�4���[0[@L�ܿ���i
G���̫��)i}X�e|-4.�DrM������4�.�z�N9���L#/�������~�^X;4ƭ��/a�HlK
�mk�A=;*���s0�~�Α�����)�����.%K^_%������j}I!�m�1w*��P�7���S;��̒��)u;D�q�:R�
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to