You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Toby Knudsen <To...@RocketSoftware.com> on 2003/05/20 23:47:45 UTC
apr from subversion-0.23.0 won't build on solaris 2.8 with Sun compiler
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*.
2 Error(s) detected.
make[3]: *** [apr_cpystrn.lo] Error 1
make[3]: Leaving directory `/home/alameda/tknudsen/subversion-0.23.0/apr/strings'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/alameda/tknudsen/subversion-0.23.0/apr/strings'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/alameda/tknudsen/subversion-0.23.0/apr'
make: *** [external-all] Error 1
bash$ echo $CC
/opt/packages/SUNWspro.6.0.U2/SUNWspro/bin/CC
bash$ pwd
/home/alameda/tknudsen/subversion-0.23.0
RE: apr from subversion-0.23.0 won't build on solaris 2.8 with Sun compiler
Posted by Sander Striker <st...@apache.org>.
> From: Branko Cibej [mailto:brane@xbc.nu]
> Sent: Friday, May 23, 2003 1:58 AM
> Sander Striker wrote:
>> ?? 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.
Ah, that explains it all.
> And indeed, in C++ it is forbidden to assign void* to anything else without a cast.
*nod*
Sander
Re: apr from subversion-0.23.0 won't build on solaris 2.8 with Sun
compiler
Posted by Branko Čibej <br...@xbc.nu>.
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 <br...@xbc.nu> http://www.xbc.nu/brane/
RE: apr from subversion-0.23.0 won't build on solaris 2.8 with Sun compiler
Posted by Sander Striker <st...@apache.org>.
> 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.
> 2 Error(s) detected.
> make[3]: *** [apr_cpystrn.lo] Error 1
> make[3]: Leaving directory `/home/alameda/tknudsen/subversion-0.23.0/apr/strings'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/alameda/tknudsen/subversion-0.23.0/apr/strings'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/alameda/tknudsen/subversion-0.23.0/apr'
> make: *** [external-all] Error 1
>
> bash$ echo $CC
> /opt/packages/SUNWspro.6.0.U2/SUNWspro/bin/CC
> bash$ pwd
> /home/alameda/tknudsen/subversion-0.23.0
Sander