* problems with processor_info
@ 2000-05-11 4:00 Tony Cox
2000-05-11 4:00 ` Tony Verhulst
0 siblings, 1 reply; 2+ messages in thread
From: Tony Cox @ 2000-05-11 4:00 UTC (permalink / raw)
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/
##############################################################
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: problems with processor_info
2000-05-11 4:00 problems with processor_info Tony Cox
@ 2000-05-11 4:00 ` Tony Verhulst
0 siblings, 0 replies; 2+ messages in thread
From: Tony Verhulst @ 2000-05-11 4:00 UTC (permalink / raw)
>
> Can somebody either point out where I'm going wrong or tell me how to find out
> where __sve_processor_info comes from.
SVE stands for System V Environment. This was developed by Locus
Computer (now Computer Associates) on contract to DEC and is not
normally distributed with Tru64 Unix. Defining _DEC on the build line
(cc -D_DEC -o splat splat.c -lpset -lmach) should work. Please let me
know how that works out for you.
Tony Verhulst
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-05-11 4:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-05-11 4:00 problems with processor_info Tony Cox
2000-05-11 4:00 ` Tony Verhulst
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox