for starters, leave your system include files alone (no program should 
ever - ever! - require these to be modified). i suggest you do what the 
deprecation warning says: "Examples include substituting the <X> header 
for the <X.h> header for C++ includes." so go thru the licq source and 
change all "#inclde <vector.h>" to "#include <vector>" which is the 
proper iclude style for c++ system/utility headers anyway.

submitting a patch for these changes might be nice too ^_~. as an added 
bonus, including these files using the semantic described works for all 
versions of gcc (and for all versions of other compilers too, i would 
wager [migt be wrong, smack me if necessary]).

good luck,
brian

[EMAIL PROTECTED] wrote:

>Message: 1
>From: "Francisco J. León" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Date: Thu, 16 May 2002 17:50:22 -0400
>Subject: [Licq-devel] Can't compile licq with gcc 3.1
>
>I may have done a bad install but just wanted to make sure.
>Licq cant find vector.h which should come with libstdc
>I have mandrake 8.2, and installed gcc 3.1 with the following:
>
>-Downloaded gcc-core and -g++, opened, ./configure'd , make bootstrap
>
>After i had finished, i uninstalled the gcc 2.96 and libstdc rpms to make
>sure i would not have stray files around (since i --prefix to /usr )
>
>So i did make install then, and went over to compile licq, after make
>distclean , make makefile.cvs and all stuff, i did ./configure and licq
>cannot find vector.h
>
>Looking at the gcc 3.1 files, the vector.h file seems to be in a backward
>dir. So i guess that means vector.h file is obsolete but for now included.
>Do i need to install the old libstdc package to get things working again?=
> Or
>can i make licq work with gcc 3.1?
>
>Thanks
>Francisco J. Le=F3n
>IV Semestre Lic. en Computaci=F3n
>LUZ - Maracaibo, Venezuela
>Icq: 1797523  h t t p : / / e s p e c t r 0 . c o m
>
>
>
>--__--__--
>
>Message: 2
>From: "Francisco J. León" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Date: Thu, 16 May 2002 17:58:55 -0400
>Subject: [Licq-devel] Updated info on gcc 3.1 issue
>
>I made a symlink so there would be a vector.h file pointing to the
>../backward/vector.h file and now i get the following warning:
>
>/usr/include/g++-v3/backward/backward_warning.h:32:2: warning: #warning This
>file includes at least one deprecated or antiquated header. Please consider
>using one of the 32 headers found in section 17.4.1.2 of the C++ standard.
>Examples include substituting the <X> header for the <X.h> header for C++
>includes, or <sstream> instead of the deprecated header <strstream.h> To
>disable this warning use -Wno-deprecated.
>
>How can i enable this -Wno thing?
>
>
>
>--__--__--
>
>Message: 3
>From: "Francisco J. León" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Date: Thu, 16 May 2002 18:11:29 -0400
>Subject: [Licq-devel] Workaround for gcc 3.1 build issue but still cant compile
>
>Licq used a suit of deprecated libs which gcc 3.1 has moved on a backward
>dir and restricts them unless you use a special c++ parameter.
>
>Being the dumb guy i am, i dont know how to pass this parameter for licq to
>use it, so i just went into the offending files containing the block, and
>commented it out.
>
>Go into /usr/include/g++-v3/backward and edit the following files:
>
>(algobase, alloc, function, iostream, uterator, pair, vector).h
>and // the lines that #include backward_warning.h
>
>That gets licq to start to compile, only to crap after few seconds with the
>following:
>Making all in src
>gmake[2]: Entering directory /home/espectro/licq/src'
>c++ -DHAVE_CONFIG_H -I. -I. -I.. -Wall -I../include
>-DINSTALL_PREFIX=\"/usr\"   -fPIC -DPIC -D_REENTRANT  -O2 -fno-exceptions
>-fno-check-new -c icqd-chat.cpp
>icqd-chat.cpp:1581: default argument given for parameter 3 of void
>   CChatManager::SendBuffer(CBuffer*, unsigned char, long unsigned int = 0,
>   bool = true)'
>../include/licq_chat.h:556: after previous specification in void
>   CChatManager::SendBuffer(CBuffer*, unsigned char, long unsigned int = 0,
>   bool = true)'
>icqd-chat.cpp:1581: default argument given for parameter 4 of void
>   CChatManager::SendBuffer(CBuffer*, unsigned char, long unsigned int = 0,
>   bool = true)'
>../include/licq_chat.h:556: after previous specification in void
>   CChatManager::SendBuffer(CBuffer*, unsigned char, long unsigned int = 0,
>   bool = true)'
>gmake[2]: *** [icqd-chat.o] Error 1
>
>
>
>
>--__--__--
>
>Message: 4
>From: Norberto Bensa <[EMAIL PROTECTED]>
>To: "Francisco J. =?iso-8859-1?q?Le=F3n?=" <[EMAIL PROTECTED]>,
>       <[EMAIL PROTECTED]>
>Subject: Re: [Licq-devel] Workaround for gcc 3.1 build issue but still cant compile
>Date: Thu, 16 May 2002 19:20:38 -0300
>
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>On Thursday 16 May 2002 07:11 pm, Francisco J. Le=F3n wrote:
>  
>
>>icqd-chat.cpp:1581: default argument given for parameter 3 of void
>>    
>>
>
>Parameter has default argument in prototype AND function definition. Remo=
>ve=20
>default argument in funtion definition and it will work ... I guess :-/
>
>HTH,
>Norberto
>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG v1.0.7 (GNU/Linux)
>
>iD8DBQE85DC3r0mxTvkKQ9cRAuQ/AJ0bzYufeOpVkRzje/SxNv2hH/EMhwCghDD1
>1MRLkJJDFzM7VxnOJKt3MWs=3D
>=3DysFg
>-----END PGP SIGNATURE-----
>
>
>--__--__--
>
>Message: 5
>Date: Fri, 17 May 2002 00:24:39 +0200
>From: Bernard Cafarelli (Voyageur) <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: [Licq-devel] Updated info on gcc 3.1 issue and another problem
>
>--=.q59Ky.DVoXfy?Y
>Content-Type: text/plain; charset=US-ASCII
>Content-Transfer-Encoding: 7bit
>
>Those flags can be set with the CFLAGS,CXXFLAGS or CPPFLAGS (depends if it's c files 
>or c++ files)
>
>The test program for vector.h uses c++ so just type:
>export CPPFLAGS=-Wno-deprecated
>and then ./configure ... as usual
>
>NOTE: since this is just a check for libstdc++, why not change the test program to 
>use another .h file? Here's the list of deprecated headers:
>algobase.h          deque.h      iomanip.h   multiset.h  slist.h      tree.h
>algo.h              fstream.h    iostream.h  new.h       stack.h      vector.h
>alloc.h             function.h   istream.h   ostream.h   streambuf.h
>backward_warning.h  hash_map.h   iterator.h  pair.h      stream.h
>bvector.h           hash_set.h   list.h      queue.h     strstream
>complex.h           hashtable.h  map.h       rope.h      strstream.h
>defalloc.h          heap.h       multimap.h  set.h       tempbuf.h
>
>But there's another problem with gcc3.1: it doesnt like when fonctions have their 
>default arguments given in a .h file AND in a .cpp file that includes this header. 
>For example:
>
>ewidgets.cpp:469: default argument given for parameter 2 of 
>`CMessageViewWidget::CMessageViewWidget(long unsigned int, QWidget* = 0, const char* 
>= 0)'
>ewidgets.h:130: after previous specification in 
>`CMessageViewWidget::CMessageViewWidget(long unsigned int, QWidget* = 0, const char* 
>= 0)'
>ewidgets.cpp:469: default argument given for parameter 3 of 
>`CMessageViewWidget::CMessageViewWidget(long unsigned int, QWidget* = 0, const char* 
>= 0)'
>ewidgets.h:130: after previous specification in 
>`CMessageViewWidget::CMessageViewWidget(long unsigned int, QWidget* = 0, const char* 
>= 0)'
>make[2]: *** [ewidgets.lo] Erreur 1
>
>So, which default setting do I have to remove? I tried to hack some, but the new licq 
>will just hang almost immediatly.
>
>Wow, it's becoming a big post. Enough for the night
>
>  
>




_______________________________________________________________

Hundreds of nodes, one monster rendering program.
Now that’s a super model! Visit http://clustering.foundries.sf.net/
_______________________________________________
Licq-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/licq-devel

Reply via email to