Operating System - HP-UX
1752654 Members
5440 Online
108788 Solutions
New Discussion

Re: Compiling TCL8.4.12 on HP-UX 11.0

 
deepus
New Member

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 1
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?