On 01/28/10 12:18, Klaus Heinrich Kiwi wrote:
> On Wed, 2010-01-27 at 16:19 -0500, Wyllys Ingersoll wrote:
>> +       len += (uintptr_t)addr&  PAGEOFFSET;
>> +        addr = (void *)((uintptr_t)addr&  PAGEMASK);
>>
>>           if (mlock(addr, len) == -1) {
>>                   LogError("mlock: %s", strerror(errno));
>> @@ -104,6 +106,8 @@
>>           if (getuid() != (uid_t)0) {
>>                   return 0;
>>           }
>> +        len += (uintptr_t)addr&  PAGEOFFSET;
>> +        addr = (void *)((uintptr_t)addr&  PAGEMASK);
>
> PAGEOFFSET and PAGEMASK are undefined (at least in Linux). Tail of the
> build output:
> tsp_policy.c: In function ‘pin_mem’:
> tsp_policy.c:90: error: ‘PAGEOFFSET’ undeclared (first use in this function)
> tsp_policy.c:90: error: (Each undeclared identifier is reported only once
> tsp_policy.c:90: error: for each function it appears in.)
> tsp_policy.c:91: error: ‘PAGEMASK’ undeclared (first use in this function)
> tsp_policy.c: In function ‘unpin_mem’:
> tsp_policy.c:108: error: ‘PAGEOFFSET’ undeclared (first use in this function)
> tsp_policy.c:109: error: ‘PAGEMASK’ undeclared (first use in this function)
> make[2]: *** [libtspi_la-tsp_policy.lo] Error 1
> make[2]: Leaving directory `/root/tss/trousers.git/src/tspi'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/root/tss/trousers.git/src'
> make: *** [all-recursive] Error 1
>
> (I managed to apply your patches by using a clever git command, since I
> use a local git tree imported from the main CVS repository)
>
> $ git apply -p0 --ignore-whitespace --whitespace=fix<path-to-patchset>
>
>   -Klaus
>

*sigh*, I was worried about that one.   I guess just "#ifdef SOLARIS" those
changes.  I don't know what the equivalent is on Linux or other platforms or
if it is even necessary.

-Wyllys


------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
TrouSerS-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/trousers-tech

Reply via email to