help-cgicc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[help-cgicc] Problem compiling the cgicc library on AIX 4.3


From: Naipaul Ojar
Subject: [help-cgicc] Problem compiling the cgicc library on AIX 4.3
Date: Mon, 2 Sep 2002 11:09:55 +0100

Dear All,

I have compiled the cgicc library and developed my application on cygwin
fine, but I cannot
get the cgicc library to link under AIX. I have tried both gcc compiler and
the AIX C++ compiler
but the linker scripts give errors relating to 'ld' and 'collect2'.

This seems to be known problem, but I cannot find a solution, but I have
read of people who
have it working under AIX.



-----------------------------------------------------------------------------------------------------------------------


I have a linker problem with the gcc compiler when trying to link the cgicc
library.

I have AIX 4.3.3 as a devlopment system and I have acquired from the UCLA
site the following binaries:

1. gcc-V3.1
2. automaker 1.6.2

I am tring to make  the gnu package cgicc-3.2.1

I get two sets of problems
1. linking the so library
   generating symbol list for `libcgicc.la'
   /usr/bin/nm -B  CgiEnvironment.o CgiInput.o CgiUtils.o Cgicc.o
   FormEntry.o FormFile.o HTMLAttribute.o HTMLAttributeList.o HTMLDoctype.o
   HTMLElement.o HTMLElementList.o HTTPContentHeader.o HTTPCookie.o
   HTTPHTMLHeader.o HTTPHeader.o HTTPPlainHeader.o HTTPRedirectHeader.o
   HTTPResponseHeader.o HTTPStatusHeader.o MStreamable.o   | sed -n -e
   's/^.*[         ]\([BCDT][BCDT]*\)[     ][      ]*\(\)\([_A-Za-z]
   [_A-Za-z0-9]*\)$/\1 \2\3 \3/p' | sed 's/.* //' | sort | uniq >
   .libs/libcgicc.exp
   gcc -shared -o .libs/libcgicc.so.1  CgiEnvironment.o CgiInput.o
   CgiUtils.o Cgicc.o FormEntry.o FormFile.o HTMLAttribute.o
   HTMLAttributeList.o HTMLDoctype.o HTMLElement.o HTMLElementList.o
   HTTPContentHeader.o HTTPCookie.o HTTPHTMLHeader.o HTTPHeader.o
   HTTPPlainHeader.o HTTPRedirectHeader.o HTTPResponseHeader.o
   HTTPStatusHeader.o MStreamable.o   -lc  ${wl}-berok -Wl,-bnoentry -Wl,
   -bexport:.libs/libcgicc.exp
   ld: 0711-415 WARNING: Symbol
   _GLOBAL__I__ZN5cgicc14CgiEnvironmentC2EPNS_8CgiInputE is already
   exported.
   ld: 0711-415 WARNING: Symbol
   _GLOBAL__D__ZN5cgicc14CgiEnvironmentC2EPNS_8CgiInputE is already
   exported.
   ld: 0711-415 WARNING: Symbol
   _GLOBAL__F__ZN5cgicc14CgiEnvironmentC2EPNS_8CgiInputE is already
   exported.
   ld: 0711-415 WARNING: Symbol _GLOBAL__I__ZN5cgicc8CgiInputD2Ev is
   already exported.
   ld: 0711-415 WARNING: Symbol _GLOBAL__D__ZN5cgicc8CgiInputD2Ev is
   already exported.
   ld: 0711-415 WARNING: Symbol _GLOBAL__F__ZN5cgicc8CgiInputD2Ev is
   already exported.
   ld: 0711-415 WARNING: Symbol _GLOBAL__F__ZN5cgicc10safeGetenvEPKc is
   already exported.
   ld: 0711-415 WARNING: Symbol
   _GLOBAL__I__ZN5cgicc15MultipartHeaderC2ERKSsS2_S2_S2_ is already
   exported

   But the .libs/libcgicc.so.1 was created

1. linking the individual applications:
ld: 0711-415 WARNING: Symbol _GLOBAL__I__ZN5cgicclsERSoRKNS_11MStreamableE
is already exported.
ld: 0711-415 WARNING: Symbol _GLOBAL__D__ZN5cgicclsERSoRKNS_11MStreamableE
is already exported.
ld: 0711-415 WARNING: Symbol _GLOBAL__F__ZN5cgicclsERSoRKNS_11MStreamableE
is already exported.
ld: 0711-224 WARNING: Duplicate symbol: typeinfo for cgicc::MStreamable
ld: 0711-224 WARNING: Duplicate symbol: typeinfo name for
cgicc::MStreamable
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
ar -crlo .libs/libcgicc.a .libs/libcgicc.so.1
creating libcgicc.la
(cd .libs && rm -f libcgicc.la && ln -s ../libcgicc.la libcgicc.la)
Target "check" is up to date.
Making check in doc
Target "check" is up to date.
Making check in support
Target "check" is up to date.
Making check in demo
        source='test.cpp' object='test.o' libtool=no  depfile
='.deps/test.Po' tmpdepfile='.deps/test.TPo'  depmode=gcc3 /bin/sh
../support/depcomp  g++ -DHAVE_CONFIG_H -I. -I. -I../cgicc -I.. -I..
-Wall -W -pedantic -g -O2 -c -o test.o `test -f test.cpp || echo './'
`test.cpp
        /bin/sh ../libtool --mode=link g++  -Wall -W -pedantic -g -O2    -o
test.cgi  test.o ../cgicc/libcgicc.la
mkdir .libs
   g++ -Wall -W -pedantic -g -O2 -o .libs/test.cgi test.o  -L../cgicc/.libs
   -lcgicc
   ld: 0711-317 ERROR: Undefined symbol: typeinfo for
   cgicc::HTMLBooleanElement<cgicc::preTag>
   ld: 0711-317 ERROR: Undefined symbol: typeinfo for
   cgicc::HTMLAtomicElement<cgicc::colTag>
   ld: 0711-317 ERROR: Undefined symbol: typeinfo for
   cgicc::HTMLBooleanElement<cgicc::colgroupTag>
   ld: 0711-317 ERROR: Undefined symbol: typeinfo for
   cgicc::HTMLBooleanElement<cgicc::tableTag>
   ld: 0711-317 ERROR: Undefined symbol: typeinfo for
   cgicc::HTMLBooleanElement<cgicc::trTag>
   ld: 0711-317 ERROR: Undefined symbol: typeinfo for
   cgicc::HTMLBooleanElement<cgicc::tdTag>
   ld: 0711-317 ERROR: Undefined symbol: typeinfo for
   cgicc::HTMLAtomicElement<cgicc::hrTag>
   ld: 0711-317 ERROR: Undefined symbol: typeinfo for
   cgicc::HTMLAtomicElement<cgicc::brTag>
   ld: 0711-317 ERROR: Undefined symbol: typeinfo for
   cgicc::HTMLBooleanElement<cgicc::aTag>
   ld: 0711-317 ERROR: Undefined symbol: typeinfo for
   cgicc::HTMLBooleanElement<cgicc::divTag>
   ld: 0711-317 ERROR: Undefined symbol: typeinfo for
   cgicc::HTMLBooleanElement<cgicc::pTag>
   ld: 0711-317 ERROR: Undefined symbol: typeinfo for
   cgicc::HTMLBooleanElement<cgicc::h2Tag>
   ld: 0711-317 ERROR: Undefined symbol: typeinfo for
   cgicc::HTMLBooleanElement<cgicc::h4Tag>
   ld: 0711-317 ERROR: Undefined symbol: typeinfo for
   cgicc::HTMLBooleanElement<cgicc::spanTag>
   ld: 0711-317 ERROR: Undefined symbol: typeinfo for
   cgicc::HTMLBooleanElement<cgicc::h1Tag>
   ld: 0711-317 ERROR: Undefined symbol: typeinfo for
   cgicc::HTMLBooleanElement<cgicc::bodyTag>
   ld: 0711-317 ERROR: Undefined symbol: typeinfo for
   cgicc::HTMLBooleanElement<cgicc::titleTag>
   ld: 0711-317 ERROR: Undefined symbol: typeinfo for
   cgicc::HTMLBooleanElement<cgicc::styleTag>
   ld: 0711-317 ERROR: Undefined symbol: typeinfo for
   cgicc::HTMLBooleanElement<cgicc::headTag>
   ld: 0711-317 ERROR: Undefined symbol: typeinfo for
   cgicc::HTMLBooleanElement<cgicc::htmlTag>
   ld: 0711-317 ERROR: Undefined symbol: typeinfo for cgicc::comment
   ld: 0711-317 ERROR: Undefined symbol: typeinfo for
   cgicc::HTMLBooleanElement<cgicc::nullTag>


Here the link fails.

I do believe that the wrong linker options are used, can you comment or
provide any recommendations.



Best Regards
Naipaul Ojar
_____________________________________________
 IBM/Tivoli UK Ltd.,                          IBM UK Ltd
 Sefton Park                                       Alencon House, AL8
 Bells Hill,  Stoke Poges               Alencon Way
 Buckinghamshire, UK                   Basingstoke, UK
 SL2 4JS                                             RG32 7EJ

Tel: +44(0)1753 780228, x56228
Mob: +44(07764)290407,  MOBEX: 271954
Sefton Park Fax: +44(0)1753 780899





reply via email to

[Prev in Thread] Current Thread [Next in Thread]