| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| X-MimeOLE: | Produced By Microsoft Exchange V6.0.6375.0 |
| content-class: | urn:content-classes:message |
| MIME-Version: | 1.0 |
| Subject: | Building the GNU cgicc library... |
| Date: | Sun, 10 Aug 2003 13:20:15 -0700 |
| Message-ID: | <407DF7D68DD30440B5CEB70ED234D1CF038B01A9@excuswa100.americas.unity> |
| X-MS-Has-Attach: | |
| X-MS-TNEF-Correlator: | |
| From: | "Bakken, Luke" <Luke DOT Bakken AT getronics DOT com> |
| To: | <cygwin AT cygwin DOT com> |
| X-OriginalArrivalTime: | 10 Aug 2003 20:20:19.0291 (UTC) FILETIME=[D18F2AB0:01C35F7C] |
| X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id h7AKKa731834 |
Hi all,
Just trying to get cgicc 3.2.2 built on cygwin...
Here's my environment:
Windows XP Professional Ver 5.1 Build 2600 Service Pack 1
Cygwin DLL version info:
DLL version: 1.3.22
g++ (GCC) 3.2 20020927 (prerelease)
Using this and the latest cgicc library sources (3.2.2), I get the
following errors:
----------
/bin/bash ../libtool --mode=link g++ -Wall -W -pedantic -g -O2 -o
libcgicc.la -rpath /usr/lib -version-info 5:0:0 CgiEnvironment.
lo CgiInput.lo CgiUtils.lo Cgicc.lo FormEntry.lo FormFile.lo
HTMLAttribute.lo HTMLAttributeList.lo HTMLDoctype.lo HTMLElement.lo HTM
LElementList.lo HTTPContentHeader.lo HTTPCookie.lo HTTPHTMLHeader.lo
HTTPHeader.lo HTTPPlainHeader.lo HTTPRedirectHeader.lo HTTPResp
onseHeader.lo HTTPStatusHeader.lo MStreamable.lo
libtool: link: warning: undefined symbols not allowed in i686-pc-cygwin
shared libraries
ar cru .libs/libcgicc.a CgiEnvironment.o CgiInput.o CgiUtils.o Cgicc.o
FormEntry.o FormFile.o HTMLAttribute.o HTMLAttributeList.o H
TMLDoctype.o HTMLElement.o HTMLElementList.o HTTPContentHeader.o
HTTPCookie.o HTTPHTMLHeader.o HTTPHeader.o HTTPPlainHeader.o HTTPRe
directHeader.o HTTPResponseHeader.o HTTPStatusHeader.o MStreamable.o
ranlib .libs/libcgicc.a
creating libcgicc.la
(cd .libs && rm -f libcgicc.la && ln -s ../libcgicc.la libcgicc.la)
make[2]: Leaving directory `/home/lukeb/cgicc-3.2.2/cgicc'
make[1]: Leaving directory `/home/lukeb/cgicc-3.2.2/cgicc'
Making all in doc
make[1]: Entering directory `/home/lukeb/cgicc-3.2.2/doc'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/lukeb/cgicc-3.2.2/doc'
Making all in support
make[1]: Entering directory `/home/lukeb/cgicc-3.2.2/support'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/lukeb/cgicc-3.2.2/support'
Making all in demo
make[1]: Entering directory `/home/lukeb/cgicc-3.2.2/demo'
if g++ -DHAVE_CONFIG_H -I. -I. -I../cgicc -I.. -I.. -Wall -W
-pedantic -g -O2 -MT test.o -MD -MP -MF ".deps/test.Tpo" \
-c -o test.o `test -f 'test.cpp' || echo './'`test.cpp; \
then mv -f ".deps/test.Tpo" ".deps/test.Po"; \
else rm -f ".deps/test.Tpo"; exit 1; \
fi
/bin/bash ../libtool --mode=link g++ -Wall -W -pedantic -g -O2 -o
test.cgi.exe test.o ../cgicc/libcgicc.la
mkdir .libs
g++ -Wall -W -pedantic -g -O2 -o test.cgi.exe test.o
../cgicc/.libs/libcgicc.a
test.o(.ctors+0x0): In function
`_ZNK5cgicc18HTMLBooleanElementINS_7htmlTagEE7getNameEv':
/home/lukeb/cgicc-3.2.2/demo/../cgicc/HTMLBooleanElement.h: undefined
reference to `__GLOBAL__I_main'
test.o(.dtors+0x0):/home/lukeb/cgicc-3.2.2/demo/../cgicc/HTMLBooleanElem
ent.h: undefined reference to `__GLOBAL__D_main'
../cgicc/.libs/libcgicc.a(HTMLElement.o)(.ctors+0x0): In function
`_ZN5cgicc11HTMLElementC1Ev':
/home/lukeb/cgicc-3.2.2/cgicc/../cgicc/HTMLElement.h: undefined
reference to `__GLOBAL__I__ZN5cgicc11HTMLElementC2ERKS0_'
../cgicc/.libs/libcgicc.a(HTMLElement.o)(.dtors+0x0):/home/lukeb/cgicc-3
.2.2/cgicc/../cgicc/HTMLElement.h: undefined reference to `_
_GLOBAL__D__ZN5cgicc11HTMLElementC2ERKS0_'
../cgicc/.libs/libcgicc.a(HTTPHTMLHeader.o)(.ctors+0x0):HTTPHTMLHeader.c
pp: undefined reference to `__GLOBAL__I__ZN5cgicc14HTTPHTMLH
eaderC2Ev'
../cgicc/.libs/libcgicc.a(HTTPHTMLHeader.o)(.dtors+0x0):HTTPHTMLHeader.c
pp: undefined reference to `__GLOBAL__D__ZN5cgicc14HTTPHTMLH
eaderC2Ev'
../cgicc/.libs/libcgicc.a(HTTPContentHeader.o)(.ctors+0x0): In function
`_ZN5cgicc17HTTPContentHeaderC2ERKSs':
/home/lukeb/cgicc-3.2.2/cgicc/HTTPContentHeader.cpp:31: undefined
reference to `__GLOBAL__I__ZN5cgicc17HTTPContentHeaderC2ERKSs'
../cgicc/.libs/libcgicc.a(HTTPContentHeader.o)(.dtors+0x0):/home/lukeb/c
gicc-3.2.2/cgicc/HTTPContentHeader.cpp:31: undefined referen
ce to `__GLOBAL__D__ZN5cgicc17HTTPContentHeaderC2ERKSs'
collect2: ld returned 1 exit status
make[1]: *** [test.cgi.exe] Error 1
make[1]: Leaving directory `/home/lukeb/cgicc-3.2.2/demo'
make: *** [all-recursive] Error 1
----------
However, when I set CXX=g++-2 (gcc 2.95.3-10), everything builds OK and
test programs build with this version of gcc work as well.
Just wondering what I could do to help get this working with the current
gcc.
Thanks!
Luke Bakken
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |