Re: Fixing gcc 3.3 compile failures -- fix for audio/xmixer
--- 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(); /* signature.asc Description: Digital signature
Re: Fixing gcc 3.3 compile failures -- fix for audio/xmms-tfmx
--- 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] -Original code (tfmxplay) by Jonathan H. Pickard, ported to Winamp by Per Linden\n -TFMX was created by Chris Huelsbeck. + \ +TFMX plugin adapted to xmms by David Le Corfec\ +[EMAIL PROTECTED]\n\ +Original code (tfmxplay) by Jonathan H. Pickard, ported to Winamp by Per Linden\n\ +TFMX was created by Chris Huelsbeck.\ ); gtk_box_pack_start(GTK_BOX(dialog_vbox1), label, TRUE, TRUE, 5); signature.asc Description: Digital signature
Re: Fixing gcc 3.3 compile failures -- fix for games/xjumpjump
--- 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 PROTECTED]) #define E_MY_TITLE XJumpJump v0.12 #define E_MY_TITLE2 by nihil\nHungary\n1997.02.26 @@ -9,7 +9,7 @@ #define E_STR_PRACTISE Hmm... practise a bit more! #define H_STR_PRACTISE Hmm... gyakorolj még egy picit! #define E_STR_CONGRATCongratulations! You have succeed! -#define H_STR_CONGRATGratulálok! Sikerült ezt a pályát +#define H_STR_CONGRATGratulálok! Sikerült ezt a pályát \ leküzdened! #define E_STR_BUT_NEWNew Game signature.asc Description: Digital signature
Re: Fixing gcc 3.3 compile failures -- fix for graphics/xmms-gforce
--- _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 }; + static const char cnames[3][20] = { red, green, blue }; static const char cflags[] = { DoRed, DoGreen, DoBlue }; static unsigned long int * const carrays[] = { X_redmap, X_greenmap, signature.asc Description: Digital signature
Re: Fixing gcc 3.3 compile failures -- fix for math/surf
--- 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 @@ MAN1= surf.1 .include bsd.port.pre.mk - -.if ${OSVERSION} = 500113 -BROKEN= Does not compile (bad C++ code) -.endif .include bsd.port.post.mk --- distinfo.orig Mon Apr 23 18:52:21 2001 +++ distinfoTue Jul 22 16:03:51 2003 @@ -1 +1 @@ -MD5 (surf-1.0.3.tar.gz) = 4d0cea15d9e771e60920dbb25979d1f3 +MD5 (surf-1.0.4.tar.gz) = 4880ecf3d4207ab0a4f2a2f017383b65 --- gtkgui/MainWindowController.cc.orig Tue Jul 22 16:23:20 2003 +++ gtkgui/MainWindowController.cc Tue Jul 22 16:23:30 2003 @@ -28,7 +28,7 @@ #include gtk/gtkitemfactory.h -#include strstream.h +#include strstream // #define DEBUG #include debug.h --- gtkgui/Requester.cc.origTue Jul 22 16:23:45 2003 +++ gtkgui/Requester.cc Tue Jul 22 16:24:01 2003 @@ -25,7 +25,7 @@ #include assert.h #include iostream.h -#include strstream.h +#include strstream #include gtk/gtk.h --- gtkgui/SaveImageDialog.cc.orig Tue Jul 22 16:24:13 2003 +++ gtkgui/SaveImageDialog.cc Tue Jul 22 16:26:31 2003 @@ -23,9 +23,11 @@ */ -#include strstream.h +#include strstream #include SaveImageDialog.h + +using std::ostrstream; void SaveImageDialog::toggled_dither_method (GtkWidget *w, gpointer data) { --- gtkgui/mycolor.cc.orig Tue Jul 22 16:22:12 2003 +++ gtkgui/mycolor.cc Tue Jul 22 16:22:26 2003 @@ -26,7 +26,7 @@ #include assert.h #include iostream.h #include stdlib.h -#include strstream.h +#include strstream #include gtk/gtk.h #include gdk/gdk.h --- misc/Misc.h.origTue Jul 22 16:14:35 2003 +++ misc/Misc.h Tue Jul 22 16:14:59 2003 @@ -26,7 +26,9 @@ #ifndef MISC_H #define MISC_H -#include strstream.h +#include strstream + +using std::ostrstream; class Misc { signature.asc Description: Digital signature
Re: Fixing gcc 3.3 compile failures -- fix for math/topaz
--- 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= ${PORTNAME}-${PORTVERSION:S/./_/}-src --- distinfo.orig Wed Jul 23 15:02:50 2003 +++ distinfoWed Jul 23 15:02:55 2003 @@ -1 +1 @@ -MD5 (topaz-3_38-src.tar.gz) = b91080b08c836890232b715088d2c34f +MD5 (topaz-3_39-src.tar.gz) = 5c6179aeb87a4809b9c78d8f1b5e3755 --- topaz/tpv2ps.cc.origFri Jun 27 14:35:40 2003 +++ topaz/tpv2ps.cc Wed Jul 23 15:12:54 2003 @@ -31,7 +31,7 @@ #include math.h #include string #include time.h -#include getopt.h +//#include getopt.h //char *optarg; extern int errno; @@ -63,7 +63,7 @@ #define buffersize 1024 -char* entry[] = { +const char entry[13][40] = { {Times-Roman-Q}, {Times-Bold-Q}, {Times-Italic-Q}, @@ -79,7 +79,7 @@ {Symbol} }; -char* kentry[] = { +const char kentry[8][30] = { {Ryumin-Light-H}, {Ryumin-Light-H}, {Ryumin-Light-H}, signature.asc Description: Digital signature
Re: Fixing gcc 3.3 compile failures -- fix for net/tp5250
--- 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:'. Example:\n\ tn5250 +ssl_verify_server ssl:as400.example.com\n); #endif printf (\n\ signature.asc Description: Digital signature
Re: Fixing gcc 3.3 compile failures -- fix for print/unrtf
--- 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 begin { \n\ @@ -196,28 +196,28 @@ /Encoding ISOLatin1Encoding def\n\ currentdict end\n\ /TRomanISO exch definefont pop \n\ - +\n\ /Times-Bold findfont dup length dict begin { \n\ 1 index /FID ne { def } { pop pop } ifelse \n\ } forall \n\ /Encoding ISOLatin1Encoding def\n\ currentdict end\n\ /TBoldISO exch definefont pop \n\ - +\n\ /Times-BoldItalic findfont dup length dict begin { \n\ 1 index /FID ne { def } { pop pop } ifelse \n\ } forall \n\ /Encoding ISOLatin1Encoding def\n\ currentdict end\n\ /TBoldItalicISO exch definefont pop\n\ - +\n\ /Times-Italic findfont dup length dict begin { \n\ 1 index /FID ne { def } { pop pop } ifelse \n\ } forall \n\ /Encoding ISOLatin1Encoding def\n\ currentdict end\n\ /TItalicISO exch definefont pop\n\ - +\n\ %% Courier \n\ %% - \n\ /Courier-Roman findfont dup length dict begin {\n\ @@ -226,28 +226,28 @@ /Encoding ISOLatin1Encoding def\n\ currentdict end\n\ /CRomanISO exch definefont pop \n\ - +\n\ /Courier-Bold findfont dup length dict begin { \n\ 1 index /FID ne { def } { pop pop } ifelse \n\ } forall \n\ /Encoding ISOLatin1Encoding def\n\ currentdict end\n\ /CBoldISO exch definefont pop \n\ - +\n\ /Courier-BoldItalic findfont dup length dict begin { \n\ 1 index /FID ne { def } { pop pop } ifelse \n\ } forall \n\ /Encoding ISOLatin1Encoding def\n\ currentdict end\n\ /CBoldItalicISO exch definefont pop\n\ - +\n\ /Courier-Italic findfont dup length dict begin { \n\ 1 index /FID ne { def } { pop pop } ifelse \n\ } forall \n\ /Encoding ISOLatin1Encoding def\n\ currentdict end\n\ /CItalicISO exch definefont pop\n\ - +\n\ %% Symbol \n\ %% - \n\ /Symbol-Roman findfont dup length dict begin { \n\ @@ -256,28 +256,28 @@ /Encoding ISOLatin1Encoding def\n\ currentdict end\n\ /SRomanISO exch definefont pop \n\ - +\n\ /Symbol-Bold findfont dup length dict begin { \n\ 1 index /FID ne { def } { pop pop } ifelse \n\ } forall \n\ /Encoding ISOLatin1Encoding def\n\ currentdict end\n\ /SBoldISO exch definefont pop \n\ - +\n\ /Symbol-BoldItalic findfont dup length dict begin {\n\ 1 index /FID ne { def } { pop pop } ifelse \n\ } forall \n\ /Encoding ISOLatin1Encoding def\n\ currentdict end\n\ /SBoldItalicISO exch definefont pop\n\ - +\n\ /Symbol-Italic findfont dup length dict begin {\n\ 1 index /FID ne { def } { pop pop } ifelse \n\ } forall \n\ /Encoding ISOLatin1Encoding def\n\ currentdict end\n\ /SItalicISO exch definefont pop\n\ - +\n\ %% Helvetica \n\ %% - \n\ /Helvetica-Roman findfont dup length dict begin { \n\ @@ -286,28 +286,28 @@ /Encoding ISOLatin1Encoding def\n\ currentdict end\n\ /HRomanISO exch definefont pop \n\ - +\n\ /Helvetica-Bold findfont dup length dict begin { \n\ 1 index /FID ne { def } { pop pop } ifelse \n\ } forall \n\
Re: Fixing gcc 3.3 compile failures -- fix for textproc/xmlpp
--- 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} ${REINPLACE_CMD} -e \ 's|/usr/local/share|$$(datadir)|g' + @${RM} ${WRKSRC}/config.cache .include bsd.port.post.mk --- src/xmlcommon.h.origWed Jul 23 04:10:04 2003 +++ src/xmlcommon.h Wed Jul 23 04:12:03 2003 @@ -20,6 +20,8 @@ //! dummy define #define XMLPP_API + +using std::string; //! handle to a tagname string in a tagname map typedef int xmltagnamehandle; --- ./src/xmlpp.cpp.origWed Jul 23 04:12:52 2003 +++ ./src/xmlpp.cpp Wed Jul 23 04:13:52 2003 @@ -21,6 +21,12 @@ //debug #include iostream +using std::cout; +using std::cerr; +using std::endl; +using std::ifstream; +using std::ofstream; + namespace xmlpp { // internal use for saving --- src/xmltokenizer.cpp.orig Wed Jul 23 04:14:53 2003 +++ src/xmltokenizer.cppWed Jul 23 04:29:18 2003 @@ -15,7 +15,7 @@ // needed includes #include xmlpp.h #include xmltokenizer.h - +#include iostream // namespace declaration namespace xmlpp { --- test/nodetest.cpp.orig Wed Jul 23 04:18:02 2003 +++ test/nodetest.cpp Wed Jul 23 04:19:01 2003 @@ -5,6 +5,7 @@ */ #include fstream +#include iostream #include xmlpp.h using namespace xmlpp; signature.asc Description: Digital signature
Re: Fixing gcc 3.3 compile failures -fix for textproc/xmlppm
--- 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, outsz); total += fwrite(outbuf, sizeof(char), BUFFSIZE-outsz, ifile-file); if(result == (size_t)-1 errno != E2BIG) { return total; signature.asc Description: Digital signature
Re: Fixing gcc 3.3 compile failures -- fix for x11-toolkits/wmapp
--- 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: namespace Xpms { @@ -254,7 +252,7 @@ while (true) { // sleep for the specified time in milliseconds -Unix::usleep(1000 * current()-updatefreq()); +usleep(1000 * current()-updatefreq()); // execute any timed functions which need it current()-run_timed_functions(); signature.asc Description: Digital signature
Re: Fixing gcc 3.3 compile failures -- fix for x11toolkits/viewklass
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
--- 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* tmpInt = new int = 0; + int* tmpInt = new int; + *tmpInt = 0; gtk_editable_insert_text( GTK_EDITABLE( FindWidget( txtName )), fSequence-GetSequenceName(), @@ -111,4 +112,4 @@ void CancelClickedSongProp( GtkButton *button, gpointer user_data ) { gtk_widget_hide( ((TMvcSongProperties*)user_data)-GetWidget() ); -} \ No newline at end of file +} signature.asc Description: Digital signature
Re: Fixing gcc 3.3 compile failures -- fix for net/netmap
--- 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
--- 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) usage (No remotecmd\n); comm = ssprintf(comm,%s %s '%s',comm,hostname,remotecmd); @@ -369,6 +369,8 @@ list of netsaint service names, separated by ':' [optional]\n -n, --name=NAME\n short name of host in netsaint configuration [optional]\n +-v, --verbose\n + short name of host in netsaint configuration [optional]\n \n The most common mode of use is to refer to a local identity file with\n the '-i' option. In this mode, the identity pair should have a null\n @@ -388,7 +390,7 @@ #define OPTIONS \ --H host [-P port] [-f] [-y] [-t timeout] [-i identity]\n +-H host -C command [-fyv] [-P port] [-t timeout] [-i identity]\n\ [-l user] [-n name] [-s servicelist] [-O outputfile] void print_usage(void) signature.asc Description: Digital signature
Re: Fixing gcc 3.3 compile failures -- fix for www/mod_index_rss
--- 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 Communications//DTD RSS 0.91//EN\ -\http://www.scripting.com/dtd/rss-0_91.dtd\; - -rss version=\0.91\ - -channel +#define HEADER ?xml version=\1.0\ encoding=\UTF-8\?\n\ +\n\ +!DOCTYPE rss PUBLIC \-//Netscape Communications//DTD RSS 0.91//EN\\n\ +\http://www.scripting.com/dtd/rss-0_91.dtd\;\n\ +\n\ +rss version=\0.91\\n\ +\n\ +channel\n\ -#define FOOTER /channel -/rss +#define FOOTER /channel\n\ +/rss\n\ signature.asc Description: Digital signature
Re: Fixing gcc 3.3 compile failures -- patch for graphics/gsculpt
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 @@ # C -CC := gcc CFLAGS = ${DEPENDFLAGS} %.o : %.c @@ -35,7 +34,6 @@ # C++ -CXX := g++ CXXFLAGS = ${DEPENDFLAGS} %.o : %.cc @@ -57,7 +55,7 @@ # linker -LINKER:= g++ +LINKER:= ${CXX} LDFLAGS= LOADLIBES := -O3 -lm `gtk-config --libs` signature.asc Description: Digital signature
Re: Fixing gcc 3.3 compile failures -- patch for graphics/gsculpt
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
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: $?;); - if (strlen (remotecmd) = 1) + if (remotecmd==NULL) usage (No remotecmd\n); comm = ssprintf(comm,%s %s '%s',comm,hostname,remotecmd); This looks like more than a fix for a `compile failure'. The replacement code has different semantics than the new code. What is the `compile failure' that was being fixed here? Cheers, -- Jacques Vidrine . NTT/Verio SME . FreeBSD UNIX . Heimdal [EMAIL PROTECTED] . [EMAIL PROTECTED] . [EMAIL PROTECTED] . [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Fixing gcc 3.3 compile failures -- fix for net/netsaint-plugins
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) remotecmd=strscat(remotecmd,;echo STATUS CODE: $?;); - if (strlen (remotecmd) = 1) + if (remotecmd==NULL) usage (No remotecmd\n); comm = ssprintf(comm,%s %s '%s',comm,hostname,remotecmd); This looks like more than a fix for a `compile failure'. The replacement code has different semantics than the new code. What is the `compile failure' that was being fixed here? perhaps the compiler was pointing out that remotecmd may not be initialized. (I don't see enough context to be sure ;-) -- Thomas E. Dickey [EMAIL PROTECTED] [EMAIL PROTECTED] http://dickey.his.com ftp://dickey.his.com ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Fixing gcc 3.3 compile failures -- fix for net/netsaint-plugins
--- 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) usage (No remotecmd\n); comm = ssprintf(comm,%s %s '%s',comm,hostname,remotecmd); This looks like more than a fix for a `compile failure'. The replacement code has different semantics than the new code. What is the `compile failure' that was being fixed here? I don't know, either. This patch was part of the port before I touched it [1]. Perhaps one should write if ((remotecmd==NULL) || (strlen (remotecmd) = 1)) to be on the safe side? Cheers, Simon [1]: http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/ports/net/netsaint-plugins/files/patch-check_by_ssh.c?rev=1.1content-type=text/plain signature.asc Description: Digital signature
Re: Fixing gcc 3.3 compile failures -- fix for net/netsaint-plugins
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: $?;); - if (strlen (remotecmd) = 1) + if (remotecmd==NULL) usage (No remotecmd\n); comm = ssprintf(comm,%s %s '%s',comm,hostname,remotecmd); This looks like more than a fix for a `compile failure'. The replacement code has different semantics than the new code. What is the `compile failure' that was being fixed here? I don't know, either. This patch was part of the port before I touched it [1]. Oh, well nevermind! I thought this was a new patch to deal with `compile failures'. Cheers! Perhaps one should write if ((remotecmd==NULL) || (strlen (remotecmd) = 1)) to be on the safe side? Maybe. The original submittor might recall. Cheers, -- Jacques Vidrine . NTT/Verio SME . FreeBSD UNIX . Heimdal [EMAIL PROTECTED] . [EMAIL PROTECTED] . [EMAIL PROTECTED] . [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]
Erratum: Re: Fixing gcc 3.3 compile failures -- kde ports proposal
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... *sigh* Cheers Peter ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Erratum: Re: Fixing gcc 3.3 compile failures -- kde portsproposal
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 can see. So - no portupgrade -fa on my current... *sigh* We (kde@) are working on the problem. Since we're also working on getting the upcoming 3.1.3 release ready for the ports tree, we're concentrating on that and not 3.1.2. More news as it happens. A. -- Andy Fawcett | [EMAIL PROTECTED] | [EMAIL PROTECTED] In an open world without walls and fences, | [EMAIL PROTECTED] we wouldn't need Windows and Gates. -- anon | [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Fixing gcc 3.3 compile failures -- fix for math/freefem
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 port to the lastest freefem version would have been enough *doh* :o) (patch attached) To answer your question: the freefem authors decided not to use the 'using namespace std' approach. Cheers, Simon --- Makefile.orig Thu Jun 5 01:41:14 2003 +++ MakefileMon Jul 21 00:42:53 2003 @@ -6,7 +6,7 @@ # PORTNAME= freefem -PORTVERSION= 3.5.4 +PORTVERSION= 3.5.7 CATEGORIES=math cad MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR=kfem @@ -24,10 +24,6 @@ MAN1= freefem.1 .include bsd.port.pre.mk - -.if ${OSVERSION} = 500113 -BROKEN= Does not compile (bad C++ code) -.endif post-patch: @${REINPLACE_CMD} -e 's|-O3 |\$$CXXFLAGS |g' ${WRKSRC}/configure --- distinfo.orig Tue Mar 26 17:04:16 2002 +++ distinfoMon Jul 21 00:38:13 2003 @@ -1 +1 @@ -MD5 (freefem-3.5.4.tar.gz) = 746fe6487085011493a805e23507ae30 +MD5 (freefem-3.5.7.tar.gz) = e8f22515ab56f8e79fb789a11f8d4bef signature.asc Description: Digital signature
Re: Fixing gcc 3.3 compile failures
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 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Fixing gcc 3.3 compile failures
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 the libstdc++ headers trip up gcc? Yes, you can fix that too :-) Kris pgp0.pgp Description: PGP signature
Re: Fixing gcc 3.3 compile failures -- fix for math/freefem
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( path ); if ( fin.fail() ) { [... 405 lines deleted ...] 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? Cheers, -- Jacques Vidrine . NTT/Verio SME . FreeBSD UNIX . Heimdal [EMAIL PROTECTED] . [EMAIL PROTECTED] . [EMAIL PROTECTED] . [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Fixing gcc 3.3 compile failures -- kde ports proposal
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 16:55:37 2003 @@ -4236,7 +4236,7 @@ CXXFLAGS=-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion $CXXFLAGS ;; esac -CXXFLAGS=-Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings $CXXFLAGS +CXXFLAGS=-Wall -pedantic -fpermissive -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings $CXXFLAGS echo $as_me:$LINENO: checking whether $CXX supports -Wundef 5 echo $ECHO_N checking whether $CXX supports -Wundef... $ECHO_C 6 (Beware of newlines when doing cut-and-paste). But that would break things on non-current. So how about setting a variable in /etc/make.conf ? I think for the time being this is not too much for a current-user... MY_CXX_BAILS_OUT_ON_KDE_CONFIGURE=yo (It needn't be so long though ;-) Then put that patch in the files directory as - e.g. - `current-patch-configure'. And change the ports Makefile along the lines of the following patch for koffice: --- Makefile.orig Sat Jul 19 21:48:15 2003 +++ MakefileSat Jul 19 21:49:34 2003 @@ -38,4 +38,9 @@ .include ${.CURDIR}/../../x11/kde3/Makefile.kde +.ifdef MY_CXX_BAILS_OUT_ON_KDE_CONFIGURE +pre-configure: + cd ${WRKSRC} patch ${FILESDIR}/current-patch-configure +.endif + .include bsd.port.mk With those settings, I could do a forced upgrade for everything. I know this can't be the clean, now-we-all-are-happy-solution. But as I already mentioned - for the time being... Cheers Peter ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Fixing gcc 3.3 compile failures
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); ML_GETINT(HDisplay); ML_GETINT(HSyncStart); Just abused concatenation... But I'm pretty sure that the following is what was intended, thusly the better patch: --- src/vga.c.orig Fri Jul 18 13:27:40 2003 +++ src/vga.c Fri Jul 18 13:34:38 2003 @@ -3845,8 +3845,9 @@ mmt.pixelClock = atof(ptr) * 1000; #define ML_GETINT(x) \ - ptr = strtok(NULL, ); if(!ptr) break; \ - mmt.##x = atoi(ptr); + do { ptr = strtok(NULL, ); if(!ptr) break; \ + mmt.x = atoi(ptr); } \ + while (0) ML_GETINT(HDisplay); ML_GETINT(HSyncStart); ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Fixing gcc 3.3 compile failures -- fix for audio/cmp3
[...] 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 are maintained by ports@). I am running 4.8-STABLE with the g++33 (GCC) 3.3.1 20030707 port. I will also check the fixed ports with the base systems gcc. For clarity's sake I will one email per fixed port. You will find the patches for audio/cmp3 attached to this email. Regards, Simon --- cmp3listfiles.c.origFri Jul 18 17:55:33 2003 +++ cmp3listfiles.c Fri Jul 18 17:56:23 2003 @@ -270,13 +270,13 @@ /* XXX - alert person */ return; fprintf(outfile, -## -# Dumped Cmp3 playlist ass file -# -# Addable features (on individual lines): -# %%[command] - executes commands initially using system() call -# @ - randomizes this playlist at load time -# $ - turns on repeat mode at load time +##\n\ +# Dumped Cmp3 playlist ass file\n\ +#\n\ +# Addable features (on individual lines):\n\ +# %%[command] - executes commands initially using system() call\n\ +# @ - randomizes this playlist at load time\n\ +# $ - turns on repeat mode at load time\n\ #\n\n); filename = shmptr-plhead; --- rnmp3.c.origFri Jul 18 18:00:43 2003 +++ rnmp3.c Fri Jul 18 18:02:36 2003 @@ -256,25 +256,21 @@ void usage() { -printf(rnmp3 %s: - -Usage - pipe names into rnmp3. (\find | rnmp3 args\) -If first parameter starts with -, the following string will be removed -from all names if they exist (enclose spaces with \\) -If any other commands are entered, commands will not be executed, -just printed - -rnmp3 Rename -rnmp3 test Don't rename, just show changes -rnmp3 -\string\ Rename after removing \string\ -rnmp3 -\string\ testDon't rename after removing \string\ -rnmp3 --test test Rename after removing \-test\ - -Before - \1-This is my (file name) man.mp3\ -After - \01-ThisIsMy-FileName-Man.mp3\ - -Suggested uses: -find . | rnmp3 +printf(rnmp3 %s:\n\n\ +Usage - pipe names into rnmp3. (\find | rnmp3 args\)\n\ +If first parameter starts with -, the following string will be removed\n\ +from all names if they exist (enclose spaces with \\)\n\ +If any other commands are entered, commands will not be executed,\n\ +just printed\n\n\ +rnmp3 Rename\n\ +rnmp3 test Don't rename, just show changes\n\ +rnmp3 -\string\ Rename after removing \string\\n\ +rnmp3 -\string\ testDon't rename after removing \string\\n\ +rnmp3 --test test Rename after removing \-test\\n\n\ +Before - \1-This is my (file name) man.mp3\\n\ +After - \01-ThisIsMy-FileName-Man.mp3\\n\n\ +Suggested uses:\n\ +find . | rnmp3\n\ find . -type f | rnmp3\n, VERSION); exit(0); signature.asc Description: Digital signature
Re: Fixing gcc 3.3 compile failures -- fix for games/battleball
--- 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= Does not compile (bad C++ code) -.endif +.include bsd.port.pre.mk do-install: @ ${INSTALL_PROGRAM} ${WRKSRC}/battleball ${PREFIX}/bin --- lib3d/general.h.origFri Sep 3 04:25:19 1999 +++ lib3d/general.h Fri Jul 18 17:42:41 2003 @@ -25,9 +25,15 @@ typedef unsigned int uint; typedef unsigned long ulong; +#ifdef __GNUC__ +#if __GNUC__ 3 #define and #define or || #define not ! +#endif + +// TODO - what about non-GNU C++ compilers? +#endif #define forii(limit) for (int i= 0; i limit; i++) #define forij(limit) for (int j= 0; j limit; j++) --- lib3d/xform.h.orig Fri Jul 18 17:28:08 2003 +++ lib3d/xform.h Fri Jul 18 17:26:11 2003 @@ -64,6 +64,7 @@ //=== class tmtrx { + friend struct player; typedef double fourby3[4][3]; fourby3 m; signature.asc Description: Digital signature
Re: Fixing gcc 3.3 compile failures -- fix for audio/cmp3
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 today, I fixed some of the broken ports (I will start with those ports that are maintained by ports@). I am running 4.8-STABLE with the g++33 (GCC) 3.3.1 20030707 port. I will also check the fixed ports with the base systems gcc. For clarity's sake I will one email per fixed port. You will find the patches for audio/cmp3 attached to this email. [patches skipped] Committed, thanks! -- Rgdz,/\ ASCII RIBBON CAMPAIGN Sergey Osokin aka oZZ, \ /AGAINST HTML MAIL http://ozz.pp.ru/ X AND NEWS / \ pgp0.pgp Description: PGP signature
Re: Fixing gcc 3.3 compile failures -- fix for games/battleball
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 / \ pgp0.pgp Description: PGP signature
fix print/gv (was: Re: Fixing gcc 3.3 compile failures)
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 of failures, please post it in response to this email so we can all see how to do it. http://bento.freebsd.org/errorlogs/i386-5-latest/gv-3.5.8_3.log In file included from Aaa.c:49: Aaa_intern.h:44:27: pasting / and Xlib does not give a valid preprocessing token Aaa_intern.h:44:27: pasting h and does not give a valid preprocessing token Aaa_intern.h:45:32: pasting / and Xresource does not give a valid preprocessing token Aaa_intern.h:45:32: pasting h and does not give a valid preprocessing token etc. etc. Put this patch as patch-source::paths.h into ports/print/gv/files: ---8--- --- source/paths.h.orig Sun Apr 6 00:00:00 1997 +++ source/paths.h Fri Jul 18 19:18:09 2003 @@ -34,9 +34,9 @@ # define INC_XMU(aaa) XMU_DIRECTORY/aaa # define INC_XAW(aaa) XAW_DIRECTORY/aaa #else -# define INC_X11(aaa) X11/##aaa## -# define INC_XMU(aaa) X11/Xmu/##aaa## -# define INC_XAW(aaa) X11/Xaw3d/##aaa## +# define INC_X11(aaa) X11/aaa +# define INC_XMU(aaa) X11/Xmu/aaa +# define INC_XAW(aaa) X11/Xaw3d/aaa #endif #endif /* _PATHS_H_ */ ---8--- regards, le -- Lukas Ertl eMail: [EMAIL PROTECTED] UNIX-Systemadministrator Tel.: (+43 1) 4277-14073 Zentraler Informatikdienst (ZID) Fax.: (+43 1) 4277-9140 der Universität Wien http://mailbox.univie.ac.at/~le/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Fixing gcc 3.3 compile failures
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 infix__watching) n=1;#endif;\ #ifdef DEBUG;if (debug_flag 1 ~= 0) n=1;#endif;\ if (n==1) {\ - #ifdef DEBUG;n=debug_flag 1; + #ifdef DEBUG;n=debug_flag 1;\ debug_flag=debug_flag-n;#endif;\ print \[ ~\, (name) obj, \~.\, (property) id, \(\;\ - switch(y) { 1: print a; 2: print a,\,\,b; 3: print + switch(y) { 1: print a; 2: print a,\,\,b; 3: print \ a,\,\,b,\,\,c;\ 4: print a,\,\,b,\,\,c,\,\,d;\ 5: print a,\,\,b,\,\,c,\,\,d,\,\,e;\ CUT Cheers Peter ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Fixing gcc 3.3 compile failures -- fix for multimedia/avinfo
--- 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\ AVInfo 0.7.1 \n,, struct-report,Struct report\n\n\ signature.asc Description: Digital signature
Re: Fixing gcc 3.3 compile failures -- fix for devel/ecgi
--- 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! - - debug messages are written to stderr! - + printf(\ +html2h v0.1\n\ +usage:\n\ + html2h input.html [output.h]\n\ +\n\ + if output is not set, input.h will be generated and overwritten!\n\ +\n\ + debug messages are written to stderr!\n\ +\n\ ); exit(0); @@ -415,4 +415,4 @@ { fprintf(stderr, %s%s\n, msg, comment); exit(1); -} \ No newline at end of file +} signature.asc Description: Digital signature
Re: Fixing gcc 3.3 compile failures -- fix for math/freefem
--- 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 @@ int i; char *result = NULL; -ofstream fout( path ); +std::ofstream fout( path ); if ( fout.fail() ) { @@ -210,11 +210,11 @@ */ if ((result = strstr (path,.amdba)) != NULL) /* amdba format */ { - fout t-getNumberOfPoints() t-getNumberOfCells() endl; + fout t-getNumberOfPoints() t-getNumberOfCells() std::endl; for (i = 0; i t-getNumberOfPoints(); i++) { - fout i+1 t-rp[i][0] t-rp[i][1] t-ng[i] endl; + fout i+1 t-rp[i][0] t-rp[i][1] t-ng[i] std::endl; } @@ -224,13 +224,13 @@ t-tr[i][0]+1 t-tr[i][1]+1 t-tr[i][2]+1 -t-ngt[i] endl; +t-ngt[i] std::endl; } } else if ((result = strstr (path,.am_fmt)) != NULL)/* am_fmt format */ { #if 0 - fout t-getNumberOfPoints() t-getNumberOfCells() endl; + fout t-getNumberOfPoints() t-getNumberOfCells() std::endl; dummy = 0; for (i = 0; i t-getNumberOfCells(); i++) @@ -238,39 +238,39 @@ fout t-tr[i][0]+1 t-tr[i][1]+1 t-tr[i][2]+1 - endl; + std::endl; END_OF_LINE(data, dummy, 1); } if (dummy) fprintf(data,\n); dummy = 0; for (i = 0; i t-getNumberOfPoints(); i++) { - fout t-rp[i][0] t-rp[i][1] endl; + fout t-rp[i][0] t-rp[i][1] std::endl; END_OF_LINE (data, dummy, 1); } if (dummy) fprintf(data,\n); dummy = 0; for (i = 0; i t-getNumberOfCells(); i++) { - fout t-ngt[i] endl; + fout t-ngt[i] std::endl; END_OF_LINE (data, dummy, 9); } if (dummy) fprintf(data,\n); dummy = 0; for (i = 0; i t-getNumberOfPoints(); i++) { - fout t-ng[i] endl; + fout t-ng[i] std::endl; END_OF_LINE (data, dummy, 9); } #endif } else { - fout t-getNumberOfPoints() t-getNumberOfCells() endl; + fout t-getNumberOfPoints() t-getNumberOfCells() std::endl; for (i = 0; i t-getNumberOfPoints(); i++) { - fout t-rp[i][0] t-rp[i][1] t-ng[i] endl; + fout t-rp[i][0] t-rp[i][1] t-ng[i] std::endl; } @@ -279,7 +279,7 @@ fout t-tr[i][0]+1 t-tr[i][1]+1 t-tr[i][2]+1 -t-ngt[i] endl; +t-ngt[i] std::endl; } } return 0; @@ -317,9 +317,9 @@ saveparam (fcts * param, femMesh * t, char *path, int N) { int k, ns = t-getNumberOfPoints(); -ofstream file (path); +std::ofstream file (path); file.precision (8); -file nsN endl; +file nsN std::endl; for (k = 0; k ns; k++) { if (N == 1) @@ -373,7 +373,7 @@ file (param)-nuyy2[k] ; file ; } - file endl; + file std::endl; } file.close (); return 0; @@ -383,9 +383,9 @@ int saveconst (creal f, char *path) { -ofstream file (path, ios::out | ios::app); -// file.seekoff(0,ios::end,0); -file f endl; +std::ofstream file (path, std::ios::out | std::ios::app); +// file.seekoff(0,std::ios::end,0); +file f std::endl; file.close (); return 0; } --- freefem/fem/femGibbs.cpp.orig Sat Jul 19 04:10:36 2003 +++ freefem/fem/femGibbs.cppSat Jul 19 04:19:02 2003 @@ -38,6 +38,7 @@ #include math.h #include stdio.h #include stdlib.h +#include string.h // // Freefem includes @@ -1173,9 +1174,9 @@ { f = new femPoint[ns]; for (i = 0; i ns; ++i) -f[i] = rp[i]; +memcpy (f[i], rp[i], sizeof (femPoint)); for (i = 0; i ns; ++i) -rp[r[i] - 1] = f[i]; +memcpy (rp[r[i] - 1], f[i], sizeof (femPoint)); for (j = 0; j nt; ++j) for (i = 0; i 3; i++) --- freefem/fem/femGraphicX11.cpp.orig Sat Jul 19 04:10:02 2003 +++ freefem/fem/femGraphicX11.cpp Sat Jul 19 04:12:31 2003 @@ -118,7 +118,7 @@ void out_of_memory () { - cerr FreeFEM error: operator new failed; not enough memory endl; + std::cerr FreeFEM error: operator new failed; not enough memory std::endl; exit (-1); } --- freefem/fem/femMisc.cpp.origSat Jul 19 04:09:41 2003 +++ freefem/fem/femMisc.cpp Sat Jul 19
Re: Fixing gcc 3.3 compile failures -- fix for science/euler
--- 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\ signature.asc Description: Digital signature
Re: Fixing gcc 3.3 compile failures -- fix for shells/flash
--- 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[]= -{{\ - -___ _ __ __ - / / / / | / ___// / / / - / /_ / / / /| | \\__ \\/ /_/ / - / __/ / /___/ ___ |___/ / __ / -/_/ /_/_/ |_//_/ /_/ - -,1500},{\ - - - - /\\ - / \\/\\ - /`/ / \\ -- -,40},{\ - - - - /\\ - / \\/\\ - ` _ '/`/ / \\ -- -,40},{\ - - - - /\\ - ` _ ' / \\/\\ - - (_) - /`/ / \\ -- -,40},{\ - - - - ` _ '/\\ - - (_) - / \\/\\ -' ` /`/ / \\ -- -,40},{\ - - - ` _ ' - - (_) - /\\ -' `/ \\/\\ - /`/ / \\ -- -,40},{\ - - ` _ ' - - (_) - -' ` /\\ - / \\/\\ - /`/ / \\ -- -,100},{\ - - ` _ ' -) - (_) - -_) ' ` /\\ - / \\/\\ - /`/ / \\ -- -,20},{\ - -_ ` _ ' - )- (_) - -__) ' ` /\\ - / \\/\\ - /`/ / \\ -- -,20},{\ - -__ ` _ ' - ) - (_) - -___)' ` /\\ - / \\/\\ - /`/ / \\ -- -,20},{\ - -___` _ ' - ) - (_) - -) ' ` /\\ - / \\/\\ - /`/ / \\ -- -,20},{\ - - ___ ` _ ' -( ) - (_) - -_) ' ` /\\ - / \\/\\ - /`/ / \\ -- -,20},{\ - - ___ ` _ ' -_( )- (_) - -__) ' ` /\\ - / \\/\\ - /`/ / \\ -- -,20},{\ - - ___ ` _ ' -__( ) - (_) - -___)' ` /\\ - / \\/\\ - /`/ / \\ -- -,20},{\ - -___` _ ' - __( ) - (_) - -(___) ' ` /\\ - / \\/\\ - /`/ / \\ -- -,20},{\ - - ___ ` _ ' - __( ) - (_) - - (___) ' ` /\\ - / \\/\\ - /`/ / \\ -- -,20},{\ - - ___ ` _ ' - __( )- (_) - - (___) ' ` /\\ - / \\/\\ - /`/ / \\ -- -,20},{\ - - ___ ` _ ' -__( ) (_) - - (___)' ` /\\ - / \\/\\ - /`/ / \\ -- -,20},{\ - -___` _ ' - __( ) (_) - -(___) ` /\\ - / \\/\\ - /`/ / \\ -- -,20},{\ - - ___ _ ' - __( )(_) - - (___) ` /\\ - / \\/\\ - /`/ / \\ -- -,20},{\ - - ___ _ ' - __( )_) - - (___) ` /\\ - / \\/\\ - /`/ / \\ -- -,20},{\ - - ' -__( )) - - (___)` /\\ - / \\/\\ - /`/ / \\ -- -,20},{\ - - `___ ' - __( ) - -(___) /\\ - / \\/\\ - /`/ / \\ -- -,20},{\ - - ` ___ ' - __( ) - - (___)/\\ - / \\/\\ - /`/ / \\ -- -,20},{\ - - ` ___' - -__( )- - (___) /\\ - / \\/\\ - /`/ / \\ -- -,20},{\ - - ` ___ - - _(( ) - (___) /\\ -
Re: Fixing gcc 3.3 compile failures -- fix for graphics/giram
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
--- 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 | FS_TITLE | FS_NUMBER | FS_MOVE | FS_RESIZE, 0, (ht_project*)project); + project_window-init(b, project window, FS_KILLER | FS_TITLE | FS_NUMBER | FS_MOVE | FS_RESIZE, 0, (ht_project**)project); bounds k = b; k.x = b.w-2; signature.asc Description: Digital signature
Re: Fixing gcc 3.3 compile failures -- fix for science/gdis
--- 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]); - printf(calculate_rdf(): latmat[0] = %f latmat[1] = %f latmat[2] = %f - \ncalculate_rdf(): latmat[3] = %f latmat[4] = %f latmat[5] = %f + printf(calculate_rdf(): latmat[0] = %f latmat[1] = %f latmat[2] = %f\ + \ncalculate_rdf(): latmat[3] = %f latmat[4] = %f latmat[5] = %f\ \ncalculate_rdf(): latmat[6] = %f latmat[7] = %f latmat[8] = %f\n, model-latmat[0], model-latmat[1], model-latmat[2], model-latmat[3], model-latmat[4], model-latmat[5], signature.asc Description: Digital signature
Re: Fixing gcc 3.3 compile failures -- fix for sysutils/lsmlib
--- 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 \n\n\n\ signature.asc Description: Digital signature
Re: Fixing gcc 3.3 compile failures -- fix for x11/imwheel
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) { - fprintf(stderr,\ -ERROR: imwheel is already running or there is a stale pid file - check on processes listed below. - run with -k to kill running imwheels. - remove pid file %s. + fprintf(stderr,\n\ +ERROR: imwheel is already running or there is a stale pid file\n\ + check on processes listed below.\n\ + run with -k to kill running imwheels.\n\ + remove pid file %s.\n\ or run with -p to avoid the pid file altogether.\n,PIDFILE); if((f=fopen(PIDFILE,r))) { @@ -710,7 +710,7 @@ struct WinAction *getRC() { - char fname[2][1024]={,/etc/imwheelrc}, line[1024], *p, *q, winid[1024]; + char fname[2][1024]={,/usr/X11R6/etc/imwheelrc}, line[1024], *p, *q, winid[1024]; int fi,i; struct WinAction *newwa=NULL; FILE *f=NULL; signature.asc Description: Digital signature
Re: Fixing gcc 3.3 compile failures
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 maintainer, be sure to contact the maintainer to request that they submit the patch back upstream to the port developers. Kris pgp0.pgp Description: PGP signature
Fixing gcc 3.3 compile failures
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 list of broken ports from the build in progress: http://bento.freebsd.org/errorlogs/i386-5-latest/ 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 in your environment. 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 of failures, please post it in response to this email so we can all see how to do it. To start things off: http://bento.freebsd.org/errorlogs/i386-5-latest/arts++-1-1-a8_1.log ... ArtsRttTimeSeriesTableData.cc:873: error: `assert' undeclared (first use this function) ... This class of error is fixed by adding #include assert.h to the top of the file. NOTE: There are at least two recent failure modes that have been introduced into 5.x that are not due to gcc33. 1) The recent texinfo port changed the default info generation style to not produce split files, which breaks a lot of pkg-plists. A patch was submitted to the ports@ list a few days ago to allow bsd.port.mk to better handle info files, but I haven't yet evaluated or tested it. I hope to have the time over the weekend. 2) Recent *.mk changes by ru have apparently broken a number of ports: http://bento.freebsd.org/errorlogs/i386-5-latest/tcl-8.0.5.log ... nm: ../generic/panic.o: No such file or directory nm: ../generic/regexp.o: No such file or directory nm: ../generic/tclAsync.o: No such file or directory ... This will be probably be corrected once ru returns from vacation in a few weeks. Please don't attempt to do anything with these ports for now. Kris pgp0.pgp Description: PGP signature
Re: Fixing gcc 3.3 compile failures
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 out a patch for a class of failures, please post it in response to this email so we can all see how to do it. http://bento.freebsd.org/errorlogs/i386-5-latest/nap-1.5.1.log ... title.h:7:1: missing terminating character ... A fix is similar to this: --- src/nap.c.orig Thu Jul 17 20:21:08 2003 +++ src/nap.c Thu Jul 17 20:22:02 2003 @@ -542,21 +542,20 @@ if (!getval(connection)) { if (!info.daemon) { - wp(NULL, - Connection | Number - --- - Unknown| 0 - 14.4 | 1 - 28.8 | 2 - 33.6 | 3 - 56.7 | 4 - 64K ISDN | 5 - 128K ISDN | 6 - Cable | 7 - DSL| 8 - T1 | 9 - T3 or | 10 -\n); + wp(NULL, \ + Connection | Number\n\ + ---\n\ + Unknown| 0\n\ + 14.4 | 1\n\ + 28.8 | 2\n\ + 33.6 | 3\n\ + 56.7 | 4\n\ + 64K ISDN | 5\n\ + 128K ISDN | 6\n\ + Cable | 7\n\ + DSL| 8\n\ + T1 | 9\n\ + T3 or | 10\n); wp(NULL, How fast is your internet connection?\n); wp(NULL, Please choose 0--10 from the chart: [4] ); ans = nap_getline(stdin); Be careful not to introduce or remove any newlines when you patch this. Kris pgp0.pgp Description: PGP signature