Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 15dca4fdc4903fe2f504a4744ed7ef3361ff34a0
Ticket: 2502365fffffffffffffffffffffffffffffffff
Building of head on HPUX is broken when using the native CC
User & Date: andreas_kupries on 2009-01-12 20:08:49
Changes

  1. assignee changed to: "nijtmans"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Using the native C compiler on HPUX the configure script generates a Makefile which is broken.
    The SHLIB_LD variable is set to 'cc -Wl,-b'. This is wrong. It has to be 'cc -b'.
    The flag is properly forwarded to the native linker in this form. In the -Wl form some handling in cc itself is bypassed.
    
    The error caused by using -Wl,-b is
    
    /usr/ccs/bin/ld: CODE_ONE_SYM fixup to non-code subspace in file /opt/langtools/lib/crt0.o - shared library must be position independent. Use +z or +Z to recompile.
    make: *** [libtcl8.6.sl] Error 1
    
    This has to be fixed somewhere in the configure  and/or tcl.m4. The last to modify the HP sections was Jan IIRC, hence the assigning it to him.
    
    ./unix/configure:7128:        SHLIB_LD="${CC} -Wl,-b"
    ./unix/tcl.m4:1283:             SHLIB_LD="${CC} -Wl,-b"
    
    Tk is broken in the same manner.
    
    ./unix/configure:5013:          SHLIB_LD="${CC} -Wl,-b"
    ./unix/tcl.m4:1283:             SHLIB_LD="${CC} -Wl,-b"
    
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "9 Immediate"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "andreas_kupries"
  10. subsystem changed to: "53. Configuration and Build Tools"
  11. title changed to:
    Building of head on HPUX is broken when using the native CC
    
  12. type changed to: "Bug"