From: Rodrigo D. A. S. <rod...@te...> - 2003-05-12 04:55:12
|
Hi, I'm a newbie at VPython and could use a hand. I have managed to compile VPython in a modified Mandrake 8.2 using gcc-2.96. When I try to run the demos I get: ImportError: /usr/local/lib/python2.2/site-packages/cvisualmodule.so: undefined symbol: __ti3ios I do know that it menas that cvisualmodule.so was loaded but it refers to the symbol __ti3ios which is missing. Running ldd cvisualmodule.so I get: libstdc++.so.5 => /usr/local/lib/./libstdc++.so.5 (0x4034c000) libgtkgl.so.5 => /usr/lib/libgtkgl.so.5 (0x40417000) libGLU.so.1 => /usr/local/lib/./libGLU.so.1 (0x4041d000) libGL.so.1 => /usr/local/lib/./libGL.so.1 (0x404a7000) libgtk-1.2.so.0 => /usr/lib/libgtk-1.2.so.0 (0x40681000) libgdk-1.2.so.0 => /usr/lib/libgdk-1.2.so.0 (0x407c4000) libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0x407fd000) libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x40805000) libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40815000) libm.so.6 => /lib/libm.so.6 (0x408dc000) libgthread-1.2.so.0 => /usr/lib/libgthread-1.2.so.0 (0x408fe000) libpthread.so.0 => /lib/libpthread.so.0 (0x40901000) libglib-1.2.so.0 => /usr/lib/libglib-1.2.so.0 (0x40917000) libc.so.6 => /lib/libc.so.6 (0x4093d000) libgcc_s.so.1 => /usr/local/lib/./libgcc_s.so.1 (0x40a7a000) libgmodule-1.2.so.0 => /usr/lib/libgmodule-1.2.so.0 (0x40a82000) libdl.so.2 => /lib/libdl.so.2 (0x40a85000) libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x40a88000) libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x40a91000) libXmu.so.6 => /usr/X11R6/lib/libXmu.so.6 (0x40aa8000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x40ac0000) Does anybody know who's to blame and what can I do to fix it or at least to investigate it further. Please carbon-copy your answers to rs...@ac... because I'm not yet a memeber of this mailing-list. Thanks in advance Rod Senra -- Rodrigo Senra <rs...@ac...> GPr Sistemas http://www.gpr.com.br PUC-Campinas http://docentes.puc-campinas.edu.br/ceatec/rodrigo IC - Unicamp http://www.ic.unicamp.br/~921234 |
From: Jonathan B. <jbr...@ea...> - 2003-05-12 23:00:48
|
On Mon, 2003-05-12 at 00:59, Rodrigo Dias Arruda Senra wrote: > Hi, > > I'm a newbie at VPython and could use a hand. > I have managed to compile VPython in a modified Mandrake 8.2 > using gcc-2.96. When I try to run the demos I get: > > ImportError: /usr/local/lib/python2.2/site-packages/cvisualmodule.so: undefined symbol: __ti3ios Try this (note the shell back-quotes) in the /usr/local/lib directory, and the /usr/lib directory: $ nm -o -D `ls libstdc++*.so libstdc++.so*` | grep __ti3ios And send us the output. > I do know that it menas that cvisualmodule.so was loaded but it refers to > the symbol __ti3ios which is missing. > > Running ldd cvisualmodule.so I get: > libstdc++.so.5 => /usr/local/lib/./libstdc++.so.5 (0x4034c000) -Jonathan Brandmeyer |
From: Rodrigo D. A. S. <rs...@ac...> - 2003-05-17 12:43:58
|
,--------------------------------------- | Date: Mon, 12 May 2003 19:00:35 -0400 | Subject: Re: [Visualpython-users] Error running demos: cvisualmodule.so: undefined symbol: __ti3ios | From: Jonathan Brandmeyer <jbr...@ea...> `---------------------------------------- | On Mon, 2003-05-12 at 00:59, Rodrigo Dias Arruda Senra wrote: | > Hi, | > | > I'm a newbie at VPython and could use a hand. | > I have managed to compile VPython in a modified Mandrake 8.2 | > using gcc-2.96. When I try to run the demos I get: | > | > ImportError: /usr/local/lib/python2.2/site-packages/cvisualmodule.so: undefined symbol: __ti3ios | | Try this (note the shell back-quotes) in the /usr/local/lib directory, | and the /usr/lib directory: | $ nm -o -D `ls libstdc++*.so libstdc++.so*` | grep __ti3ios | | And send us the output. Thank you Jonathan. This was the outcome: ----------------------------------------------------------------------------- [rodrigo@Goku rodrigo]$ cd /usr/local/lib [rodrigo@Goku lib]$ nm -o -D `ls libstdc++*.so libstdc++.so*` | grep __ti3ios nm: libstdc++.so@: No such file or directory nm: libstdc++.so@: No such file or directory nm: libstdc++.so.5@: No such file or directory [rodrigo@Goku lib]$ cd /usr/lib [rodrigo@Goku lib]$ nm -o -D `ls libstdc++*.so libstdc++.so*` | grep __ti3ios libstdc++-3-libc6.2-2-2.10.0.so:0004c214 B __ti3ios nm: libstdc++.so.3@: No such file or directory ------------------------------------------------------------------------------- Apparently libstdc++-3-libc6.2-2-2.10.0.so has the "missing" symbol. What is the best way tho made it available to VPython ? Tweak Makefile settings with a -lstdc++-3-libc6.2-2-2.10.0 ? Create a symbolic link ? In that case what is the expected name ? Anyway, Thanks for your help. best regards Rod -- Rodrigo Senra <rs...@ac...> GPr Sistemas http://www.gpr.com.br PUC-Campinas http://docentes.puc-campinas.edu.br/ceatec/rodrigo IC - Unicamp http://www.ic.unicamp.br/~921234 |
From: Jonathan B. <jbr...@ea...> - 2003-05-17 15:01:23
|
On Sat, 2003-05-17 at 08:48, Rodrigo Dias Arruda Senra wrote: > [rodrigo@Goku lib]$ cd /usr/lib > [rodrigo@Goku lib]$ nm -o -D `ls libstdc++*.so libstdc++.so*` | grep __ti3ios > libstdc++-3-libc6.2-2-2.10.0.so:0004c214 B __ti3ios > nm: libstdc++.so.3@: No such file or directory > ------------------------------------------------------------------------------- > > Apparently libstdc++-3-libc6.2-2-2.10.0.so has the "missing" symbol. > What is the best way tho made it available to VPython ? > Tweak Makefile settings with a -lstdc++-3-libc6.2-2-2.10.0 ? > Create a symbolic link ? In that case what is the expected name ? It means that your C++ compiler is not setup right. IIRC, libstdc++ 5 is used by GCC 3.2, and the older libstdc++ 3 is used by GCC 2.95. You said before that you are using 2.96, which I assume is the same thing. There should be one and only one symbolic link from libstdc++.so to whatever library is appropriate for the compiler you want to use. Either rebuild Visual with GCC 3.2 or fix your link and then rebuild visual with GCC 2.96. -Jonathan Brandmeyer |