Debian testing: Compile error svxlink-050814

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Debian testing: Compile error svxlink-050814

Drew Keating
I'm not sure what's wrong. I'm running the latest testing version of
Debian. Here's the output of make where the error is:

-------------- svxlink --------------
-------------- svxlink/svxlink --------------
--- Compiling EventHandler.cpp...
EventHandler.cpp: In constructor 'EventHandler::EventHandler(const
std::string&, Logic*)':
EventHandler.cpp:135: error: invalid conversion from 'int (*)(void*,
Tcl_Interp*, int, const char**)' to 'int (*)(void*, Tcl_Interp*, int,
char**)'
EventHandler.cpp:135: error:   initializing argument 3 of
'Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, char*, int (*)(void*,
Tcl_Interp*, int, char**), void*, void (*)(void*))'
EventHandler.cpp:136: error: invalid conversion from 'int (*)(void*,
Tcl_Interp*, int, const char**)' to 'int (*)(void*, Tcl_Interp*, int,
char**)'
EventHandler.cpp:136: error:   initializing argument 3 of
'Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, char*, int (*)(void*,
Tcl_Interp*, int, char**), void*, void (*)(void*))'
EventHandler.cpp:137: error: invalid conversion from 'int (*)(void*,
Tcl_Interp*, int, const char**)' to 'int (*)(void*, Tcl_Interp*, int,
char**)'
EventHandler.cpp:137: error:   initializing argument 3 of
'Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, char*, int (*)(void*,
Tcl_Interp*, int, char**), void*, void (*)(void*))'
EventHandler.cpp: In member function 'bool EventHandler::initialize()':
EventHandler.cpp:154: error: invalid conversion from 'const char*' to 'char*'
EventHandler.cpp:154: error:   initializing argument 2 of 'int
Tcl_EvalFile(Tcl_Interp*, char*)'
EventHandler.cpp: In member function 'void
EventHandler::setVariable(const std::string&, const std::string&)':
EventHandler.cpp:167: error: invalid conversion from 'const char*' to 'char*'
EventHandler.cpp:167: error:   initializing argument 2 of 'char*
Tcl_SetVar(Tcl_Interp*, char*, char*, int)'
EventHandler.cpp:167: error: invalid conversion from 'const char*' to 'char*'
EventHandler.cpp:167: error:   initializing argument 3 of 'char*
Tcl_SetVar(Tcl_Interp*, char*, char*, int)'
EventHandler.cpp: In member function 'bool
EventHandler::processEvent(const std::string&)':
EventHandler.cpp:173: error: invalid conversion from 'const char*' to 'char*'
EventHandler.cpp:173: error:   initializing argument 2 of 'int
Tcl_Eval(Tcl_Interp*, char*)'
make[3]: *** [EventHandler.o] Error 1
make[2]: *** [all] Error 2


Thanks for any help.
--
Drew Keating


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Svxlink-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/svxlink-devel
Reply | Threaded
Open this post in threaded view
|

Re: Debian testing: Compile error svxlink-050814

Tobias Blomberg
Your version of TCL is incompatible with SvxLink. The version I run under
Fedora Core 4 is 8.4.9. What is your version of TCL? If it's a different
version, can you find debian packages with something like version 8.4.9?
Otherwise you might have to compile and install 8.4.9 in parallel with the
existing version and point SvxLink to use that instead of the default one.

73 de SM0SVX / Tobias


On Sunday 11 September 2005 20.49, Drew Keating wrote:

> I'm not sure what's wrong. I'm running the latest testing version of
> Debian. Here's the output of make where the error is:
>
> -------------- svxlink --------------
> -------------- svxlink/svxlink --------------
> --- Compiling EventHandler.cpp...
> EventHandler.cpp: In constructor 'EventHandler::EventHandler(const
> std::string&, Logic*)':
> EventHandler.cpp:135: error: invalid conversion from 'int (*)(void*,
> Tcl_Interp*, int, const char**)' to 'int (*)(void*, Tcl_Interp*, int,
> char**)'
> EventHandler.cpp:135: error:   initializing argument 3 of
> 'Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, char*, int (*)(void*,
> Tcl_Interp*, int, char**), void*, void (*)(void*))'
> EventHandler.cpp:136: error: invalid conversion from 'int (*)(void*,
> Tcl_Interp*, int, const char**)' to 'int (*)(void*, Tcl_Interp*, int,
> char**)'
> EventHandler.cpp:136: error:   initializing argument 3 of
> 'Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, char*, int (*)(void*,
> Tcl_Interp*, int, char**), void*, void (*)(void*))'
> EventHandler.cpp:137: error: invalid conversion from 'int (*)(void*,
> Tcl_Interp*, int, const char**)' to 'int (*)(void*, Tcl_Interp*, int,
> char**)'
> EventHandler.cpp:137: error:   initializing argument 3 of
> 'Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, char*, int (*)(void*,
> Tcl_Interp*, int, char**), void*, void (*)(void*))'
> EventHandler.cpp: In member function 'bool EventHandler::initialize()':
> EventHandler.cpp:154: error: invalid conversion from 'const char*' to
> 'char*' EventHandler.cpp:154: error:   initializing argument 2 of 'int
> Tcl_EvalFile(Tcl_Interp*, char*)'
> EventHandler.cpp: In member function 'void
> EventHandler::setVariable(const std::string&, const std::string&)':
> EventHandler.cpp:167: error: invalid conversion from 'const char*' to
> 'char*' EventHandler.cpp:167: error:   initializing argument 2 of 'char*
> Tcl_SetVar(Tcl_Interp*, char*, char*, int)'
> EventHandler.cpp:167: error: invalid conversion from 'const char*' to
> 'char*' EventHandler.cpp:167: error:   initializing argument 3 of 'char*
> Tcl_SetVar(Tcl_Interp*, char*, char*, int)'
> EventHandler.cpp: In member function 'bool
> EventHandler::processEvent(const std::string&)':
> EventHandler.cpp:173: error: invalid conversion from 'const char*' to
> 'char*' EventHandler.cpp:173: error:   initializing argument 2 of 'int
> Tcl_Eval(Tcl_Interp*, char*)'
> make[3]: *** [EventHandler.o] Error 1
> make[2]: *** [all] Error 2
>
>
> Thanks for any help.


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Svxlink-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/svxlink-devel
Reply | Threaded
Open this post in threaded view
|

Re: Debian testing: Compile error svxlink-050814

Drew Keating
In reply to this post by Drew Keating
Thanks for the help Tobias. I removed all versions of tcl except
version 8.4.9. and I get the following error now.

-------------- svxlink/svxlink --------------
make[3]: *** No rule to make target `/usr/include/tcl.h', needed by
`depend/EventHandler.dpp'.  Stop.
make[2]: *** [all] Error 2
-------------- svxlink/modules --------------
-------------- svxlink/modules/help --------------
-------------- svxlink/modules/parrot --------------
-------------- svxlink/modules/echolink --------------
make[4]: *** No rule to make target `/usr/include/tcl.h', needed by
`depend/QsoImpl.dpp'.  Stop.
make[3]: *** [all] Error 2
make[2]: *** [all] Error 2
make[1]: *** [all] Error 2
make: *** [all] Error 2

Is there a link to tcl that it's looking for? I had to do the
following command for it to work at all before.

ln -sf /usr/lib/libtcl8.4.so /usr/lib/libtcl.so

My tcl.h is located here: /usr/include/tcl8.4/tcl.h

Thanks for any help.
--
Drew Keating


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Svxlink-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/svxlink-devel
Reply | Threaded
Open this post in threaded view
|

Re: Re: Debian testing: Compile error svxlink-050814

Tobias Blomberg
On Wednesday 14 September 2005 20.36, Drew Keating wrote:

> Thanks for the help Tobias. I removed all versions of tcl except
> version 8.4.9. and I get the following error now.
>
> -------------- svxlink/svxlink --------------
> make[3]: *** No rule to make target `/usr/include/tcl.h', needed by
> `depend/EventHandler.dpp'.  Stop.
> make[2]: *** [all] Error 2
> -------------- svxlink/modules --------------
> -------------- svxlink/modules/help --------------
> -------------- svxlink/modules/parrot --------------
> -------------- svxlink/modules/echolink --------------
> make[4]: *** No rule to make target `/usr/include/tcl.h', needed by
> `depend/QsoImpl.dpp'.  Stop.
> make[3]: *** [all] Error 2
> make[2]: *** [all] Error 2
> make[1]: *** [all] Error 2
> make: *** [all] Error 2
>
> Is there a link to tcl that it's looking for? I had to do the
> following command for it to work at all before.
>
> ln -sf /usr/lib/libtcl8.4.so /usr/lib/libtcl.so
>
> My tcl.h is located here: /usr/include/tcl8.4/tcl.h

Well, my tcl.h is located in /usr/include so I don't have to do anything like
that. Try to edit the file makefile.cfg in the top level directory of the
SvxLink source tree. Find the INCPATH variable and add -I/usr/include/tcl8.4

Then:
cd svxlink
make realclean
make

A quick and dirty fix that might work...

73 de SM0SVX / Tobias


>
> Thanks for any help.
> --
> Drew Keating
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server.
> Download it for free - -and be entered to win a 42" plasma tv or your very
> own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
> _______________________________________________
> Svxlink-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/svxlink-devel


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Svxlink-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/svxlink-devel