W3C home > Mailing lists > Public > www-lib@w3.org > April to June 1997

Help with libwww.a version 5.1a on Solaris

From: Michel Le <le@ilog.fr>
Date: Tue, 8 Apr 1997 19:36:38 +0200
Message-Id: <9704081736.AA16812@sceaux.ilog.fr>
To: www-lib@w3.org
Hi,

After using the program configure, I've succeeded to compile  libwww.a
version 5.1a on the following system :

- "SunOS lafourche 5.5.1 Generic sun4u sparcSUNW,Ultra-2" 
- the compiler used is the Sun compiler "/opt/SUNWspro/bin/cc" not gcc.

I've then compiled the examples but none of them except init and
libapp_1 seems to work.

For instance the program libapp_3 seems to hang over in a NETREAD call in
HTReader_read.

Did I forget something ?
Can anybody help ?

Thanks.

Here's the stack. I've put the trace on in libapp_3.c.


lafourche% make CC=cc CFLAGS=-g libapp_3
cc -DHAVE_CONFIG_H -I. -I. -I../.. -I./../../Library/src  -g -c libapp_3.c
cc  -o libapp_3  libapp_3.o ../../Library/src/libwww.a -lm -ldl -lnsl -lsocket
lafourche% dbx libapp_3
Using .dbxinit compatibility mode.  See `help .dbxrc' for more information.
Reading symbolic information for libapp_3
Reading symbolic information for rtld /usr/lib/ld.so.1
Reading symbolic information for libm.so.1
Reading symbolic information for libdl.so.1
Reading symbolic information for libnsl.so.1
Reading symbolic information for libsocket.so.1
Reading symbolic information for libc.so.1
Reading symbolic information for libintl.so.1
Reading symbolic information for libmp.so.1
Reading symbolic information for libw.so.1
Reading symbolic information for libc_psr.so.1
(dbx) run http://sceaux:8100/indexus.htm
Running: libapp_3 http://sceaux:8100/indexus.htm 
(process id 2164)
BlackHole... Created
Buffer...... Created with size 8192
HTAccess.... Accessing document http://sceaux:8100/indexus.htm
Net Before.. calling 8eb28 (request cf390, context 0)
Net Before.. calling 8e590 (request cf390, context 0)
Net Before.. calling 8e448 (request cf390, context 0)
Net Before.. calling 8f510 (request cf390, context 0)
URL Tree.... did NOT find `w3c-AA'
Credentials. verified
Net Before.. calling 90ba8 (request cf390, context 0)
URL Tree.... did NOT find `w3c-pep'
Net Before.. calling 8e230 (request cf390, context 0)
Net Object.. cf708 created with hash 1
Net Object.. starting request cf390 (retry=1) with net object cf708
HTTP........ Looking for `http://sceaux:8100/indexus.htm'
HTDoConnect. Looking up `sceaux:8100'
Event....... Created event cde98 with context cf760, priority 20, and timeout -1
Event....... Created event cdeb8 with context cf760, priority 20, and timeout -1
Event....... Created event cded8 with context cf760, priority 20, and timeout -1
Host info... added `sceaux' with host cf760 to list cf0f0
Host info... Add Net cf708 to pipeline of host cf760
HTHost cf760 going to state TCP_CHANNEL.
HTHost cf760 going to state TCP_DNS.
Looking up sceaux
DNS Add..... `sceaux' with 1 home(s) to cf140
ParseInet... as port 8100 on 172.16.1.59 with 1 homes
HTHost cf760 going to state TCP_NEED_SOCKET.
Socket...... Created 4
Net Manager. Increasing active sockets to 1, 0 persistent sockets
Socket...... Turned off Nagle's algorithm
Socket...... Blocking socket
Channel..... Hash value is 4
Channel..... Added d0028 to list cf2d0
Contacting sceaux
HTHost cf760 going to state TCP_NEED_CONNECT.
HTHost cf760 going to state TCP_CONNECTED.
HTHost cf760 connected.
StreamStack. Constructing stream stack for text/x-http to */*
Tee......... Created stream cebb0 with resolver a2cc0
HTTP........ Dumping request to `w3chttp.out'
HTTP........ Generating Request Headers
HTTP........ Generating General Headers
Buffer...... Waiting... **************************** HANGING HERE *******
^Cdbx: warning: Interrupt ignored but forwarded to child.
signal INT (Interrupt) in _libc_read at 0xef5b87e4
_libc_read+0x8: ta      0x8
Current function is HTReader_read
  113               if ((me->b_read = NETREAD(soc, me->data, DebugBufferSize)) < 0) {
(dbx) where
  [1] _libc_read(0x4, 0xd2030, 0x8000, 0xef5b87dc, 0x0, 0xcd8e9), at 0xef5b87e4
=>[2] HTReader_read(me = 0xd2018), line 113 in "HTReader.c"
  [3] HTHost_read(host = 0xcf760, net = 0xcf708), line 1257 in "HTHost.c"
  [4] HTTPEvent(soc = -1, pVoid = 0xcde78, type = HTEvent_READ), line 1008 in "HTTP.c"
  [5] HTLoadHTTP(soc = -1, request = 0xcf390), line 807 in "HTTP.c"
  [6] HTNet_newClient(request = 0xcf390), line 732 in "HTNet.c"
  [7] HTLoad(me = 0xcf390, recursive = '\0'), line 1535 in "HTReqMan.c"
  [8] launch_request(request = 0xcf390, recursive = '\0'), line 75 in "HTAccess.c"
  [9] HTLoadAbsolute(url = 0xeffff5cd "http://sceaux:8100/indexus.htm", request = 0xcf390), line 88 in "HTAccess.c"
  [10] HTLoadToStream(url = 0xeffff5cd "http://sceaux:8100/indexus.htm", output = 0xcf528, request = 0xcf390), line 128 in "HTAccess.c"
  [11] main(argc = 2, argv = 0xeffff424), line 22 in "libapp_3.c"
(dbx) quit
lafourche% 
Received on Tuesday, 8 April 1997 13:41:01 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:27 GMT