apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Branko ─îibej <br...@xbc.nu>
Subject Re: apr from subversion-0.23.0 won't build on solaris 2.8 with Sun compiler
Date Thu, 22 May 2003 23:58:02 GMT
Sander Striker wrote:

>>From: Toby Knudsen [mailto:Toby.Knudsen@RocketSoftware.com]
>>Sent: Tuesday, May 20, 2003 11:48 PM
>>    
>>
>
>  
>
>>I'm leaving town shortly, hope this tip was sufficient.         Toby
>>
>>/bin/ksh /home/alameda/tknudsen/subversion-0.23.0/apr/libtool --silent --mode=compile

>>/opt/packages/SUNWspro.6.0.U2/SUNWspro/bin/CC -g -mt   -DHAVE_CONFIG_H -DSOLARIS2=8
-D_POSIX_PTHREAD_SEMANTICS 
>>-D_REENTRANT   -I../include -I../include/arch/unix  -c apr_cpystrn.c && touch
apr_cpystrn.lo
>>"apr_cpystrn.c", line 206: Error: Cannot assign void* to char**.
>>"apr_cpystrn.c", line 213: Error: Cannot assign void* to char*.
>>    
>>
>
>?? This is a problem with your compiler.  void * should be allowed to be assigned to
>any pointer without casting.  We use this pattern everywhere, including in subversion.
>  
>
No, in this case problem exists between keyboard and chair -- he's using
CC, wich is the C++ compiler, not the C compiler. And indeed, in C++ it
is forbidden to assign void* to anything else without a cast.

-- 
Brane ─îibej   <brane@xbc.nu>   http://www.xbc.nu/brane/


Mime
View raw message