Tk Source Code

View Ticket
Login
Ticket UUID: 220347
Title: Linking and 'make test' errors for tk8.0p2
Type: Bug Version: obsolete: 8.0p2
Submitter: welch Created on: 2000-10-31 23:15:02
Subsystem: 84. Unix Build Assigned To: nobody
Priority: 2 Severity:
Status: Closed Last Modified: 2001-03-23 10:11:06
Resolution: Fixed Closed By: dgp
    Closed on: 2001-03-23 03:11:06
Description:
OriginalBugID: 577 Bug
Version: 8.0p2
SubmitDate: '1998-05-21'
LastModified: '1999-04-16'
Severity: LOW
Status: Released
Submitter: hershey
ChangedBy: hershey
OS: Solaris
OSVersion: NA
Machine: NA
FixedDate: '1999-04-16'
FixedInVersion: 8.1


When I build Tcl 8.1 or Tcl8.0p2 followed by the tk of the same
version
like this for solaris-x86:

configure --enable-shared --enable-gcc ; make

I end up getting this error, when attempting to create
libtk8.X.so:

/usr/ccs/bin/ld -G -z text -o libtk8.0.so tk3d.o tkArgv.o tkAtom.o

tkBind.o tkBitmap.o tkClipboard.o tkCmds.o tkColor.o tkConfig.o
tkCursor.o tkError.o tkEvent.o tkFocus.o tkFont.o tkGet.o tkGC.o
tkGeometry.o tkGrab.o tkGrid.o tkMain.o tkOption.o tkPack.o
tkPlace.o
tkSelect.o tkUtil.o tkVisual.o tkWindow.o tkUnix.o tkUnix3d.o
tkUnixButton.o tkUnixColor.o tkUnixCursor.o tkUnixDialog.o
tkUnixDraw.o
tkUnixEmbed.o tkUnixEvent.o tkUnixFocus.o tkUnixFont.o
tkUnixInit.o
tkUnixMenu.o tkUnixMenubu.o tkUnixScale.o tkUnixScrlbr.o
tkUnixSelect.o
tkUnixSend.o tkUnixWm.o tkUnixXId.o tkButton.o tkEntry.o tkFrame.o

tkListbox.o tkMenu.o tkMenubutton.o tkMenuDraw.o tkMessage.o
tkScale.o
tkScrollbar.o tkCanvas.o tkCanvArc.o tkCanvBmap.o tkCanvImg.o
tkCanvLine.o tkCanvPoly.o tkCanvPs.o tkCanvText.o tkCanvUtil.o
tkCanvWind.o tkRectOval.o tkTrig.o tkImage.o tkImgBmap.o
tkImgGIF.o
tkImgPPM.o tkImgPhoto.o tkText.o tkTextBTree.o tkTextDisp.o
tkTextImage.o tkTextIndex.o tkTextMark.o tkTextTag.o tkTextWind.o
-R
/usr/local/lib -L/export/nv3/tapi/pvm/8.0/tcl8.0/unix -ltcl8.0
-lsocket
-lnsl -lX11 -ldl -lm -lc
Text relocation remains                       referenced
    against symbol                  offset      in file
__ctype                             0x1d4       tkGet.o
__ctype                             0x1b8       tkGet.o
__ctype                             0x4ac       tkCanvPs.o
ld: fatal: relocations remain against allocatable but non-writable

sections
make: *** [libtk8.0.so] Error 1

man ld gives:

     -z text     In dynamic mode only, force a fatal error if any
                 relocations  against  non-writable,  allocatable
                 sections remain.

If I take out the -z option to the ld linker or take out the
--enable-shared option to configure, everything works fine, and I
get
the libtk8.1.so that I want, and it goes on to create the wish
executable too.

For tk8.0p2, these are the `make test` errors I get, but they
don't
really seem related to the -z text option. Anyone know what I'm
doing
wrong?

I'm using CDE and the std. solaris-x86 X-server.

menubut.test


==== menubutton-4.5 ConfigureMenuButton procedure
==== Contents of test case:

    catch {destroy .mb1}
    button .mb1 -text "Sample text" -width 10 -height 2
    pack .mb1
    set result "[winfo reqwidth .mb1] [winfo reqheight .mb1]"
    .mb1 configure -bitmap questhead
    lappend result [winfo reqwidth .mb1] [winfo reqheight .mb1]

==== Result was:
100 44 20 12
---- Result should have been:
102 46 20 12
---- menubutton-4.5 FAILED


==== menubutton-7.13 ComputeMenuButtonGeometry procedure
==== Contents of test case:

    catch {destroy .mb}
    menubutton .mb -text String -bd 2 -relief raised
-highlightthickness 1 -indicatoron 1
    pack .mb
    list [winfo reqwidth .mb] [winfo reqheight .mb]

==== Result was:
75 28
---- Result should have been:
78 28
---- menubutton-7.13 FAILED
msgbox.test
oldpack.test
option.test
pack.test
place.test
raise.test
safe.test
scale.test


==== scale-7.1 ComputeScaleGeometry procedure
==== Contents of test case:

    catch {destroy .s}
    scale .s -from 0 -to 10 -label "Short" -orient vertical
-length 5i
    pack .s
    update
    list [winfo reqwidth .s] [winfo reqheight .s]

==== Result was:
88 434

Seeya,---- Result should have been:
88 458
---- scale-7.1 FAILED


==== scale-7.5 ComputeScaleGeometry procedure
==== Contents of test case:

    catch {destroy .s}
    scale .s -from 0 -to 10 -label "Short" -orient horizontal
-length 5i
    pack .s
    update
    list [winfo reqwidth .s] [winfo reqheight .s]

==== Result was:
434 61
---- Result should have been:
458 61
---- scale-7.5 FAILED
scrollbar.test
select.test
send.test
Your X server is insecure, so "send" can't be used; skipping
"send"
tests.
text.test
textBTree.test
textDisp.test
textImage.test
textIndex.test


==== textIndex-5.1 TkTextGetIndex, "@"
==== Contents of test case:

    .t index @12,9

==== Result was:
1.0
---- Result should have been:
1.1
---- textIndex-5.1 FAILED
textMark.test
textTag.test


:-)

Peter Morch

Manager - Automated Testing Development
GN Nettest Canada
E-mail   : [email protected]
Telephone: (+1) 905-479-8090 Ext. 455
FAX      : (+1) 905-475-6524



These tests are all marked nonPortable in Tk8.1
04/16/1999 13:35 - hershey -