Re: Fixing gcc 3.3 compile failures -- fix for audio/xmixer

2003-07-23 Thread Simon Barner
--- Xw/Base.c.orig Wed Jul 23 03:56:03 2003 +++ Xw/Base.c Wed Jul 23 03:56:43 2003 @@ -89,8 +89,8 @@ * default translation table */ static char defaultTranslations [] = \ -FocusIn: focus(in) -FocusOut: focus(out) +FocusIn: focus(in)\n\ +FocusOut: focus(out)\n\ KeyTab: tab();

Re: Fixing gcc 3.3 compile failures -- fix for audio/xmms-tfmx

2003-07-23 Thread Simon Barner
--- src/xmms_about.c.orig Wed Jul 23 04:53:36 2003 +++ src/xmms_about.cWed Jul 23 04:54:43 2003 @@ -20,11 +20,11 @@ gtk_container_border_width(GTK_CONTAINER(hbox1), 5); label = gtk_label_new( - -TFMX plugin adapted to xmms by David Le Corfec -[EMAIL PROTECTED]

Re: Fixing gcc 3.3 compile failures -- fix for games/xjumpjump

2003-07-23 Thread Simon Barner
--- texts.h.origWed Jul 23 03:48:19 2003 +++ texts.h Wed Jul 23 03:48:56 2003 @@ -1,6 +1,6 @@ #define E_MY_PRGNAME xjumpjump -#define E_VERSIONJumpJump-0.12 for X, Feb 26th 1997 by +#define E_VERSIONJumpJump-0.12 for X, Feb 26th 1997 by \ nihil ([EMAIL

Re: Fixing gcc 3.3 compile failures -- fix for graphics/xmms-gforce

2003-07-23 Thread Simon Barner
--- _Unix-X/libxpce/xvhandler.c.origWed Jul 23 04:43:19 2003 +++ _Unix-X/libxpce/xvhandler.c Wed Jul 23 04:44:31 2003 @@ -342,7 +342,7 @@ /* x_DCTCEDoComp() - Do one component for DCTCE */ int x_DCTCEDoComp(int mask, int color) { - static const char cnames[] = { red, green, blue }; +

Re: Fixing gcc 3.3 compile failures -- fix for math/surf

2003-07-23 Thread Simon Barner
--- Makefile.orig Tue Jul 22 17:13:04 2003 +++ MakefileTue Jul 22 17:13:15 2003 @@ -7,7 +7,7 @@ # PORTNAME= surf -PORTVERSION= 1.0.3 +PORTVERSION= 1.0.4 CATEGORIES=math MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR=${PORTNAME} @@ -27,9 +27,5 @@

Re: Fixing gcc 3.3 compile failures -- fix for math/topaz

2003-07-23 Thread Simon Barner
--- Makefile.orig Wed Jul 23 15:02:46 2003 +++ MakefileWed Jul 23 15:03:08 2003 @@ -6,7 +6,7 @@ # PORTNAME= topaz -PORTVERSION= 3.38 +PORTVERSION= 3.39 CATEGORIES=math MASTER_SITES= http://hp.vector.co.jp/authors/VA007663/topaz/bin/ DISTNAME=

Re: Fixing gcc 3.3 compile failures -- fix for net/tp5250

2003-07-23 Thread Simon Barner
--- src/tn5250.c.orig Tue Jul 22 18:25:06 2003 +++ src/tn5250.cTue Jul 22 18:25:31 2003 @@ -179,7 +179,7 @@ tn5250 [options] HOST[:PORT]\n); #ifdef HAVE_LIBSSL printf(\ - To connect using ssl prefix HOST with 'ssl:'. Example: + To connect using ssl prefix HOST with 'ssl:'.

Re: Fixing gcc 3.3 compile failures -- fix for print/unrtf

2003-07-23 Thread Simon Barner
--- ps.c.orig Tue Jul 22 18:56:13 2003 +++ ps.cTue Jul 22 19:02:44 2003 @@ -187,7 +187,7 @@ /didShowPage false def \n\ %%--\n\ %% Set up the ISO fonts \n\ - +\n\ %% Times \n\ %% - \n\ /Times-Roman findfont dup length dict

Re: Fixing gcc 3.3 compile failures -- fix for textproc/xmlpp

2003-07-23 Thread Simon Barner
--- Makefile.orig Wed Jul 23 04:08:36 2003 +++ MakefileWed Jul 23 04:09:11 2003 @@ -21,12 +21,9 @@ .include bsd.port.pre.mk -.if ${OSVERSION} = 500113 -BROKEN= Does not compile (bad C++ code) -.endif - pre-patch: @${FIND} ${WRKSRC} -name Makefile.in | ${XARGS}

Re: Fixing gcc 3.3 compile failures -fix for textproc/xmlppm

2003-07-23 Thread Simon Barner
--- IFile.cpp.orig Wed Jul 23 04:32:54 2003 +++ IFile.cpp Wed Jul 23 04:35:43 2003 @@ -100,7 +100,7 @@ while(insz 0) { size_t result; outsz = BUFFSIZE; -result = iconv(ifile-iconv, (char*)inptr, insz, outptr, outsz); +result = iconv(ifile-iconv, inptr, insz, outptr,

Re: Fixing gcc 3.3 compile failures -- fix for x11-toolkits/wmapp

2003-07-23 Thread Simon Barner
--- wmapp.cc.orig Wed Jul 23 03:26:58 2003 +++ wmapp.ccWed Jul 23 03:28:59 2003 @@ -4,11 +4,9 @@ using std::string; -namespace Unix { - extern C { -# include unistd.h // for usleep() - } -}; +extern C { +# include unistd.h // for usleep() +} // All the xpms we need:

Re: Fixing gcc 3.3 compile failures -- fix for x11toolkits/viewklass

2003-07-23 Thread Simon Barner
These are quite a lot of files, so I put them into a tar archive http://www.leo.org/~barner/freebsd/x11-toolkits-viewklass_port_patch.tar.gz signature.asc Description: Digital signature

Re: Fixing gcc 3.3 compile failures

2003-07-22 Thread Simon Barner
--- midimountain/mvcSongProperties.cpp.orig Tue Jul 22 04:23:32 2003 +++ midimountain/mvcSongProperties.cpp Tue Jul 22 04:25:22 2003 @@ -42,7 +42,8 @@ //= void TMvcSongProperties::SetData( void ) { - int*

Re: Fixing gcc 3.3 compile failures -- fix for net/netmap

2003-07-22 Thread Simon Barner
--- belgolib/dirs.c.origTue Jul 22 04:58:32 2003 +++ belgolib/dirs.c Tue Jul 22 04:58:46 2003 @@ -1,5 +1,6 @@ #include stdio.h #include dirent.h +#include assert.h #include list signature.asc Description: Digital signature

Re: Fixing gcc 3.3 compile failures -- fix for net/netsaint-plugins

2003-07-22 Thread Simon Barner
--- plugins/check_by_ssh.c.orig Mon Apr 23 09:43:11 2001 +++ plugins/check_by_ssh.c Tue Jul 22 05:05:52 2003 @@ -191,7 +191,7 @@ if (commands1) remotecmd=strscat(remotecmd,;echo STATUS CODE: $?;); - if (strlen (remotecmd) = 1) + if (remotecmd==NULL)

Re: Fixing gcc 3.3 compile failures -- fix for www/mod_index_rss

2003-07-22 Thread Simon Barner
--- mod_index_rss.c.origTue Jul 22 04:37:54 2003 +++ mod_index_rss.c Tue Jul 22 04:39:22 2003 @@ -11,18 +11,18 @@ #define TIME_FORMAT %a %b %d %H:%M:%S %Y /* This is the XML header file */ -#define HEADER ?xml version=\1.0\ encoding=\UTF-8\? - -!DOCTYPE rss PUBLIC \-//Netscape

Re: Fixing gcc 3.3 compile failures -- patch for graphics/gsculpt

2003-07-22 Thread Simon Barner
patch-Makefile is in order to make the port respect the CC and CXX variables. gsculpt-gcc33-patches.tar.gz contains a whole bunch of patches, mostly 'using std::foo' stuff. Cheers, Simon --- Makefile.orig Mon Jul 21 19:59:12 2003 +++ MakefileMon Jul 21 19:59:38 2003 @@ -27,7 +27,6 @@

Re: Fixing gcc 3.3 compile failures -- patch for graphics/gsculpt

2003-07-22 Thread Simon Barner
gsculpt-gcc33-patches.tar.gz contains a whole bunch of patches, mostly 'using std::foo' stuff. Since the file was cut by the mailing list system: You can find it here: http://www.leo.org/~barner/freebsd/gsculpt-gcc33-patches.tar.gz signature.asc Description: Digital signature

Re: Fixing gcc 3.3 compile failures -- fix for net/netsaint-plugins

2003-07-22 Thread Jacques A. Vidrine
On Tue, Jul 22, 2003 at 02:26:08PM +0200, Simon Barner wrote: --- plugins/check_by_ssh.c.orig Mon Apr 23 09:43:11 2001 +++ plugins/check_by_ssh.cTue Jul 22 05:05:52 2003 @@ -191,7 +191,7 @@ if (commands1) remotecmd=strscat(remotecmd,;echo STATUS CODE: $?;);

Re: Fixing gcc 3.3 compile failures -- fix for net/netsaint-plugins

2003-07-22 Thread Thomas Dickey
On Tue, Jul 22, 2003 at 02:56:37PM -0500, Jacques A. Vidrine wrote: On Tue, Jul 22, 2003 at 02:26:08PM +0200, Simon Barner wrote: --- plugins/check_by_ssh.c.orig Mon Apr 23 09:43:11 2001 +++ plugins/check_by_ssh.c Tue Jul 22 05:05:52 2003 @@ -191,7 +191,7 @@ if (commands1)

Re: Fixing gcc 3.3 compile failures -- fix for net/netsaint-plugins

2003-07-22 Thread Simon Barner
--- plugins/check_by_ssh.c.orig Mon Apr 23 09:43:11 2001 +++ plugins/check_by_ssh.c Tue Jul 22 05:05:52 2003 @@ -191,7 +191,7 @@ if (commands1) remotecmd=strscat(remotecmd,;echo STATUS CODE: $?;); - if (strlen (remotecmd) = 1) + if (remotecmd==NULL)

Re: Fixing gcc 3.3 compile failures -- fix for net/netsaint-plugins

2003-07-22 Thread Jacques A. Vidrine
On Wed, Jul 23, 2003 at 01:57:56AM +0200, Simon Barner wrote: --- plugins/check_by_ssh.c.orig Mon Apr 23 09:43:11 2001 +++ plugins/check_by_ssh.cTue Jul 22 05:05:52 2003 @@ -191,7 +191,7 @@ if (commands1) remotecmd=strscat(remotecmd,;echo STATUS CODE: $?;);

Erratum: Re: Fixing gcc 3.3 compile failures -- kde ports proposal

2003-07-20 Thread Peter Kadau
Hi ! With those settings, I could do a forced upgrade for everything. Ahem, not quite true, I forgot kdebase3. Everything configures, but that thing is the only reluctant to build. Some sort of known problem with static_cast as far as I can see. So - no portupgrade -fa on my current...

Re: Erratum: Re: Fixing gcc 3.3 compile failures -- kde portsproposal

2003-07-20 Thread Andy Fawcett
On Sunday 20 July 2003 12:59, Peter Kadau wrote: Hi ! With those settings, I could do a forced upgrade for everything. Ahem, not quite true, I forgot kdebase3. Everything configures, but that thing is the only reluctant to build. Some sort of known problem with static_cast as far as I

Re: Fixing gcc 3.3 compile failures -- fix for math/freefem

2003-07-20 Thread Simon Barner
Hi, -ifstream fin( path ); +std::ifstream fin( path ); A much smaller patch could be produced with using namespace std; as appropriate. Have you checked with the upstream author to see which approach is likely to be rolled into the distribution? Actually, upgrading the

Re: Fixing gcc 3.3 compile failures

2003-07-19 Thread Alex Zepeda
On Thu, Jul 17, 2003 at 07:52:00PM -0700, Kris Kennaway wrote: OK, now that the latest 5.x package build is well underway, we can start work on fixing the compile failures seen with gcc 3.3. What about stuff that breaks because the libstdc++ headers trip up gcc? - alex

Re: Fixing gcc 3.3 compile failures

2003-07-19 Thread Kris Kennaway
On Fri, Jul 18, 2003 at 11:30:14PM -0700, Alex Zepeda wrote: On Thu, Jul 17, 2003 at 07:52:00PM -0700, Kris Kennaway wrote: OK, now that the latest 5.x package build is well underway, we can start work on fixing the compile failures seen with gcc 3.3. What about stuff that breaks because

Re: Fixing gcc 3.3 compile failures -- fix for math/freefem

2003-07-19 Thread Jacques A. Vidrine
On Sat, Jul 19, 2003 at 05:05:39AM +0200, Simon Barner wrote: --- freefem/fem/femDisk.cpp.orig Sat Jul 19 04:09:32 2003 +++ freefem/fem/femDisk.cpp Sat Jul 19 04:13:43 2003 @@ -95,7 +95,7 @@ char *result = 0; int dummy; -ifstream fin( path ); +std::ifstream fin(

Re: Fixing gcc 3.3 compile failures -- kde ports proposal

2003-07-19 Thread Peter Kadau
Hi ! Luckily the KDE ports are very uniform. Applying the obvious, trivial patch to configure always works on current. (Of course only since the patch utility is clever enough to try the hunk at different offsets...): --- configure.orig Sat Jul 19 16:54:39 2003 +++ configure Sat Jul 19

Re: Fixing gcc 3.3 compile failures

2003-07-18 Thread Peter Kadau
OK, here is one for graphics/svgalib: --- src/vga.c.orig Fri Jul 18 13:27:40 2003 +++ src/vga.c Fri Jul 18 13:32:58 2003 @@ -3846,7 +3846,7 @@ #define ML_GETINT(x) \ ptr = strtok(NULL, ); if(!ptr) break; \ - mmt.##x = atoi(ptr); + mmt.x = atoi(ptr);

Re: Fixing gcc 3.3 compile failures -- fix for audio/cmp3

2003-07-18 Thread Simon Barner
[...] If you are running 4.x, you can also help to develop fixes for these ports by installing the gcc33 port and setting CC=/usr/local/bin/gcc33 CXX=/usr/local/bin/g++33 [...] Hi, since I have some spare time today, I fixed some of the broken ports (I will start with those ports that

Re: Fixing gcc 3.3 compile failures -- fix for games/battleball

2003-07-18 Thread Simon Barner
--- Makefile.orig Fri Jul 18 17:46:10 2003 +++ MakefileFri Jul 18 17:46:39 2003 @@ -21,11 +21,9 @@ MAKE_ENV= PTHREAD_LIBS=${PTHREAD_LIBS} \ PTHREAD_CFLAGS=${PTHREAD_CFLAGS} -.include bsd.port.pre.mk +CFLAGS += -Wno-deprecated -.if ${OSVERSION} = 500113 -BROKEN=

Re: Fixing gcc 3.3 compile failures -- fix for audio/cmp3

2003-07-18 Thread Sergey A. Osokin
On Fri, Jul 18, 2003 at 06:23:32PM +0200, Simon Barner wrote: [...] If you are running 4.x, you can also help to develop fixes for these ports by installing the gcc33 port and setting CC=/usr/local/bin/gcc33 CXX=/usr/local/bin/g++33 [...] Hi, since I have some spare time

Re: Fixing gcc 3.3 compile failures -- fix for games/battleball

2003-07-18 Thread Sergey A. Osokin
On Fri, Jul 18, 2003 at 06:36:31PM +0200, Simon Barner wrote: [patches skipped] Committed with some modifications, thanks! -- Rgdz,/\ ASCII RIBBON CAMPAIGN Sergey Osokin aka oZZ, \ /AGAINST HTML MAIL http://ozz.pp.ru/ X AND NEWS

fix print/gv (was: Re: Fixing gcc 3.3 compile failures)

2003-07-18 Thread Lukas Ertl
On Thu, 17 Jul 2003, Kris Kennaway wrote: Most of the new compile failures are caused by 3 or 4 types of failure mode (all of which have to do with stricter standards compliance in the new compiler suite). I haven't yet looked at how to fix most of them: if you figure out a patch for a class

Re: Fixing gcc 3.3 compile failures

2003-07-18 Thread Peter Kadau
Hi ! For games/inform just some escaped newlines: [ I already sent that to the maintainer, but then again to avoid double `work'... ] CUT --- veneer.c.orig Fri Jul 18 15:38:34 2003 +++ veneer.cFri Jul 18 15:39:44 2003 @@ -250,10 +250,10 @@ #ifdef INFIX;if (obj has

Re: Fixing gcc 3.3 compile failures -- fix for multimedia/avinfo

2003-07-18 Thread Simon Barner
--- messages.c.orig Fri Jul 18 17:14:00 2003 +++ messages.c Fri Jul 18 17:14:42 2003 @@ -43,7 +43,7 @@ Author: %Z, Site: %U\n\ Comment: %p\n\n\ Audio codec information:\n\ -Signatire: %w\t\tName: %P\n +Signatire: %w\t\tName: %P\n\

Re: Fixing gcc 3.3 compile failures -- fix for devel/ecgi

2003-07-18 Thread Simon Barner
--- html2h/html2h.c.origSat Jul 19 02:31:37 2003 +++ html2h/html2h.c Sat Jul 19 02:32:42 2003 @@ -6,15 +6,15 @@ void usage() { - printf( -html2h v0.1 -usage: - html2h input.html [output.h] - - if output is not set, input.h will be generated and overwritten!

Re: Fixing gcc 3.3 compile failures -- fix for math/freefem

2003-07-18 Thread Simon Barner
--- freefem/fem/femDisk.cpp.origSat Jul 19 04:09:32 2003 +++ freefem/fem/femDisk.cpp Sat Jul 19 04:13:43 2003 @@ -95,7 +95,7 @@ char *result = 0; int dummy; -ifstream fin( path ); +std::ifstream fin( path ); if ( fin.fail() ) { @@ -198,7 +198,7 @@

Re: Fixing gcc 3.3 compile failures -- fix for science/euler

2003-07-18 Thread Simon Barner
--- metaps.c.orig Sat Jul 19 02:38:38 2003 +++ metaps.cSat Jul 19 02:39:09 2003 @@ -209,7 +209,7 @@ // rectangle clipping // x1 y1 x2 y2 setclip static char setclipmacro[]= /setclip {\n\ -gsave +gsave\ /y2 exch def\n\ /x2 exch def\n\ /y1 exch def\n\

Re: Fixing gcc 3.3 compile failures -- fix for shells/flash

2003-07-18 Thread Simon Barner
--- screens/nc_about.c.orig Mon Jan 17 11:57:20 2000 +++ screens/nc_about.c Sat Jul 19 03:21:09 2003 @@ -86,856 +86,855 @@ */ struct anim A[]= -{{\ - -___ _ __ __ - / / / / | / ___// / / / - / /_ / / / /| | \\__ \\/ /_/ / - / __/ / /___/ ___ |___/ /

Re: Fixing gcc 3.3 compile failures -- fix for graphics/giram

2003-07-18 Thread Simon Barner
Is marked broken: BROKEN=Fails to patch but the patches do apply and the port does build. signature.asc Description: Digital signature

Re: Fixing gcc 3.3 compile failures -- fix for editors/hte

2003-07-18 Thread Simon Barner
--- htapp.cc.orig Sat Jul 19 05:35:07 2003 +++ htapp.ccSat Jul 19 05:39:02 2003 @@ -2028,7 +2028,7 @@ get_stdbounds_tool(b); ht_project_window *project_window=new ht_project_window(); - project_window-init(b, project window, FS_KILLER |

Re: Fixing gcc 3.3 compile failures -- fix for science/gdis

2003-07-18 Thread Simon Barner
--- rdf.c.orig Sat Jul 19 05:08:36 2003 +++ rdf.c Sat Jul 19 05:09:00 2003 @@ -445,8 +445,8 @@ printf(calculate_rdf(): a = %f b = %f c = %f alpha = %f beta = %f gamma = %f\n, model-pbc[0], model-pbc[1], model-pbc[2], model-pbc[3], model-pbc[4], model-pbc[5]); -

Re: Fixing gcc 3.3 compile failures -- fix for sysutils/lsmlib

2003-07-18 Thread Simon Barner
--- main.c.orig Sat Jul 19 06:04:26 2003 +++ main.c Sat Jul 19 06:03:37 2003 @@ -21,7 +21,7 @@ #define USAGE usage: lsm [-h] [-o file] [dir] \n \ \n \ \th \t: print this help message\n \ -\tv \t: print current version\n +\tv \t: print current version\n\ \to file \t: use file as output

Re: Fixing gcc 3.3 compile failures -- fix for x11/imwheel

2003-07-18 Thread Simon Barner
The attached patch includes the existing patch file patch-ab, which is obsolete now. --- util.c.orig Tue Oct 31 13:06:05 2000 +++ util.c Sat Jul 19 05:45:59 2003 @@ -330,11 +330,11 @@ fclose(f); if(pid0 useFifo) { -

Re: Fixing gcc 3.3 compile failures

2003-07-17 Thread Kris Kennaway
On Thu, Jul 17, 2003 at 07:52:00PM -0700, Kris Kennaway wrote: OK, now that the latest 5.x package build is well underway, we can start work on fixing the compile failures seen with gcc 3.3. I forgot to remind committers that if you commit a patch that was not submitted by the port's

Fixing gcc 3.3 compile failures

2003-07-17 Thread Kris Kennaway
OK, now that the latest 5.x package build is well underway, we can start work on fixing the compile failures seen with gcc 3.3. These are the ports that have become broken on the latest build (everything after July 14): http://bento.freebsd.org/errorlogs/i386-5-failure.html Here is the full

Re: Fixing gcc 3.3 compile failures

2003-07-17 Thread Kris Kennaway
On Thu, Jul 17, 2003 at 07:52:00PM -0700, Kris Kennaway wrote: Most of the new compile failures are caused by 3 or 4 types of failure mode (all of which have to do with stricter standards compliance in the new compiler suite). I haven't yet looked at how to fix most of them: if you figure