Tcl Source Code

Hex Artifact Content
Login

Artifact fbab128dac510347ef2971291b5aeb58c871dca7:

Attachment "debugsuffix.txt" to ticket [1879220fff] added by eriklns 2008-01-25 03:57:14.
0000: 49 20 65 78 70 65 72 69 65 6e 63 65 64 20 74 68  I experienced th
0010: 61 74 20 4c 69 6e 75 78 20 62 75 69 6c 64 73 20  at Linux builds 
0020: 6f 66 20 74 68 65 20 54 63 6c 20 61 6e 64 20 54  of the Tcl and T
0030: 6b 20 73 6f 75 72 63 65 20 64 69 73 74 72 69 62  k source distrib
0040: 75 74 69 6f 6e 73 0a 67 65 6e 65 72 61 74 65 20  utions.generate 
0050: 62 69 6e 61 72 69 65 73 20 77 68 6f 73 65 20 6e  binaries whose n
0060: 61 6d 65 73 20 64 6f 20 6e 6f 74 20 64 69 73 74  ames do not dist
0070: 69 6e 67 75 69 73 68 20 64 65 62 75 67 20 61 6e  inguish debug an
0080: 64 20 6e 6f 6e 2d 64 65 62 75 67 0a 62 75 69 6c  d non-debug.buil
0090: 64 73 20 28 75 73 69 6e 67 20 74 68 65 20 73 75  ds (using the su
00a0: 66 66 69 78 20 22 67 22 29 2e 20 54 68 69 73 20  ffix "g"). This 
00b0: 6d 61 6b 65 73 20 74 68 61 74 20 77 68 65 6e 20  makes that when 
00c0: 69 6e 73 74 61 6c 6c 69 6e 67 20 74 68 65 6d 2c  installing them,
00d0: 0a 64 65 62 75 67 20 62 75 69 6c 64 73 20 6f 76  .debug builds ov
00e0: 65 72 77 72 69 74 65 20 6e 6f 6e 2d 64 65 62 75  erwrite non-debu
00f0: 67 20 62 75 69 6c 64 73 20 28 6f 72 20 76 69 63  g builds (or vic
0100: 65 20 76 65 72 73 61 2c 20 64 65 70 65 6e 64 69  e versa, dependi
0110: 6e 67 20 6f 6e 20 74 68 65 0a 62 75 69 6c 64 20  ng on the.build 
0120: 6f 72 64 65 72 29 2e 0a 0a 52 65 6d 61 72 6b 61  order)...Remarka
0130: 62 6c 65 20 69 6e 20 74 68 69 73 20 72 65 73 70  ble in this resp
0140: 65 63 74 20 69 73 20 74 68 61 74 3a 0a 2d 20 54  ect is that:.- T
0150: 63 6c 38 2e 34 2e 31 37 20 62 65 68 61 76 65 73  cl8.4.17 behaves
0160: 20 64 69 66 66 65 72 65 6e 74 6c 79 20 66 72 6f   differently fro
0170: 6d 20 54 63 6c 38 2e 35 2e 30 20 28 73 65 65 20  m Tcl8.5.0 (see 
0180: 74 61 62 6c 65 20 62 65 6c 6f 77 29 3b 0a 2d 20  table below);.- 
0190: 43 72 6f 73 73 2d 62 75 69 6c 64 69 6e 67 20 66  Cross-building f
01a0: 72 6f 6d 20 4c 69 6e 75 78 20 2d 3e 20 77 69 6e  rom Linux -> win
01b0: 33 32 20 62 65 68 61 76 65 73 20 64 69 66 66 65  32 behaves diffe
01c0: 72 65 6e 74 6c 79 20 66 72 6f 6d 20 6e 61 74 69  rently from nati
01d0: 76 65 20 4c 69 6e 75 78 20 62 75 69 6c 64 73 3a  ve Linux builds:
01e0: 20 61 6c 6c 20 62 69 6e 61 72 69 65 73 20 69 6e   all binaries in
01f0: 20 61 20 63 72 6f 73 73 20 64 65 62 75 67 20 62   a cross debug b
0200: 75 69 6c 64 20 63 61 72 72 79 20 74 68 65 20 73  uild carry the s
0210: 75 66 66 69 78 20 22 67 22 2e 0a 0a 49 27 76 65  uffix "g"...I've
0220: 20 62 65 65 6e 20 75 73 69 6e 67 20 74 68 65 20   been using the 
0230: 66 6c 61 67 73 20 2d 2d 64 69 73 61 62 6c 65 2d  flags --disable-
0240: 73 79 6d 62 6f 6c 73 20 61 6e 64 20 2d 2d 65 6e  symbols and --en
0250: 61 62 6c 65 2d 73 79 6d 62 6f 6c 73 20 74 6f 0a  able-symbols to.
0260: 2e 2f 63 6f 6e 66 69 67 75 72 65 2c 20 66 6f 6c  ./configure, fol
0270: 6c 6f 77 65 64 20 62 79 20 22 6d 61 6b 65 22 2c  lowed by "make",
0280: 20 74 6f 20 67 65 6e 65 72 61 74 65 20 74 68 65   to generate the
0290: 20 64 69 66 66 65 72 65 6e 74 20 74 79 70 65 73   different types
02a0: 20 6f 66 20 62 75 69 6c 64 2e 0a 0a 4e 61 6d 65   of build...Name
02b0: 73 20 6f 66 20 62 69 6e 61 72 69 65 73 20 69 6e  s of binaries in
02c0: 20 74 68 65 20 74 61 62 6c 65 20 62 65 6c 6f 77   the table below
02d0: 20 61 73 20 74 68 65 79 20 77 65 72 65 20 69 6e   as they were in
02e0: 73 74 61 6c 6c 65 64 20 75 73 69 6e 67 20 22 6d  stalled using "m
02f0: 61 6b 65 20 69 6e 73 74 61 6c 6c 22 2e 0a 0a 20  ake install"... 
0300: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
0310: 20 20 20 4e 41 54 49 56 45 2d 4e 4f 4e 2d 44 45     NATIVE-NON-DE
0320: 42 55 47 20 20 4e 41 54 49 56 45 20 44 45 42 55  BUG  NATIVE DEBU
0330: 47 20 20 20 20 20 20 20 20 20 20 20 43 52 4f 53  G           CROS
0340: 53 20 44 45 42 55 47 0a 2a 20 54 63 6c 38 2e 34  S DEBUG.* Tcl8.4
0350: 2e 31 37 0a 6c 69 62 72 61 72 79 20 20 20 20 20  .17.library     
0360: 20 20 20 20 20 20 20 20 6c 69 62 74 63 6c 38 2e          libtcl8.
0370: 34 2e 73 6f 20 20 20 20 20 20 6c 69 62 74 63 6c  4.so      libtcl
0380: 38 2e 34 67 2e 73 6f 20 20 20 20 20 20 20 20 20  8.4g.so         
0390: 20 6c 69 62 74 63 6c 38 34 67 2e 64 6c 6c 0a 73   libtcl84g.dll.s
03a0: 74 75 62 73 20 6c 69 62 72 61 72 79 20 20 20 20  tubs library    
03b0: 20 20 20 6c 69 62 74 63 6c 73 74 75 62 38 2e 34     libtclstub8.4
03c0: 2e 61 20 20 20 6c 69 62 74 63 6c 73 74 75 62 38  .a   libtclstub8
03d0: 2e 34 67 2e 61 20 20 20 20 20 20 20 6c 69 62 74  .4g.a       libt
03e0: 63 6c 73 74 75 62 38 34 67 2e 61 0a 61 70 70 6c  clstub84g.a.appl
03f0: 69 63 61 74 69 6f 6e 20 20 20 20 20 20 20 20 20  ication         
0400: 74 63 6c 73 68 38 2e 34 20 20 20 20 20 20 20 20  tclsh8.4        
0410: 20 20 74 63 6c 73 68 38 2e 34 20 28 2a 29 20 20    tclsh8.4 (*)  
0420: 20 20 20 20 20 20 20 20 20 74 63 6c 73 68 38 34           tclsh84
0430: 67 2e 65 78 65 20 28 2a 29 0a 0a 2a 20 54 6b 38  g.exe (*)..* Tk8
0440: 2e 34 2e 31 37 0a 6c 69 62 72 61 72 79 20 20 20  .4.17.library   
0450: 20 20 20 20 20 20 20 20 20 20 6c 69 62 74 6b 38            libtk8
0460: 2e 34 2e 73 6f 20 20 20 20 20 20 20 6c 69 62 74  .4.so       libt
0470: 6b 38 2e 34 67 2e 73 6f 20 20 20 20 20 20 20 20  k8.4g.so        
0480: 20 20 20 2d 2d 0a 73 74 75 62 73 20 6c 69 62 72     --.stubs libr
0490: 61 72 79 20 20 20 20 20 20 20 6c 69 62 74 6b 73  ary       libtks
04a0: 74 75 62 38 2e 34 2e 61 20 20 20 20 6c 69 62 74  tub8.4.a    libt
04b0: 6b 73 74 75 62 38 2e 34 67 2e 61 20 20 20 20 20  kstub8.4g.a     
04c0: 20 20 20 2d 2d 0a 61 70 70 6c 69 63 61 74 69 6f     --.applicatio
04d0: 6e 20 20 20 20 20 20 20 20 20 77 69 73 68 38 2e  n         wish8.
04e0: 34 20 20 20 20 20 20 20 20 20 20 20 77 69 73 68  4           wish
04f0: 38 2e 34 20 28 2a 29 20 20 20 20 20 20 20 20 20  8.4 (*)         
0500: 20 20 20 2d 2d 0a 0a 2a 20 54 63 6c 38 2e 35 2e     --..* Tcl8.5.
0510: 30 0a 6c 69 62 72 61 72 79 20 20 20 20 20 20 20  0.library       
0520: 20 20 20 20 20 20 6c 69 62 74 63 6c 38 2e 35 2e        libtcl8.5.
0530: 73 6f 20 20 20 20 20 20 6c 69 62 74 63 6c 38 2e  so      libtcl8.
0540: 35 2e 73 6f 20 28 2a 2a 29 20 20 20 20 20 20 6c  5.so (**)      l
0550: 69 62 74 63 6c 38 35 67 2e 64 6c 6c 0a 73 74 75  ibtcl85g.dll.stu
0560: 62 73 20 6c 69 62 72 61 72 79 20 20 20 20 20 20  bs library      
0570: 20 6c 69 62 74 63 6c 73 74 75 62 38 2e 35 2e 61   libtclstub8.5.a
0580: 20 20 20 6c 69 62 74 63 6c 73 74 75 62 38 2e 35     libtclstub8.5
0590: 2e 61 20 28 2a 2a 29 20 20 20 6c 69 62 74 63 6c  .a (**)   libtcl
05a0: 73 74 75 62 38 35 67 2e 61 0a 61 70 70 6c 69 63  stub85g.a.applic
05b0: 61 74 69 6f 6e 20 20 20 20 20 20 20 20 20 74 63  ation         tc
05c0: 6c 73 68 38 2e 35 20 20 20 20 20 20 20 20 20 20  lsh8.5          
05d0: 74 63 6c 73 68 38 2e 35 20 28 2a 29 20 20 20 20  tclsh8.5 (*)    
05e0: 20 20 20 20 20 20 20 74 63 6c 73 68 38 35 67 2e         tclsh85g.
05f0: 65 78 65 20 28 2a 29 0a 0a 2a 20 54 6b 38 2e 35  exe (*)..* Tk8.5
0600: 2e 30 0a 6c 69 62 72 61 72 79 20 20 20 20 20 20  .0.library      
0610: 20 20 20 20 20 20 20 6c 69 62 74 6b 38 2e 35 2e         libtk8.5.
0620: 73 6f 20 20 20 20 20 20 20 6c 69 62 74 6b 38 2e  so       libtk8.
0630: 35 2e 73 6f 20 28 2a 2a 29 20 20 20 20 20 20 20  5.so (**)       
0640: 2d 2d 0a 73 74 75 62 73 20 6c 69 62 72 61 72 79  --.stubs library
0650: 20 20 20 20 20 20 20 6c 69 62 74 6b 73 74 75 62         libtkstub
0660: 38 2e 35 2e 61 20 20 20 20 6c 69 62 74 6b 73 74  8.5.a    libtkst
0670: 75 62 38 2e 35 2e 61 20 28 2a 2a 29 20 20 20 20  ub8.5.a (**)    
0680: 2d 2d 0a 61 70 70 6c 69 63 61 74 69 6f 6e 20 20  --.application  
0690: 20 20 20 20 20 20 20 77 69 73 68 38 2e 35 20 20         wish8.5  
06a0: 20 20 20 20 20 20 20 20 20 77 69 73 68 38 2e 35           wish8.5
06b0: 20 28 2a 29 20 20 20 20 20 20 20 20 20 20 20 20   (*)            
06c0: 2d 2d 0a 0a 0a 28 2a 29 20 6d 65 61 6e 73 3a 20  --...(*) means: 
06d0: 49 27 6d 20 75 6e 73 75 72 65 20 77 68 65 74 68  I'm unsure wheth
06e0: 65 72 20 74 68 65 20 6e 61 6d 65 73 20 61 72 65  er the names are
06f0: 20 4f 4b 2c 20 61 6e 64 20 69 6e 20 61 6e 79 20   OK, and in any 
0700: 63 61 73 65 20 64 6f 6e 27 74 20 75 6e 64 65 72  case don't under
0710: 73 74 61 6e 64 20 77 68 79 20 74 68 65 20 63 72  stand why the cr
0720: 6f 73 73 20 61 6e 64 20 6e 61 74 69 76 65 20 62  oss and native b
0730: 75 69 6c 64 73 20 62 65 68 61 76 65 20 64 69 66  uilds behave dif
0740: 66 65 72 65 6e 74 6c 79 2e 0a 28 2a 2a 29 20 6d  ferently..(**) m
0750: 65 61 6e 73 3a 20 22 49 20 64 69 64 6e 27 74 20  eans: "I didn't 
0760: 65 78 70 65 63 74 20 74 68 65 20 73 61 6d 65 20  expect the same 
0770: 6e 61 6d 65 73 20 66 6f 72 20 4c 69 6e 75 78 20  names for Linux 
0780: 6e 61 74 69 76 65 20 64 65 62 75 67 20 61 6e 64  native debug and
0790: 20 6e 6f 6e 2d 64 65 62 75 67 0a 62 75 69 6c 64   non-debug.build
07a0: 73 22 2e 0a 2d 2d 20 20 20 6d 65 61 6e 73 3a 20  s"..--   means: 
07b0: 6e 6f 74 20 69 6e 76 65 73 74 69 67 61 74 65 64  not investigated
07c0: 0a 0a 53 69 6e 63 65 72 65 6c 79 2c 0a 0a 45 72  ..Sincerely,..Er
07d0: 69 6b 20 4c 65 75 6e 69 73 73 65 6e              ik Leunissen