Problem with compiling with gcc on HP-UX 11.00

Sonison James sonison_james@persistent.co.in
Sat Aug 9 22:25:00 GMT 2003


Hello,

I am trying to compile a simple hello world application using gcc 3.2 on
11.00. I get the following error when I run the application:
/usr/lib/dld.sl: Unresolved symbol: pthread_once (code) from
/usr/local/lib/gcc
-lib/hppa2.0n-hp-hpux11.00/3.2/../../../libgcc_s.sl

However if I link with pthread then I do not get this crash. Why do I need
to link with pthread ? Is there some patch that I need to install ?

Thanks and regards

Sonison James




More information about the Gcc-help mailing list