Subject: Undefined PLT symbol and Bus error
To: None <tech-pkg@netbsd.org, netbsd-users@netbsd.org>
From: Pritesh Shah <pritesh.krish@gmail.com>
List: netbsd-users
Date: 11/02/2004 23:16:06
hi,

i'm trying to test some accessgrid stuff with NetBSD. 

There are some .py files that come with accessgrid and are present in
<path>/usr/bin.

these depend on libcrypto.so.2, libc.so.6 and some libglobus_* libraries.

some more details:

accessgrid binaries

collinsia: {5} ls /home/psham/home/ag/usr/bin
AGNodeService.py            NodeSetupWizard.py          agpm.py
AGServiceManager.py         QuickBridge                 certmgr.py
BridgeServer.py             VenueClient.py              python2p2.core
CertificateRequestTool.py   VenueManagement.py
NodeManagement.py           VenueServer.py

libcrypto.so.2 (linked against libcrypto.so.300 from openssl-0.9.6mnb1 )

collinsia: {11} ll /usr/lib/libcrypto.so.2
lrwxrwxr-x  1 root  wheel  36 Nov  2 14:51 /usr/lib/libcrypto.so.2 ->
/home/psham/pkg/lib/libcrypto.so.300

libc.so.6 (linked against libc.so.12)

collinsia: {3} ll libc.so*
lrwxr-xr-x  1 root  wheel      13 Sep  8  2002 libc.so -> libc.so.12.83
lrwxr-xr-x  1 root  wheel      13 Sep  8  2002 libc.so.12 -> libc.so.12.83
-r--r--r--  1 root  wheel  700411 Sep  8  2002 libc.so.12.83
lrwxrwxr-x  1 root  wheel      10 Nov  2 15:25 libc.so.6 -> libc.so.12

many other libraries were linked properly so that the can be found.

i'm gettting the following error:

collinsia: {3} python2p2 AGNodeService.py
Traceback (most recent call last):
  File "AGNodeService.py", line 28, in ?
    from AccessGrid.Toolkit import Service
  File "/home/psham/pkg/lib/python2p2/site-packages/AccessGrid/Toolkit.py",
line 22, in ?
    from AccessGrid.Security import CertificateManager
  File "/home/psham/pkg/lib/python2p2/site-packages/AccessGrid/Security/CertificateManager.py",
line 51, in ?
    from AccessGrid import Utilities
  File "/home/psham/pkg/lib/python2p2/site-packages/AccessGrid/Utilities.py",
line 35, in ?
    from AccessGrid import Platform
  File "/home/psham/pkg/lib/python2p2/site-packages/AccessGrid/Platform/__init__.py",
line 71, in ?
    from AccessGrid.Platform.unix import Config as Config
  File "/home/psham/pkg/lib/python2p2/site-packages/AccessGrid/Platform/unix/Config.py",
line 21, in ?
    from pyGlobus import security
  File "/home/psham/pkg/lib/python2p2/site-packages/pyGlobus/security.py",
line 11, in ?
    from pyGlobus import gssc
ImportError: /usr/lib/libglobus_gss_assist_gcc32pthr.so.0: Undefined
PLT symbol "fopen64" (reloc type = 7, symnum = 98)


and when i link libc.so.6 against cross/i386-linux's libc.so.6

collinsia: {12} ll libc.so.6
lrwxrwxr-x  1 root  wheel  46 Nov  2 16:10 libc.so.6 ->
/home/psham/pkg/cross/i386-linux/lib/libc.so.6

i get the following Bus Error:

collinsia: {15} python2p2 AGNodeService.py
Bus error (core dumped)

I'm not sure of what's going wrong here, and have no clue? can
somebody help me out of this?

Cheers,
Pritesh