1.8+ (1.9) SunOS/Soalaris install problem
John Arbash Meinel
john at arbash-meinel.com
Tue Dec 2 15:52:41 GMT 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jari Aalto wrote:
> John Arbash Meinel <john at arbash-meinel.com> writes:
>
>>> gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include/python2.5 -c bzrlib/_dirstate_helpers_c.c -o build/temp.solaris-2.9-sun4u-2.5/bzrlib/_dirstate_helpers_c.o
>>> In file included from bzrlib/_dirstate_helpers_c.c:31:
>>> bzrlib/_dirstate_helpers_c.h:8:20: stdint.h: No such file or directory
>>> bzrlib/_dirstate_helpers_c.c: In function `__pyx_f_19_dirstate_helpers_c_13ProcessEntryC__process_entry':
>>> bzrlib/_dirstate_helpers_c.c:3712: warning: '__pyx_exc_lineno' might be used uninitialized in this function
>>>
>>> Failed to build "bzrlib._dirstate_helpers_c".
>>> Use --allow-python-fallback to use slower python implementations instead.
>>>
>>> error: command 'gcc' failed with exit status 1
>>
>> We are expecting to find 'stdint.h' because we are looking for the
>> "intptr_t" type.
>
> According to Google, stdint.his is misisng form older Solaris (needs
> 10.x+ or something).
>
> $ find /usr/include -name stdint.h
> <empty>
>
>> Do you know where it is supposed to be found on Sun OS?
>>
>> At the moment we have this code block:
>>
>> #ifndef _DIRSTATE_HELPERS_C_H
>> #define _DIRSTATE_HELPERS_C_H
>>
>> /* for intptr_t */
>> #ifdef _MSC_VER
>> #include <io.h>
>> #else
>> #include <stdint.h>
>> #endif
>>
>> #endif
>>
>> We can certainly extend that for Sun, even if it is only "ifdef SUN:
>> typedef int intptr_t
>> "
>
> They do seem to have
>
> inttypes.h
>
> which <includes>
So adding a "#include <inttypes.h>" seems fine, I just don't know what
#if defined() string we need to put together to notice that.
I'm guessing stdint.h is a C99 spec sort of thing, and that the old name
was inttypes.h.
Anyone else want to venture a guess as to what we would put together? My
quick guess would be:
/* for intptr_t */
#if defined(_MSC_VER)
#include <io.h>
#else if __STDC_VERSION__ >= 199901L
#include <stdint.h>
#else
#include <inttypes.h>
#endif
Then again, I don't know if we want C90, C95, or C99...
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkk1WckACgkQJdeBCYSNAAOE9QCghAvxZ/GGLXMZemehDE/y/2I+
xeIAoKm942btNzNie5YDEgtIyQHu5fJX
=ZY1s
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list