[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: [PATCH] Re: Weird kdelibs/kfile compile problem
From:       Stephan Kulow <coolo () kde ! org>
Date:       2001-05-15 8:46:51
[Download RAW message or body]

On Tuesday 15 May 2001 01:46, Rob Napier wrote:
> On Wed, May 09, 2001 at 12:08:28PM +0200, Stephan Kulow wrote:
> > > The below patch seems to make Solaris happy (there are other compiling
> > > problems right now). I wouldn't think it would cause trouble for
> > > anyone else. Does it?
> >
> > You mean like people not using gcc?
>
> Is -isystem gcc specific? I seem to be in a minefield here, and I
> can't figure out what changed. for instance, here's today's latest
> problem:
>
> g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../dcop -I../libltdl -I../kdecore
> -I../kdeui -I../kssl -I/users/rnapier/qt2/include -I/usr/openwin/include
> -I/users/rnapier/kde2/include -I/usr/local/include
> -I/usr/local/contrib/include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS
> -DUSE_SOLARIS -O2 -fno-exceptions -fno-check-new -frtti -ftemplate-depth-99
> -DQT_NO_TRANSLATION -DQT_CLEAN_NAMESPACE -DQT_NO_COMPAT -DQT_NO_ASCII_CAST
> -Wp,-MD,.deps/ksocks.pp -c ksocks.cpp  -fPIC -DPIC -o .libs/ksocks.o
> ksocks.cpp: In method `int KSocks::connect(int, const sockaddr *, unsigned
> int)': ksocks.cpp:432: passing `const sockaddr *' as argument 2 of
> `connect(int, sockaddr *, int)' discards qualifiers ksocks.cpp: In method
> `int KSocks::recvfrom(int, void *, long unsigned int, int, sockaddr *,
> ksocklen_t *)': ksocks.cpp:456: ANSI C++ forbids implicit conversion from
> `void *' in argument passing ksocks.cpp: In method `int KSocks::sendto(int,
> const void *, long unsigned int, int, const sockaddr *, unsigned int)':
> ksocks.cpp:467: ANSI C++ forbids implicit conversion from `void *' in
> argument passing ksocks.cpp: In method `int KSocks::recv(int, void *, long
> unsigned int, int)': ksocks.cpp:474: ANSI C++ forbids implicit conversion
> from `void *' in argument passing ksocks.cpp: In method `int
> KSocks::send(int, const void *, long unsigned int, int)': ksocks.cpp:481:
> ANSI C++ forbids implicit conversion from `void *' in argument passing
> make[1]: *** [ksocks.lo] Error 1
> make[1]: Leaving directory `/users/rnapier/kde-cvs/kdelibs/kdecore'
> make: *** [all-recursive] Error 1
>
>
> I've also tried it with -isystem /usr/openwin/include to no avail. A
> couple of weeks ago, I got these warnings, but they weren't errors. I
> can't find a -Werror or -pedantic-errors anywhere. This warning->error
> translation was why I went down the road of using -isystem.
>
> The only thing that seems to fix this is to put in -fpermissive. Did
> that use to be in there and get removed? Is there something less
> drastic that could fix this?
>
We used to use -pedantic, which gives you a lot of warnings. Now we don't use 
it anymore, so you now get _some_ errors. -fpermissive has been added for 
Solaris, so I wouldn't mind adding it there :)
But -pedantic would help _you_ too.

Greetings, Stephan

-- 
People in cars cause accidents. Accidents in cars cause people.
 
>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic