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

List:       kde
Subject:    Re: Can't compile kdebase-1.0pre1
From:       Zaheer Merali <zaheer () grid9 ! net>
Date:       1998-06-30 23:44:53
[Download RAW message or body]



On 1 Jul 1998, Kai Grossjohann wrote:

> I successfully compiled and installed kdesupport and kdelibs, both
> 1.0pre1.  But I can't compile kdebase-1.0pre1:
> 
> ,-----
> > make[3]: Leaving directory `/home/local/src/kde/kdebase-1.0pre/kfm/config'
> > g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/kde/include -I/usr/local/qt/include \
> > -I/usr/X11R6/include  -O2 -Wall -c kmimemagic.cpp
> > /usr/local/qt/include/qstring.h: In function `int cstrncmp(const char *, const \
> > char *, unsigned int)':
> > In file included from /usr/local/qt/include/qregexp.h:27,          
> > from kmimemagic.cpp:21:                           
> > /usr/local/qt/include/qstring.h:95: warning: implicit declaration of function \
> > `int strncmp(...)'
> > kmimemagic.cpp: In function `int buff_apprentice(char *)':         
> > kmimemagic.cpp:533: warning: implicit declaration of function `int strncpy(...)'
> > kmimemagic.cpp:535: warning: implicit declaration of function `int strchr(...)'
> > kmimemagic.cpp:535: warning: assignment to `char *' from `int' lacks a cast
> > kmimemagic.cpp:539: warning: implicit declaration of function `int strcat(...)'
> > kmimemagic.cpp: In function `int mconvert(union VALUETYPE *, struct magic *)':
> > kmimemagic.cpp:962: warning: assignment to `char *' from `int' lacks a cast
> > kmimemagic.cpp: In method `int KMimeMagic::fsmagic(const char *, struct stat *)':
> > kmimemagic.cpp:1413: warning: implicit declaration of function `int strrchr(...)'
> > kmimemagic.cpp:1413: warning: assignment to `char *' from `int' lacks a cast
> > kmimemagic.cpp: In method `void KMimeMagic::mprint(union VALUETYPE *, struct \
> > magic *)':
> > kmimemagic.cpp:1685: warning: assignment to `char *' from `int' lacks a cast
> > kmimemagic.cpp: In method `int KMimeMagic::ascmagic(unsigned char *, int)':
> > kmimemagic.cpp:1745: warning: implicit declaration of function `int memchr(...)'
> > kmimemagic.cpp:1745: ANSI C++ forbids comparison between pointer and integer
> > kmimemagic.cpp:1750: warning: implicit declaration of function `int memset(...)'
> > kmimemagic.cpp:1759: warning: implicit declaration of function `int strtok(...)'
> > kmimemagic.cpp:1759: warning: assignment to `char *' from `int' lacks a cast
> > kmimemagic.cpp: In method `KMimeMagic::KMimeMagic(const char *)':  
> > kmimemagic.cpp:2009: warning: implicit declaration of function `int strdup(...)'
> > kmimemagic.cpp:2009: warning: assignment to `char *' from `int' lacks a cast
> > kmimemagic.cpp: In method `bool KMimeMagic::mergeConfig(const char *)':
> > kmimemagic.cpp:2048: warning: assignment to `char *' from `int' lacks a cast
> > make[2]: *** [kmimemagic.o] Error 1                                
> > make[2]: Leaving directory `/home/local/src/kde/kdebase-1.0pre/kfm'
> `-----
> 
> What's wrong?  Using qt-1.33, compiled it myself using gcc 2.7.2.1.
> This is also the compiler I use for compiling the rest of the stuff.
> All of this on an Intel Debian GNU/Linux version 1.3.

You will notice it says Ansi c+ forbids a few things, you will need to go
to the lines noted and put specific casts for pointers to go to ints when
doing pointer arithmetic.  If you want a patched kmimemagic.cpp file I can
send it to you tomorrow morning when I get to work.

Regards

Zaheer Merali
Mirage Networking Ltd

> > tia,
> kai
> -- 
> You ate somebody? -- Just a leg. -- That's terrible! -- Not with mustard.
> (Terry Pratchett: Interesting Times)
> -- 
> Send posts to:  kde@lists.netcentral.net
> Send all commands to:  kde-request@lists.netcentral.net
> Put your command in the SUBJECT of the message:
> "subscribe", "unsubscribe", "set digest on", or "set digest off"
> **********************************************************************
> This list is from your pals at NetCentral <http://www.netcentral.net/>
> 

-- 
Send posts to:  kde@lists.netcentral.net
 Send all commands to:  kde-request@lists.netcentral.net
  Put your command in the SUBJECT of the message:
   "subscribe", "unsubscribe", "set digest on", or "set digest off"
**********************************************************************
This list is from your pals at NetCentral <http://www.netcentral.net/>


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

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