> On Mon, 09 Jan 2006 17:14:53 +0100 Thomas wrote: > TA> IRIX (32-bit) and IRIX64 (64-bit) kernels need different handling > TA> (nlist() vs. nslist64()), but there doesn't seem to be an existing > TA> define (we currently assume IRIX64 which doesn't exist) to make this > TA> decision at compile-time. Even if there was one, a binary compiled for > TA> the N32 ABI can happily run on both IRIX32 and IRIX64 systems. So why > TA> not handle this at runtime instead? > > I'm a fa of doing as much as possible at compile time. In this particular > case, configure should be able to detect if nlist64 is available, and if so, > it should use it. The only time it matters is when building on 64bit host, and > wanting to run the resulting binary on a 32bit host. I think this is a corner > case that can be handled by documentation in README.irix.
I think it's not sufficient to check whether nlist64() is available but configure must check to whether the kernel is a 32-bit or 64-bit kernel (well, the second check is only necessary if nlist64() exists). This just in case that even with a 32-bit kernel the 64-bit functions are available in the system libraries (they might not work there - but that's another thing). When building binary tarballs for IRIX it's then necessary to decide what versions should be supplied (if any are to be supplied at all): - 32-bit binaries using nlist() - 32-bit binaries using nlist64() - 64-bit binaries using nlist64() I presume that a 32-bit kernel is not able to run 64-bit binaries so I didn't list the remaining possible combination. -- 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 [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
