LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Eboard program: warning: deprecated conversion from string constant to ‘char*’ (https://www.linuxquestions.org/questions/linux-software-2/eboard-program-warning-deprecated-conversion-from-string-constant-to-%91char%2A%92-880979/)

kedaha 05-16-2011 06:48 AM

Eboard program: warning: deprecated conversion from string constant to ‘char*’
 
I am trying, using checkinstall to make eboard to enable use of this program with a DGT electronic chessboard (option not available in the program included in the repositories) according to the instructions given here. After the preliminaries, namely downloading and extracting the source from: http://prdownloads.sourceforge.net/e...-1.1.1.tar.bz2
./configure runs fine but (after su-ing to root), both make install & checkinstall fail after numerous warnings about "deprecated conversion" like:
Code:

board.cc:55: warning: deprecated conversion from string constant to ‘char*’
board.cc:157: warning: deprecated conversion from string constant to ‘char*’
board.cc: In function ‘gboolean board_expose_event(GtkWidget*, GdkEventExpose*, void*)’:
board.cc:1414: warning: deprecated conversion from string constant to ‘char*’
bugpane.cc:304: warning: deprecated conversion from string constant to ‘char*’

So can anyone can offer advice on this? Thank you.

knudfl 05-16-2011 08:40 AM

Eboard-1.1.1 : Use g++-4.3 or older , examples :

1) Ubuntu, Debian : Edit the Makefile line 1 to : CXX = g++-4.2
2) Suse : Makefile line 1 : CXX = g++-4.1
3) Fedora, CentOS, RHEL : Makefile line 1 : CXX = g++34


P.S. : Eboard packages (repositories) are available for the most Linux.
Please specify your OS: http://linuxsilo.net/docs/smart-questions_en.html

..

kedaha 05-16-2011 05:54 PM

Thanks knufdl for your reply,
Quote:

Originally Posted by knudfl (Post 4357823)
Eboard-1.1.1 : Use g++-4.3 or older , examples :

1) Ubuntu, Debian : Edit the Makefile line 1 to : CXX = g++-4.2
2) Suse : Makefile line 1 : CXX = g++-4.1
3) Fedora, CentOS, RHEL : Makefile line 1 : CXX = g++34

It worked with g++-4.3 and although there were still a lot of similar warnings as before, I successfully installed the resulting deb package.
Quote:

Originally Posted by knudfl (Post 4357823)
P.S. : Eboard packages (repositories) are available for the most Linux.

True, but it looks like it's necessary to build a package from source to get it to work with a POSIX driver for an electronic board called dgtnix connected to the computer by serial port or USB.
Quote:

Originally Posted by knudfl (Post 4357823)

I specified my OS -Debian Squeeze - in my user profile when I joined the forums so you didn't notice it.

knudfl 05-17-2011 03:05 AM

Quote:

I specified my OS -Debian Squeeze - in my user profile
Sorry, I didn't notice ...

Quote:

g++-4.3 and although there were still a lot of similar warnings
The perfect result comes with g++-4.1 : No warnings.

( Using g++-3.4 : Some completely different warnings.)

kedaha 05-17-2011 07:09 AM

Quote:

Originally Posted by knudfl (Post 4358562)
Sorry, I didn't notice ...



The perfect result comes with g++-4.1 : No warnings.

( Using g++-3.4 : Some completely different warnings.)

Thanks again for your help: I'll try g++-4.1
I'll post again, probably in a separate thread regarding getting eboard to work with the dgtnix POSIX driver but I'll link from here in case anyone's interested.
I have only recently started looking at the subject of software packaging so I'm sometimes a bit overwhelmed by the enormous amount of search results obtained for errors and warnings like these so your help is much appreciated and has saved time.


All times are GMT -5. The time now is 11:17 AM.