Version: 990121 Beta
Configuration Options: --prefix=/usr/local
Platform: hppa1.1-hp.hpux11.00 (is what was guessed, but actually it's hppa2.0)
Compiler: egcs-1.1.1

There are actually two problems I wanted to report.

First, when I run configure, it finds header files for both dl.h (shl_* functions) and 
dlfcn.h (dl* functions), as indeed they both exist. However, for some reason I don't 
understand, there is no libdl.* (which implements the dl* interface) to be found 
anywhere on my newly installed HP-UX 11.00 system. I looked at the online help for the 
HP cc compiler, and it mentions both the shl_* and dl* interface, but says that the 
dl* interface should only be used with 64-bit programs. If I understand correctly, 
hppa1.1 is a 32-bit processor and that is the target that I compiled egcs for, so egcs 
shouldn't be using dlfcn.h on HP-UX at all. (And, BTW, I have yet to see any configure 
script that supports hppa2.0.) Also, Hugs' runtime depends on 32-bit words, doesn't 
it? So, provided that my HP installation is not exceptionally faulty (and I don't 
think it is, since we had someone from HP come and install it), the right thing to do 
for now at least seems to be to mandate using dl.h on HP-UX, regardless of whether or 
not dlfcn.h exists.

I fixed this by manually commenting out HAVE_DLFCN_H in config.h.

Having done so, if I compile with the native cc (CC=cc configure --prefix=/usr/local 
--without-gcc), I get a working executable. If I compile with egcs, the executable 
crashes with an unexpected signal (segmentation fault) right after printing the 
banner. Here's a backtrace:

main() at hugs.c:173
interpreter() at hugs.c:1470
initialize() at hugs.c:249
readScripts() at hugs.c:881
addScript() at hugs.c:754
checkDefns() at static.c:5490
tcscc() at scc.c:95
tclowlink() at scc.c:50

  50:  List ws = DEPENDS(v);          /* adjacency list for v               */

The value of v in tclowlink is 1546.

I tried to debug this but gave up when I realized how many macro definitions there are 
(can't access 'em from DDD)... sorry.

BTW, there's a small possibility that this problem is egcs-related. egcs doesn't 
really handle hpux11.00 yet, so I had to massage the target configuration when I 
compiled it. But up until it's been working fine...

--FC

Reply via email to