
jesus at omniti
Mar 10, 2004, 5:12 PM
Post #2 of 2
(1267 views)
Permalink
|
-----BEGIN PGP SIGNED MESSAGE----- On Mar 10, 2004, at 5:48 PM, Superman wrote: > checking for char... yes > checking size of char... > checking for short int... yes > checking size of short int... > checking for int... yes > checking size of int... > checking for long int... yes > checking size of long int... > checking for long long int... yes > checking size of long long int... These are disturbing. The size of those should be a valid integer. You can edit the config.h file and define the appropriate sizeofs yourself. This is a Sparc? or Intel? I haven't played on Sol8 for a while, all the Solaris testing happens on Sol9. However, the only tricky API is the interface ioctl()s and those haven't changed enough since Sol7 to make a difference. On intel, you should see something like this in your config.h file: #define SIZEOF_CHAR 1 #define SIZEOF_INT 4 #define SIZEOF_LONG_INT 4 #define SIZEOF_LONG_LONG_INT 8 #define SIZEOF_SHORT_INT 2 I don't have a Sparc running in 64bit mode anywhere to test on, but in 32bit mode it is the same on my e4500 I don't have a clue as to why the configure script didn't find the sizes of those types... If you are curious as to the real sizes of those types, compile the folloing and run it on your box: #define printsize(a) printf(#a": %d\n", sizeof(a)); int main() { printsize(char); printsize(int); printsize(long int); printsize(long long int); printsize(short int); } // Theo Schlossnagle // Principal Engineer -- http://www.omniti.com/~jesus/ // Postal Engine -- http://www.postalengine.com/ // Ecelerity: fastest MTA on Earth -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (Darwin) iQEVAwUBQE+vB1wyh8czExtlAQGqxAf+KFycMjj9js7fQTdSDlFvJuP7WtylIOdd u0LvdCjt6sH/7qCO3XCRldVMSi4q3mnj6w+yaD1a25m1+25PEhH7kobjym7+S5n2 Au8Fq6vJleaI/dkCh5+IutN/Tq/KYV1UEYoj90rRjI2dNMyLFWzi/RujOIf41jNx S7sDRiYZF6xBhD6YFytULTou0e8tN+SqchlEefmvDznwjzv6jtfQV2imAULImjFR CmPbozaTfdDAmpygsr7JaNNHUD+VqJ2fvvI46Od9sbNdN8/OArbLzir+Tgjnsh5o IrNY8ogwJ6baT+xEpn7bphRAMvrqAR6WIrpcQZa9lBtoJmhsAVFKHQ== =yTjI -----END PGP SIGNATURE-----
|