PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

undefined symbol __preinit_array_end

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
libellule



Joined: 09 Jun 2006
Posts: 3

PostPosted: Thu Jun 15, 2006 5:23 am    Post subject: undefined symbol __preinit_array_end Reply with quote

Hello,
I have build a dynamique library with pfg90, PyMt3d.so.
This library is use in a program in python langage.
I occure a problem with the run with the message follow :

from PyMt3d import *
ImportError: /codes/alliance/alliances_current_tma/build/lib/PyMt3d.so: undefined symbol: __preinit_array_end

than you
regards
Libellule
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6141
Location: The Portland Group Inc.

PostPosted: Thu Jun 15, 2006 2:59 pm    Post subject: Reply with quote

Hi Libellule,

I'm not sure where this symbol is defined, it's not a PGI library routine, so I don't know which library you are missing. One idea is to try the command 'ldd PyMt3d.so' to see what depenancies your shared object has. You may simply not have a dependent library's path set in your LD_LIBRARY_PATH environment variable and the Python call to dlopen can't find the library.

Another thing you could try is to use pgf90 to create your shared object. From your previous post, I see you calling ld directly. This is generally not the prefered method since you may have incorrect flags and/or missing libraries. Please refer to section 8.2 of the PGI User's Guide for more information on creating shared objects.

- Mat
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group