From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,be03de5b2541f4f0,start X-Google-Attributes: gidfa528,public From: Tony Cox Subject: problems with processor_info Date: 2000/05/11 Message-ID: <391A758E.33CB353B@sanger.ac.uk>#1/1 X-Deja-AN: 621989933 Content-Transfer-Encoding: 7bit X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: news@net.bio.net X-Trace: niobium.hgmp.mrc.ac.uk 958035353 4550 193.62.203.12 (11 May 2000 08:55:53 GMT) Organization: Sanger Centre Mime-Version: 1.0 NNTP-Posting-Date: 11 May 2000 08:55:53 GMT Newsgroups: comp.unix.tru64 I'm trying to port a perl module that provided processor info (from sun to tru64 alpha). The /usr/include sys/processor.h shows: #if defined(__SVE__) || !defined(NO_SVR4_COMPAT) #define processor_info(p,i) __sve_processor_info((p),(i)) #define p_online(p,f) __sve_p_online((p),(f)) #define processor_bind(i,id,p,o) __sve_processor_bind((i),(id),(p),(o)) extern int __sve_p_online __((processorid_t processorid, int flag)); #if defined(__SVE__) extern int __sve_processor_info __((processorid_t processorid, processor_info_t *infop)); #else /* __SVE__ */ extern int __sve_processor_info __((processorid_t processorid, proc_info_t *infop)); #endif /* __SVE__ */ extern int __sve_processor_bind __((idtype_t idtype, id_t id, processorid_t processorid, processorid_t *obind)); #endif /* __SVE__ */ I'm defining __SVE__ but when the module is executed i get a runtime link error: Can't load './blib/arch/auto/Unix/Processors/Processors.so' for module Unix::Processors: Unresolved symbol in ./blib/arch/auto/Unix/Processors/Processors.so: __sve_processor_info at /usr/local/lib/perl5/alpha-dec_osf/5.00404/DynaLoader.pm line 166. I can't find where __sve_processor_info is either defined or which library it lives in. I'm linking with libmach, libpset and libc. Can somebody either point out where I'm going wrong or tell me how to find out where __sve_processor_info comes from. thanks Tony -- ############################################################## Email: avc@sanger.ac.uk # The Sanger Centre, Tel: 01223 497512 # Hinxton, CAMBRIDGE CB10 1SA. Fax: 01223 494919 # http://www.sanger.ac.uk/ ##############################################################