General
cancel
Showing results for 
Search instead for 
Did you mean: 

Compiling TCL8.4.12 on HP-UX 11.0

deepus
Occasional Visitor

Compiling TCL8.4.12 on HP-UX 11.0

Hi Friends,

I am trying to build Tcl 8.4.12 on HP-UX 11.0 32 bit machine. i ran the configure script and while running the make command, all the object files are created and while linking iam getting error saying
/usr/ccs/bin/ld: DP relative code in file /var/tmp//cciQJopd.o - shared library must be position
independent. Use +z or +Z to recompile.
collect2: ld returned 1 exit status
*** Error exit code 1

Then i included the +z option and built all the object files, but while linking giving error
/usr/ccs/bin/ld: Can't open /usr/local/lib:.
/usr/ccs/bin/ld: No such file or directory
collect2: ld returned 1 exit status
*** Error exit code 1

Can any one tell me how to rectify this error.
1 REPLY
Dennis Handly
Acclaimed Contributor

Re: Compiling TCL8.4.12 on HP-UX 11.0

The error message is for HP's compilers. gcc needs -fPIC.

ld: Can't open /usr/local/lib:.

Why do you have a colon on the end of a directory?