cURL / Mailing Lists / curl-library / Single Mail

curl-library

building tests/server under cygwin

From: David Byron <DByron_at_everdreamcorp.com>
Date: Mon, 4 Aug 2003 16:02:19 -0700

Not sure why I haven't run into this sooner or really why it's a problem. I
get this in both 7.10.5 and 7.10.6. I'm running an XP machine and cygwin.

From a bash shell:

$ cd tests
tests/ $ cd server
tests/server $ make sws
gcc -g -O2 sws.c -o sws
/cygdrive/c/DOCUME~1/DByron/LOCALS~1/Temp/ccbugnYs.o(.text+0xe95): In
function `send_doc':
/cygdrive/c/src/curl-7.10.5-1/tests/server/sws.c:384: undefined reference to
`spitout'
/cygdrive/c/DOCUME~1/DByron/LOCALS~1/Temp/ccbugnYs.o(.text+0xed7):/cygdrive/
c/src/curl-7.10.5-1/tests/server/sws.c:397: undefined re
ference to `spitout'
collect2: ld returned 1 exit status
make: *** [sws] Error 1

The error is pretty obvious. sws.c isn't meant to build an executable on
its own. It needs stuff from getpart.c, etc.

If I do

tests/server $ make clean
tests/server $ make
make all-am
make[1]: Entering directory `/cygdrive/c/src/curl-7.10.5-1/tests/server'
source='sws.c' object='sws.o' libtool=no \
depfile='.deps/sws.Po' tmpdepfile='.deps/sws.TPo' \
depmode=gcc /bin/bash ../../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I../../lib -I../../src -I. -I../../lib -g
-O2 -c `test -f 'sws.c' || echo './'`sws.c
source='getpart.c' object='getpart.o' libtool=no \
depfile='.deps/getpart.Po' tmpdepfile='.deps/getpart.TPo' \
depmode=gcc /bin/bash ../../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I../../lib -I../../src -I. -I../../lib -g
-O2 -c `test -f 'getpart.c' || echo './'`getpart.c
/bin/bash ../../libtool --mode=link gcc -g -O2 -o sws.exe sws.o
getpart.o -lz -lz
mkdir .libs
gcc -g -O2 -o sws.exe sws.o getpart.o -lz
make[1]: Leaving directory `/cygdrive/c/src/curl-7.10.5-1/tests/server'

which is fine.

The bummer here is that tests/Makefile uses make sws so I can just run "make
test" there.

Has anyone else run into this? Shouldn't tests/Makefile just execute make
in the server directory when it wants to build sws? I can provide more info
on my cygwin setup and XP setup in general if it helps.

Thanks much.

-DB

-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
Received on 2003-08-05