Warning

 

Close
Confirm Action

Are you sure you wish to do this?

Cancel Confirm
AR15.COM
5/6/2012 9:19:51 AM EDT
SO I've spent several hours working on google and building GCC and G++ 4.1.3 (which is required for my software Im building. Modern version of GCC/G++ are incompatible.)



I've built the GCC and G++, and changed the syslinks to point the new (old) versions to gcc and g++ for the duration of my project.



However, I am now running into an issue when building my application:




gcc: act.comm.cpp: C++ compiler not installed on this system
g++  -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb  -c -o act.comm.o act.comm.cpp
act.comm.cpp:15:20: error: iostream: No such file or directory
list.h: In member function ‘bool List<T>::Add(T, const char*, int)’:
list.h:230: error: ‘cerr’ was not declared in this scope
list.h:231: error: ‘endl’ was not declared in this scope
make: *** [act.comm.o] Error 1

I am pretty much a noob to Linux, and running Debian 6.0.4.





Any ideas?


 
5/6/2012 9:22:55 AM EDT
[#1]
Quoted:
SO I've spent several hours working on google and building GCC and G++ 4.1.3 (which is required for my software Im building. Modern version of GCC/G++ are incompatible.)

I've built the GCC and G++, and changed the syslinks to point the new (old) versions to gcc and g++ for the duration of my project.

However, I am now running into an issue when building my application:

gcc: act.comm.cpp: C++ compiler not installed on this systemg++  -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb  -c -o act.comm.o act.comm.cppact.comm.cpp:15:20: error: iostream: No such file or directorylist.h: In member function ‘bool List<T>::Add(T, const char*, int)’:list.h:230: error: ‘cerr’ was not declared in this scopelist.h:231: error: ‘endl’ was not declared in this scopemake: *** [act.comm.o] Error 1




I am pretty much a noob to Linux, and running Debian 6.0.4.


Any ideas?
 


Why not install the package?
5/6/2012 9:25:31 AM EDT
[#2]
Your toolchain looks busted ...

$ apt-get install build-essential

Then fix your source code to compile on a modern GCC.

ETA: Also, did you *really* install a new toolchain outside the package manager and then symlink system toolchain bits into your custom toolchain?

Trying to cheat the package manager will burn you down the road. Keep local builds in local directories, adjust CC and perhaps PATH environment variables as-necessary. For example, you can avoid touching any system directory at all by installing to 'toolchain' or some similarly-named directory in your $HOME, then shove your custom toolchain at the beginning of your $PATH to instruct your shell to find your custom tools first.

Honestly seems like a lot of BSing around for code that can't *really* be right if newer (stricter) GCC croaks out
5/6/2012 9:34:20 AM EDT
[#3]
Are the permissions right on the directory it is looking at?
5/6/2012 9:38:37 AM EDT
[#4]



Quoted:


Your toolchain looks busted ...



$ apt-get install build-essential



Then fix your source code to compile on a modern GCC.



ETA: Also, did you *really* install a new toolchain outside the package manager and then symlink system toolchain bits into your custom toolchain?



Trying to cheat the package manager will burn you down the road. Keep local builds in local directories, adjust CC and perhaps PATH environment variables as-necessary. For example, you can avoid touching any system directory at all by installing to 'toolchain' or some similarly-named directory in your $HOME, then shove your custom toolchain at the beginning of your $PATH to instruct your shell to find your custom tools first.



Honestly seems like a lot of BSing around for code that can't *really* be right if newer (stricter) GCC croaks out


This.  Messing with the OS installed gcc libs is bad.  Installing in /usr/local and changing your path variable is what you want to do.  

 
5/6/2012 9:47:44 AM EDT
[#5]
I tried installing via apt-get package and it failed, giving me this message:







jrsteensen@mudhost:~/sol_dev/src$ sudo apt-get install gcc-4.1 gcc-4.1-base libstdc++6-4.1-dev

Reading package lists... Done

Building dependency tree      

Reading state information... Done

Package libstdc++6-4.1-dev is not available, but is referred to by another package.

This may mean that the package is missing, has been obsoleted, or

is only available from another source



E: Package 'libstdc++6-4.1-dev' has no installation candidate




So I did the custom build...and no, at this point, rewriting the several thousand lines of code isn't something I have time for. I understand the argument, and once I get it built and evaluated, if I decide to progress with it, I will clean the code up. I know the original coder has last proven it on 4.1.2.





What version of Debian used 4.1.2 natively? i have no problems installing the correct version of debian if its easier. I am just trying to put together a baseline VM under Windows 7.



 
5/6/2012 9:53:51 AM EDT
[#6]
Quoted:
I tried installing via apt-get package and it failed, giving me this message:

jrsteensen@mudhost:~/sol_dev/src$ sudo apt-get install gcc-4.1 gcc-4.1-base libstdc++6-4.1-dev
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Package libstdc++6-4.1-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libstdc++6-4.1-dev' has no installation candidate

So I did the custom build...and no, at this point, rewriting the several thousand lines of code isn't something I have time for. I understand the argument, and once I get it built and evaluated, if I decide to progress with it, I will clean the code up. I know the original coder has last proven it on 4.1.2.

What version of Debian used 4.1.2 natively? i have no problems installing the correct version of debian if its easier. I am just trying to put together a baseline VM under Windows 7.


apt-get update?
Are you running stable?
does "sol_dev" imply solaris?
5/6/2012 9:57:07 AM EDT
[#7]





Quoted:



SO I've spent several hours working on google and building GCC and G++ 4.1.3 (which is required for my software Im building. Modern version of GCC/G++ are incompatible.)





I've built the GCC and G++, and changed the syslinks to point the new (old) versions to gcc and g++ for the duration of my project.





However, I am now running into an issue when building my application:
gcc: act.comm.cpp: C++ compiler not installed on this systemg++  -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb  -c -o act.comm.o act.comm.cppact.comm.cpp:15:20: error: iostream: No such file or directorylist.h: In member function ‘bool List<T>::Add(T, const char*, int)’:list.h:230: error: ‘cerr’ was not declared in this scopelist.h:231: error: ‘endl’ was not declared in this scopemake: *** [act.comm.o] Error 1

I am pretty much a noob to Linux, and running Debian 6.0.4.
Any ideas?


 



As far as iostream goes, make sure you're using "#include <iostream>" not "iostream.h"





Have you knocked together a smaller test program using iostream? Might be useful.


5/6/2012 9:58:22 AM EDT
[#8]



Quoted:



Quoted:

snip





apt-get update?

Are you running stable?

does "sol_dev" imply solaris?


Already updated.

Yes.

No. Its the root of the application: AwakeMUD. (Just wanting to dabble with C++ in a telnet environment again.)



 
5/6/2012 10:03:58 AM EDT
[#9]
meh.  Not worth it.
5/6/2012 10:08:20 AM EDT
[#10]



Quoted:


meh.  Not worth it.


?



 
5/6/2012 10:10:27 AM EDT
[#11]



Quoted:





Quoted:

Your toolchain looks busted ...



$ apt-get install build-essential



Then fix your source code to compile on a modern GCC.



ETA: Also, did you *really* install a new toolchain outside the package manager and then symlink system toolchain bits into your custom toolchain?



Trying to cheat the package manager will burn you down the road. Keep local builds in local directories, adjust CC and perhaps PATH environment variables as-necessary. For example, you can avoid touching any system directory at all by installing to 'toolchain' or some similarly-named directory in your $HOME, then shove your custom toolchain at the beginning of your $PATH to instruct your shell to find your custom tools first.



Honestly seems like a lot of BSing around for code that can't *really* be right if newer (stricter) GCC croaks out


This.  Messing with the OS installed gcc libs is bad.  Installing in /usr/local and changing your path variable is what you want to do.    


Makes sense. the GCC/G++ build is confusing the dog piss outta me though. I've never dealt with installing applications outside of using apt-get before. Makes perfect sense. Would you happen to have a tutorial handy for how to do this?



 
5/6/2012 10:11:23 AM EDT
[#12]
Quoted:

Quoted:
meh.  Not worth it.

?
 


What os image are you using, exactly please?
5/6/2012 10:26:50 AM EDT
[#13]
Quoted:

Makes sense. the GCC/G++ build is confusing the dog piss outta me though. I've never dealt with installing applications outside of using apt-get before. Makes perfect sense. Would you happen to have a tutorial handy for how to do this?
 


I don't, but let me give you the basic run-down here:

The shell environment variable $PATH defines where your shell will look for commands to call. You can tweak it for the running shell instance any time you like. Check it out:

 sh$ echo  $PATH

 sh$ mkdir ~/bin
 sh$ echo -e '#!/bin/sh\necho hi!' > ~/bin/my_test_cmd
 sh$ chmod +x ~/bin/my_test_cmd

 sh$ my_test_cmd
 ## Should be a command not found error.

 sh$ PATH="$HOME/bin:$PATH" my_test_cmd
 ## Should greet you. This altered PATH will disappear after my_test_cmd completes.

 bash$ export PATH="${HOME}/bin:$PATH"
 ## Preserve this altered PATH for the running instance.

PATH is searched from left to right when a command is called that is not a shell built-in nor an absolute path to something. If you are calling gcc and friends directly or using some kind of halfassed/custom build system, you may need to adjust your PATH.

If you just need this toolchain for one user, you can install stuff to somewhere under your home directory and adjust PATH as-needed.
Otherwise, you can install to /usr/local –– whichever the case may be, you will install to a "prefix" such as /usr/local or /home/MYUSER/toolchain or something. Directories under this prefix will be created for various files. Executables files will typically end up in PREFIX/bin, for example.

When building an autotools-enabled distribution such as GCC, you should be able to specify a ––prefix opt to the 'configure' script. This will determine your install PREFIX. See './configure ––help' for a complete description of available options for a particular autoconf'd distribution.

 sh$ cd gcc-ancient-version
 sh$ ./configure ––any-opts-I-need ––prefix=/home/myuser/oldass-toolchain
 ## GCC has a lot of built options you may want to investigate.
 ## ./configure ––help is worth a look.
 ## Note that you may need a special opt (––with-g++ or something? I forget) to build C++
 sh$ make && make install

The above will install a toolchain under /home/myuser/oldass-toolchain. Your binaries would likely be in /home/myuser/oldass-toolchain/bin

Now, if the *app you are actually building* is autotools-ified, you can probably just leave PATH well enough alone. A proper autotools distribution will respect the environment variables $CC and $CXX, defining the location of the preferred C compiler and C++ compiler, respectively. If these are set when 'configure' is run for the target application, it should use the right compiler when 'make' is called later:

 sh$ CC="/path/to/my/oldass/gcc" CXX="/path/to/my/oldass/g++" ./configure && make

5/6/2012 10:43:02 AM EDT
[#14]



Quoted:



Quoted:




Quoted:

meh.  Not worth it.


?

 




What os image are you using, exactly please?


Debian 6.0.4
 
5/6/2012 10:48:04 AM EDT
[#15]
Here is output, making with the latest package of build-essentials:




set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb zedit.cpp | sed 's/\(zedit\)\.o[ :]*/\1.o zedit.d : /g' > zedit.d; [ -s zedit.d ] || rm -f zedit.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb weather.cpp | sed 's/\(weather\)\.o[ :]*/\1.o weather.d : /g' > weather.d; [ -s weather.d ] || rm -f weather.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb vtable.cpp | sed 's/\(vtable\)\.o[ :]*/\1.o vtable.d : /g' > vtable.d; [ -s vtable.d ] || rm -f vtable.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb vedit.cpp | sed 's/\(vedit\)\.o[ :]*/\1.o vedit.d : /g' > vedit.d; [ -s vedit.d ] || rm -f vedit.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb utils.cpp | sed 's/\(utils\)\.o[ :]*/\1.o utils.d : /g' > utils.d; [ -s utils.d ] || rm -f utils.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb transport.cpp | sed 's/\(transport\)\.o[ :]*/\1.o transport.d : /g' > transport.d; [ -s transport.d ] || rm -f transport.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb spec_procs.cpp | sed 's/\(spec_procs\)\.o[ :]*/\1.o spec_procs.d : /g' > spec_procs.d; [ -s spec_procs.d ] || rm -f spec_procs.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb spec_assign.cpp | sed 's/\(spec_assign\)\.o[ :]*/\1.o spec_assign.d : /g' > spec_assign.d; [ -s spec_assign.d ] || rm -f spec_assign.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb screen.cpp | sed 's/\(screen\)\.o[ :]*/\1.o screen.d : /g' > screen.d; [ -s screen.d ] || rm -f screen.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb redit.cpp | sed 's/\(redit\)\.o[ :]*/\1.o redit.d : /g' > redit.d; [ -s redit.d ] || rm -f redit.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb quest.cpp | sed 's/\(quest\)\.o[ :]*/\1.o quest.d : /g' > quest.d; [ -s quest.d ] || rm -f quest.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb pro_create.cpp | sed 's/\(pro_create\)\.o[ :]*/\1.o pro_create.d : /g' > pro_create.d; [ -s pro_create.d ] || rm -f pro_create.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb pocketsec.cpp | sed 's/\(pocketsec\)\.o[ :]*/\1.o pocketsec.d : /g' > pocketsec.d; [ -s pocketsec.d ] || rm -f pocketsec.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb olc.cpp | sed 's/\(olc\)\.o[ :]*/\1.o olc.d : /g' > olc.d; [ -s olc.d ] || rm -f olc.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb newshop.cpp | sed 's/\(newshop\)\.o[ :]*/\1.o newshop.d : /g' > newshop.d; [ -s newshop.d ] || rm -f newshop.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb newmatrix.cpp | sed 's/\(newmatrix\)\.o[ :]*/\1.o newmatrix.d : /g' > newmatrix.d; [ -s newmatrix.d ] || rm -f newmatrix.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb newmail.cpp | sed 's/\(newmail\)\.o[ :]*/\1.o newmail.d : /g' > newmail.d; [ -s newmail.d ] || rm -f newmail.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb newmagic.cpp | sed 's/\(newmagic\)\.o[ :]*/\1.o newmagic.d : /g' > newmagic.d; [ -s newmagic.d ] || rm -f newmagic.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb newdb.cpp | sed 's/\(newdb\)\.o[ :]*/\1.o newdb.d : /g' > newdb.d; [ -s newdb.d ] || rm -f newdb.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb modify.cpp | sed 's/\(modify\)\.o[ :]*/\1.o modify.d : /g' > modify.d; [ -s modify.d ] || rm -f modify.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb mobact.cpp | sed 's/\(mobact\)\.o[ :]*/\1.o mobact.d : /g' > mobact.d; [ -s mobact.d ] || rm -f mobact.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb memory.cpp | sed 's/\(memory\)\.o[ :]*/\1.o memory.d : /g' > memory.d; [ -s memory.d ] || rm -f memory.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb medit.cpp | sed 's/\(medit\)\.o[ :]*/\1.o medit.d : /g' > medit.d; [ -s medit.d ] || rm -f medit.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb mail.cpp | sed 's/\(mail\)\.o[ :]*/\1.o mail.d : /g' > mail.d; [ -s mail.d ] || rm -f mail.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb magcreate.cpp | sed 's/\(magcreate\)\.o[ :]*/\1.o magcreate.d : /g' > magcreate.d; [ -s magcreate.d ] || rm -f magcreate.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb limits.cpp | sed 's/\(limits\)\.o[ :]*/\1.o limits.d : /g' > limits.d; [ -s limits.d ] || rm -f limits.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb interpreter.cpp | sed 's/\(interpreter\)\.o[ :]*/\1.o interpreter.d : /g' > interpreter.d; [ -s interpreter.d ] || rm -f interpreter.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb iedit.cpp | sed 's/\(iedit\)\.o[ :]*/\1.o iedit.d : /g' > iedit.d; [ -s iedit.d ] || rm -f iedit.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb icedit.cpp | sed 's/\(icedit\)\.o[ :]*/\1.o icedit.d : /g' > icedit.d; [ -s icedit.d ] || rm -f icedit.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb house.cpp | sed 's/\(house\)\.o[ :]*/\1.o house.d : /g' > house.d; [ -s house.d ] || rm -f house.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb hedit.cpp | sed 's/\(hedit\)\.o[ :]*/\1.o hedit.d : /g' > hedit.d; [ -s hedit.d ] || rm -f hedit.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb handler.cpp | sed 's/\(handler\)\.o[ :]*/\1.o handler.d : /g' > handler.d; [ -s handler.d ] || rm -f handler.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb guncreate.cpp | sed 's/\(guncreate\)\.o[ :]*/\1.o guncreate.d : /g' > guncreate.d; [ -s guncreate.d ] || rm -f guncreate.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb graph.cpp | sed 's/\(graph\)\.o[ :]*/\1.o graph.d : /g' > graph.d; [ -s graph.d ] || rm -f graph.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb file.cpp | sed 's/\(file\)\.o[ :]*/\1.o file.d : /g' > file.d; [ -s file.d ] || rm -f file.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb fight.cpp | sed 's/\(fight\)\.o[ :]*/\1.o fight.d : /g' > fight.d; [ -s fight.d ] || rm -f fight.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb deck_build.cpp | sed 's/\(deck_build\)\.o[ :]*/\1.o deck_build.d : /g' > deck_build.d; [ -s deck_build.d ] || rm -f deck_build.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb dblist.cpp | sed 's/\(dblist\)\.o[ :]*/\1.o dblist.d : /g' > dblist.d; [ -s dblist.d ] || rm -f dblist.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb db.cpp | sed 's/\(db\)\.o[ :]*/\1.o db.d : /g' > db.d; [ -s db.d ] || rm -f db.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb constants.cpp | sed 's/\(constants\)\.o[ :]*/\1.o constants.d : /g' > constants.d; [ -s constants.d ] || rm -f constants.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb config.cpp | sed 's/\(config\)\.o[ :]*/\1.o config.d : /g' > config.d; [ -s config.d ] || rm -f config.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb comm.cpp | sed 's/\(comm\)\.o[ :]*/\1.o comm.d : /g' > comm.d; [ -s comm.d ] || rm -f comm.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb chargen.cpp | sed 's/\(chargen\)\.o[ :]*/\1.o chargen.d : /g' > chargen.d; [ -s chargen.d ] || rm -f chargen.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb boards.cpp | sed 's/\(boards\)\.o[ :]*/\1.o boards.d : /g' > boards.d; [ -s boards.d ] || rm -f boards.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb bitfield.cpp | sed 's/\(bitfield\)\.o[ :]*/\1.o bitfield.d : /g' > bitfield.d; [ -s bitfield.d ] || rm -f bitfield.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb ban.cpp | sed 's/\(ban\)\.o[ :]*/\1.o ban.d : /g' > ban.d; [ -s ban.d ] || rm -f ban.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb act.wizard.cpp | sed 's/\(act.wizard\)\.o[ :]*/\1.o act.wizard.d : /g' > act.wizard.d; [ -s act.wizard.d ] || rm -f act.wizard.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb act.social.cpp | sed 's/\(act.social\)\.o[ :]*/\1.o act.social.d : /g' > act.social.d; [ -s act.social.d ] || rm -f act.social.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb act.other.cpp | sed 's/\(act.other\)\.o[ :]*/\1.o act.other.d : /g' > act.other.d; [ -s act.other.d ] || rm -f act.other.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb act.offensive.cpp | sed 's/\(act.offensive\)\.o[ :]*/\1.o act.offensive.d : /g' > act.offensive.d; [ -s act.offensive.d ] || rm -f act.offensive.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb act.obj.cpp | sed 's/\(act.obj\)\.o[ :]*/\1.o act.obj.d : /g' > act.obj.d; [ -s act.obj.d ] || rm -f act.obj.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb act.movement.cpp | sed 's/\(act.movement\)\.o[ :]*/\1.o act.movement.d : /g' > act.movement.d; [ -s act.movement.d ] || rm -f act.movement.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb act.informative.cpp | sed 's/\(act.informative\)\.o[ :]*/\1.o act.informative.d : /g' > act.informative.d; [ -s act.informative.d ] || rm -f act.informative.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb act.drive.cpp | sed 's/\(act.drive\)\.o[ :]*/\1.o act.drive.d : /g' > act.drive.d; [ -s act.drive.d ] || rm -f act.drive.d
set -e; gcc -MM -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb act.comm.cpp | sed 's/\(act.comm\)\.o[ :]*/\1.o act.comm.d : /g' > act.comm.d; [ -s act.comm.d ] || rm -f act.comm.d
g++  -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb  -c -o act.comm.o act.comm.cpp
g++  -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb  -c -o act.drive.o act.drive.cpp
g++  -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb  -c -o act.informative.o act.informative.cpp
g++  -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb  -c -o act.movement.o act.movement.cpp
g++  -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb  -c -o act.obj.o act.obj.cpp
g++  -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb  -c -o act.offensive.o act.offensive.cpp
g++  -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb  -c -o act.other.o act.other.cpp
g++  -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb  -c -o act.social.o act.social.cpp
g++  -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb  -c -o act.wizard.o act.wizard.cpp
g++  -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb  -c -o ban.o ban.cpp
g++  -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb  -c -o bitfield.o bitfield.cpp
g++  -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb  -c -o boards.o boards.cpp
g++  -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb  -c -o chargen.o chargen.cpp
g++  -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb  -c -o comm.o comm.cpp

<SNIP>

g++  -DDEBUG -Dlinux -Wno-deprecated -I /usr/local/include/ -ggdb  -c -o comm.o comm.cpp
comm.cpp: In function ‘void copyover_recover()’:
comm.cpp:272: warning: deprecated conversion from string constant to ‘char*’
comm.cpp:307: warning: deprecated conversion from string constant to ‘char*’
comm.cpp:312: warning: deprecated conversion from string constant to ‘char*’
comm.cpp: In function ‘int get_max_players()’:
comm.cpp:461: warning: deprecated conversion from string constant to ‘char*’
comm.cpp: In function ‘void game_loop(int)’:
comm.cpp:641: warning: deprecated conversion from string constant to ‘char*’
comm.cpp:758: warning: deprecated conversion from string constant to ‘char*’
comm.cpp:765: warning: deprecated conversion from string constant to ‘char*’
comm.cpp: In function ‘void make_prompt(descriptor_data*)’:
comm.cpp:883: warning: deprecated conversion from string constant to ‘char*’
comm.cpp:885: warning: deprecated conversion from string constant to ‘char*’
comm.cpp:887: warning: deprecated conversion from string constant to ‘char*’
comm.cpp:900: warning: deprecated conversion from string constant to ‘char*’
comm.cpp: In function ‘int new_descriptor(int)’:
comm.cpp:1295: warning: deprecated conversion from string constant to ‘char*’
comm.cpp: In function ‘int perform_subst(descriptor_data*, char*, char*)’:
comm.cpp:1590: error: invalid conversion from ‘const char*’ to ‘char*’
comm.cpp:1601: error: invalid conversion from ‘const char*’ to ‘char*’
comm.cpp: In function ‘void close_socket(descriptor_data*)’:
comm.cpp:1715: warning: deprecated conversion from string constant to ‘char*’
comm.cpp: In function ‘void unrestrict_game(int)’:
comm.cpp:1834: warning: deprecated conversion from string constant to ‘char*’
comm.cpp: In function ‘void free_up_memory(int)’:
comm.cpp:1841: warning: deprecated conversion from string constant to ‘char*’
comm.cpp: In function ‘void hupsig(int)’:
comm.cpp:1851: warning: deprecated conversion from string constant to ‘char*’
comm.cpp: In function ‘void intsig(int)’:
comm.cpp:1858: warning: deprecated conversion from string constant to ‘char*’
comm.cpp: In function ‘void termsig(int)’:
comm.cpp:1865: warning: deprecated conversion from string constant to ‘char*’
comm.cpp: At global scope:
comm.cpp:2245: warning: deprecated conversion from string constant to ‘char*’
make: *** [comm.o] Error 1








 
5/6/2012 10:58:08 AM EDT
[#16]
Quoted:

comm.cpp:1590: error: invalid conversion from ‘const char*’ to ‘char*’

comm.cpp:1601: error: invalid conversion from ‘const char*’ to ‘char*’

 


There is your actual failure (the others are deprecation warnings, but probably ought be fixed) ... const 'something' ––> 'something' is invalid.

ETA: At a guess, someone needs to be copying a string to a fresh array somewheres ... I don't really know shit about C++, though, so I'll sit quietly in my corner now.
5/6/2012 11:23:31 AM EDT
[#17]
Quoted:
I tried installing via apt-get package and it failed, giving me this message:

jrsteensen@mudhost:~/sol_dev/src$ sudo apt-get install gcc-4.1 gcc-4.1-base libstdc++6-4.1-devReading package lists... DoneBuilding dependency tree       Reading state information... DonePackage libstdc++6-4.1-dev is not available, but is referred to by another package.This may mean that the package is missing, has been obsoleted, oris only available from another sourceE: Package 'libstdc++6-4.1-dev' has no installation candidate

So I did the custom build...and no, at this point, rewriting the several thousand lines of code isn't something I have time for. I understand the argument, and once I get it built and evaluated, if I decide to progress with it, I will clean the code up. I know the original coder has last proven it on 4.1.2.

What version of Debian used 4.1.2 natively? i have no problems installing the correct version of debian if its easier. I am just trying to put together a baseline VM under Windows 7.
 


Setting up libstdc++6-4.4-dev