bug-ddd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Build Failure with ddd-3.3.7 on Solaris 5.5.1 with gcc-3.3.1


From: Vin Shelton
Subject: Build Failure with ddd-3.3.7 on Solaris 5.5.1 with gcc-3.3.1
Date: Tue, 26 Aug 2003 16:03:06 -0400

Greetings -
   I successfully built ddd-3.3.7 on Solaris 5.8, but when I tried to
build it on a Solaris 5.5.1 box, I got the following errors:

...
source='../../../../src/ddd-3.3.7/ddd/wm.C' object='wm.o' libtool=no \
depfile='.deps/wm.Po' tmpdepfile='.deps/wm.TPo' \
depmode=gcc3 /bin/ksh ../../../../src/ddd-3.3.7/depcomp \
g++ -DHAVE_CONFIG_H -I. -I../../../../src/ddd-3.3.7/ddd -I. 
-I../../../../src/ddd-3.3.7/ddd/.. -isystem 
/u/shelton2/software/SunOS-5.5/include -isystem /usr/openwin/include    
-DNDEBUG -O2 -g -W -Wall -trigraphs  -c -o wm.o `test -f 
'../../../../src/ddd-3.3.7/ddd/wm.C' || echo 
'../../../../src/ddd-3.3.7/ddd/'`../../../../src/ddd-3.3.7/ddd/wm.C
source='../../../../src/ddd-3.3.7/ddd/xconfig.C' object='xconfig.o' libtool=no \
depfile='.deps/xconfig.Po' tmpdepfile='.deps/xconfig.TPo' \
depmode=gcc3 /bin/ksh ../../../../src/ddd-3.3.7/depcomp \
g++ -DHAVE_CONFIG_H -I. -I../../../../src/ddd-3.3.7/ddd -I. 
-I../../../../src/ddd-3.3.7/ddd/.. -isystem 
/u/shelton2/software/SunOS-5.5/include -isystem /usr/openwin/include    
-DNDEBUG -O2 -g -W -Wall -trigraphs  -c -o xconfig.o `test -f 
'../../../../src/ddd-3.3.7/ddd/xconfig.C' || echo 
'../../../../src/ddd-3.3.7/ddd/'`../../../../src/ddd-3.3.7/ddd/xconfig.C
../../../../src/ddd-3.3.7/ddd/xconfig.C: In function `const char* 
   resolve_dirname(Display*, const char*, const char*)':
../../../../src/ddd-3.3.7/ddd/xconfig.C:275: error: invalid conversion from `
   const char*' to `char*'
../../../../src/ddd-3.3.7/ddd/xconfig.C: In function `int 
   check_xnlspath(Display*, bool)':
../../../../src/ddd-3.3.7/ddd/xconfig.C:332: error: cannot convert `string' to 
   `const char*' for argument `1' to `int putenv(const char*)'
../../../../src/ddd-3.3.7/ddd/xconfig.C:357: error: cannot convert `string' to 
   `const char*' for argument `1' to `int putenv(const char*)'
make[2]: *** [xconfig.o] Error 1
make[2]: Leaving directory `/u/shelton2/software/build/SunOS-5.5/ddd-3.3.7/ddd'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/u/shelton2/software/build/SunOS-5.5/ddd-3.3.7/ddd'
make: *** [all-recursive] Error 1

I solved this problem with the following patch:

--- ddd/xconfig.C       2003-05-24 11:27:14.000000000 -0400
+++ ../../build/SunOS-5.5/ddd-3.3.7/ddd/xconfig.C       2003-08-26 
15:18:52.149522000 -0400
@@ -272,7 +272,7 @@
     {
        static string dir;
        dir = dirname(ret);
-       ret = dir.chars();
+       ret = CONST_CAST(char*,dir.chars());
     }
 
     return ret;
@@ -329,7 +329,7 @@
        // Fix it now
        static string env;
        env = string("XNLSPATH=") + xnlspath;
-       putenv(env);
+       putenv(CONST_CAST(char*,env.chars()));
        return 0;               // Okay
     }
 
@@ -354,7 +354,7 @@
            // Fix it now
            static string env;
            env = "XNLSPATH=" + path;
-           putenv(env);
+           putenv(CONST_CAST(char*,env.chars()));
            return 0;
        }
     }

HTH,
  Vin Shelton




reply via email to

[Prev in Thread] Current Thread [Next in Thread]