All of lore.kernel.org
 help / color / mirror / Atom feed
* Tcl/Tk under ultrapenguin-1.0.9
@ 1998-10-28 13:25 Thierry Lafage
  1998-10-28 14:05 ` David S. Miller
  1998-10-29  9:02 ` Thierry Lafage
  0 siblings, 2 replies; 3+ messages in thread
From: Thierry Lafage @ 1998-10-28 13:25 UTC (permalink / raw)
  To: ultralinux


Hello,

I want to use a shared library with `wish', and it currently does not
work:

[thierry@paranormale tkisem]$ wish
% load ./tkisem.so
couldn't load file "./tkisem.so": /usr/lib/libstdc++.so.2.7.2: undefined symbol: __find_first_exception_table_match
% ^D
[thierry@paranormale tkisem]$ nm -P /usr/lib/gcc-lib/sparc-redhat-linux/2.7.2.3/libgcc.a | grep '__find_first_exception_table_match'
__find_first_exception_table_match T 0000000000000078
[thierry@paranormale tkisem]$ rpm -qf `which wish`
tk-8.0-12
[thierry@paranormale tkisem]$ 

So I guess the package `tk-8.0-12' was not compiled with the same gcc
version. Or I missed something.

On the other hand, I tried to re-compile re-build Tcl/Tk from
`tcltk-8.0-12.src.rpm'. But `configure' sometimes hangs on doing
nothing (as reported by `top'). Typing Control-D allows to go on, but
the configuration seems to be wrong (it "pseudo-segfaults").

[root@paranormale SPECS]# rpm -bb --buildarch sparc tcltk-8.0.spec
[...]
+ cd ../..
+ cd expect-5.24
+ CFLAGS=-O2 -D_REENTRANT
+ ./configure --enable-gcc --enable-shared --prefix=/usr
[...]
checking whether using a cross-compiler...  /* It waits here */
^D
./configure: line 1449: 11995 Segmentation fault      ( ./conftest; exit )2>/dev/null


Any help appreciated.

Thierry.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Tcl/Tk under ultrapenguin-1.0.9
  1998-10-28 13:25 Tcl/Tk under ultrapenguin-1.0.9 Thierry Lafage
@ 1998-10-28 14:05 ` David S. Miller
  1998-10-29  9:02 ` Thierry Lafage
  1 sibling, 0 replies; 3+ messages in thread
From: David S. Miller @ 1998-10-28 14:05 UTC (permalink / raw)
  To: ultralinux

   Date: 	Wed, 28 Oct 1998 14:25:05 +0100
   From: Thierry Lafage <Thierry.Lafage@irisa.fr>

   ./configure: line 1449: 11995 Segmentation fault      ( ./conftest; exit )2>/dev/null

Upgrade to the latest kernel...

Later,
David S. Miller
davem@dm.cobaltmicro.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Tcl/Tk under ultrapenguin-1.0.9
  1998-10-28 13:25 Tcl/Tk under ultrapenguin-1.0.9 Thierry Lafage
  1998-10-28 14:05 ` David S. Miller
@ 1998-10-29  9:02 ` Thierry Lafage
  1 sibling, 0 replies; 3+ messages in thread
From: Thierry Lafage @ 1998-10-29  9:02 UTC (permalink / raw)
  To: ultralinux

> Upgrade to the latest kernel...

Ok, now configure works well thanks.

I also solved the pb of Tk: wish cannot load shared object made of C++
code because the loaded shared library uses symbols (such as
`__find_first_exception_table_match') which are not used by the wish
program, C code made. I did not find how to force the definition of
`__find_first_exception_table_match' (defined in libgcc.a) during the
link stage of wish except linking it with libstdc++.so. 

I wonder if it is normal that you have to re-link the program before
using it with a C++ shared library, and if the `-export-dynamic' ld
option is working correctly...

Thierry Lafage.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1998-10-29  9:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-10-28 13:25 Tcl/Tk under ultrapenguin-1.0.9 Thierry Lafage
1998-10-28 14:05 ` David S. Miller
1998-10-29  9:02 ` Thierry Lafage

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.