Hi,

> I'm trying to build the Apache Adaptor for Ubuntu 14 LTS manually following 
> the instructions on 
> http://wiki.wocommunity.org/display/documentation/Compiling+the+HTTP+adaptor+on+Linux
> 
> If I try to execute "make CC=gcc", I get the following error:
> 
>> gcc -I/usr/local/include -O2 -I../Adaptor  -DSINGLE_THREADED_ADAPTOR -DLINUX 
>> -DCGI -c ../Adaptor/shmem.c
>> ../Adaptor/shmem.c:69:38: warning: initialization makes pointer from integer 
>> without a cast [enabled by default]
>> static void * WOShmem_base_address = -1;
>>                                     ^
>> ../Adaptor/shmem.c: In function '€˜WOShmem_alloc'€™:
>> ../Adaptor/shmem.c:78:63: error: invalid operands to binary + (have '€˜void 
>> *'€™ and '€˜void *'€™)
>> #define offset_to_addr(offset) ((void *)(WOShmem_base_address + (void 
>> *)offset))
>>                                                              ^

WOAdaptor does its pointer arithmetics in a way, that your compiler does not 
like (well, me neither)
Your compiler probably needs some additional flags...
Which compiler does your Ubuntu 14 TLS use? What does „gcc -v“ give?

regards, Markus


>> ../Adaptor/shmem.c:294:18: note: in expansion of macro '€˜offset_to_addr'€™
>>   r = (Region *)offset_to_addr(0);
>>                 ^
>> ../Adaptor/shmem.c:78:63: error: invalid operands to binary + (have '€˜void 
>> *'€™ and '€˜void *'€™)
>> #define offset_to_addr(offset) ((void *)(WOShmem_base_address + (void 
>> *)offset))
>>                                                              ^
>> ../Adaptor/shmem.c:305:19: note: in expansion of macro '€˜offset_to_addr'€™
>>            ret = offset_to_addr(r->offset);
>>                  ^
>> ../Adaptor/shmem.c:78:63: error: invalid operands to binary + (have '€˜void 
>> *'€™ and '€˜void *'€™)
>> #define offset_to_addr(offset) ((void *)(WOShmem_base_address + (void 
>> *)offset))
>>                                                              ^
>> ../Adaptor/shmem.c:330:41: note: in expansion of macro '€˜offset_to_addr'€™
>>                  newRegion = (Region *)offset_to_addr(r->nextRegion);
>>                                        ^
>> ../Adaptor/shmem.c:78:63: error: invalid operands to binary + (have '€˜void 
>> *'€™ and '€˜void *'€™)
>> #define offset_to_addr(offset) ((void *)(WOShmem_base_address + (void 
>> *)offset))
>>                                                              ^
>> ../Adaptor/shmem.c:336:25: note: in expansion of macro '€˜offset_to_addr'€™
>>                  ret = offset_to_addr(newRegion->offset);
>>                        ^
>> ../Adaptor/shmem.c:78:63: error: invalid operands to binary + (have '€˜void 
>> *'€™ and '€˜void *'€™)
>> #define offset_to_addr(offset) ((void *)(WOShmem_base_address + (void 
>> *)offset))
>>                                                              ^
>> ../Adaptor/shmem.c:345:24: note: in expansion of macro '€˜offset_to_addr'€™
>>         r = (Region *)offset_to_addr(r->nextRegion);
>>                       ^
>> make[1]: *** [shmem.o] Error 1
>> make[1]: Leaving directory 
>> `/tmp/wocommunity-wonder-a5ffd1f/Utilities/Adaptors/CGI'
>> make: *** [CGI] Error 2
>> 
> 
> Any ideas how to get this running?
> 
> Thx,
> C.U.CW
> -- 
> The three great virtues of a programmer are Laziness, Impatience and Hubris. 
> (Randal Schwartz)
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/markus.stoll%40junidas.de
> 
> This email sent to [email protected]

-- 
Dr. Markus Stoll (Geschäftsführer)
[email protected]

junidas GmbH, Aixheimer Str. 12, 70619 Stuttgart
Tel. +49 (711) 4599799-11, Fax +49 (711) 4599799-10
Geschäftsführer: Dr. Markus Stoll, Matthias Zepf
Amtsgericht Stuttgart, HRB 21939



Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to