1.8+ (1.9) SunOS/Soalaris install problem

Jari Aalto jari.aalto at cante.net
Tue Dec 2 15:44:50 GMT 2008


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>

    sys/int_types.h

which reads:

    /*
     * intptr_t and uintptr_t are signed and unsigned integer types large enough
     * to hold any data pointer; that is, data pointers can be assigned into or
     * from these integer types without losing precision.
     */
    #if defined(_LP64) || defined(_I32LPx)
    typedef long                    intptr_t;
    typedef unsigned long           uintptr_t;
    #else
    typedef int                     intptr_t;
    typedef unsigned int            uintptr_t;
    #endif

Does that help?

Jari




More information about the bazaar mailing list