Thomas, a similar problem exists for Solaris with 32-bit and 64-bit kernels (or other binaries as well), although this is not a problem for net-snmp since it doesn't use nlist() as far as I know.
For Solaris there exists an additional interface called gelf that handles the differences between 32 and 64 bit binaries therefore allowing the programmer to access those binaries regardless of the model used. Probably something similar exists for IRIX too? If not, it probably would be a good idea to take a look at libelf-0.8.0 (the current version at the time of this writing) which is a free ELF object file access library. That library implements the gelf_* function calls similar to what Solaris provides (according to the README for that library). It should support IRIX too although there are some differences between the standard ELF format and IRIX' implementation. Sources and additional informations might be found here: http://www.mr511.de/software/english.html Johannes Thomas Anders schrieb: > -Coders, > > in my current effort to fix the net-snmp 5.2.2/5.3 build/startup issues > on IRIX I stumbled across something that I think needs general > discussion. As outlined in bug 1388562 > > http://sf.net/support/tracker.php?aid=1388562 > > IRIX (32-bit) and IRIX64 (64-bit) kernels need different handling > (nlist() vs. nslist64()), but there doesn't seem to be an existing > define (we currently assume IRIX64 which doesn't exist) to make this > decision at compile-time. Even if there was one, a binary compiled for > the N32 ABI can happily run on both IRIX32 and IRIX64 systems. So why > not handle this at runtime instead? > > net-snmp already has netsnmp_os_prematch() which seems to allow us to > handle platform specifics at runtime. Naturally, there's a trade-off > between flexibility and performance. > > Where do we draw the line between compile-time and runtime decisions? In > the above case, I'd lean towards a runtime decision, but I thought I'd > ask for your valuable comments first. > > > Cheers, > Thomas > -- Johannes Schmidt-Fischer InterFace AG phone +49 (0)89 / 610 49 - 207 Leipziger Str. 16 fax +49 (0)89 / 610 49 - 85 D-82008 Unterhaching mobile +49 (0)171/ 787 76 01 http://www.InterFace-AG.com mailto:[EMAIL PROTECTED] ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders