Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-04-05
08:22 • Ticket [218907ffff] wrong compiler flags generated for SCO-Openserver and gcc</i... artifact: 112c3ab86f user: dgp
2000-10-26
08:31 • Closed ticket [218907ffff]. artifact: 1c07376f55 user: welch
01:07 • New ticket [218907ffff]. artifact: 33b7648e29 user: nobody

wrong compiler flags generated for SCO-Openserver and gcc

Closed / Fixed218907ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:07:41
OriginalBugID: 2636 Bug
Version: 8.2
SubmitDate: '1999-08-31'
LastModified: '1999-11-10'
Severity: CRIT
Status: Released
Submitter: techsupp
ChangedBy: hobbs
OS: Other
OSVersion: SCO Openserver 5.04
Machine: NA
FixedDate: '1999-11-10'
FixedInVersion: 8.3b1
ClosedDate: '2000-10-25'


Name:
dr. joachim heidemeier

CustomShell:
--

ReproducibleScript:
running configure --enable-gcc and --enable-shared for SCO openserver
    5.04 failed building tclsh.
    System SCO Openserver 5.04 and gcc 2.7.2.3 (from Skunkware CD)
    Reason: SCO changed flags for gcc vom "SCO-behavior" to "gcc-behavior",
    namely
    -belf to -melf 
    and 
    -Kpic to -fpic.
    Simple diff.  included, but the compilation using the standard cc will
    no longer work with this diff.
    *** configure Mi Aug 25 16:51:50 1999
    --- /usr/tmp/dAAAa002Kr Mi Aug 25 16:54:26 1999
    ***************
    *** 5030,5036 ****
                # Note, dlopen is available only on SCO 3.2.5 and greater.
    However,
                # this test works, since "uname -s" was non-standard in
    3.2.4 and
                # below.
    !           SHLIB_CFLAGS="-Kpic -belf"
                SHLIB_LD="ld -G"
                SHLIB_LD_LIBS=""
                SHLIB_SUFFIX=".so"
    --- 5030,5036 ----
                # Note, dlopen is available only on SCO 3.2.5 and greater.
    However,
                # this test works, since "uname -s" was non-standard in
    3.2.4 and
                # below.
    !           SHLIB_CFLAGS="-fpic -melf"
                SHLIB_LD="ld -G"
                SHLIB_LD_LIBS=""
                SHLIB_SUFFIX=".so"
    ***************
    *** 5036,5042 ****
                SHLIB_SUFFIX=".so"
                DL_OBJS="tclLoadDl.o"
                DL_LIBS=""
    !           LDFLAGS="-belf -Wl,-Bexport"
                LD_SEARCH_FLAGS=""
                ;;
            SINIX*5.4*)
    --- 5036,5042 ----
                SHLIB_SUFFIX=".so"
                DL_OBJS="tclLoadDl.o"
                DL_LIBS=""
    !           LDFLAGS="-melf -Wl,-Bexport"
                LD_SEARCH_FLAGS=""
                ;;
            SINIX*5.4*)

PatchFiles:
unix/configure
    also relevant for tk8.02/unix/configure (same problem)



Added in tcl.m4 for 8.3 with check specifically for gcc. 
-- 11/10/1999 hobbs
welch Closed ticket [218907ffff]. [History diff]2000-10-26 08:31:15
dgp Ticket [218907ffff]: 3 changes [History diff]2001-04-05 08:22:16
Log in (anonymous is fine) to add a comment.