LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   make error (https://www.linuxquestions.org/questions/linux-newbie-8/make-error-421050/)

manicman 03-02-2006 04:32 PM

make error
 
hello i am trying to compile eterm from source but im not having much luck. it configures fine but i get an error when i run make
Code:

$ make
make  all-recursive
make[1]: Entering directory `/home/chris/Eterm-0.9.3'
Making all in src
make[2]: Entering directory `/home/chris/Eterm-0.9.3/src'
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..  -I/usr/include  -g -O2 -c actions.c
rm -f .libs/actions.lo
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -g -O2 -c actions.c    -fPIC -DPIC -o .libs/actions.lo
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -g -O2 -c actions.c -o actions.o >/dev/null 2>&1
mv -f .libs/actions.lo actions.lo
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..  -I/usr/include  -g -O2 -c buttons.c
rm -f .libs/buttons.lo
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -g -O2 -c buttons.c    -fPIC -DPIC -o .libs/buttons.lo
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -g -O2 -c buttons.c -o buttons.o >/dev/null 2>&1
mv -f .libs/buttons.lo buttons.lo
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..  -I/usr/include  -g -O2 -c command.c
rm -f .libs/command.lo
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -g -O2 -c command.c    -fPIC -DPIC -o .libs/command.lo
command.c: In function 'inp_text':
command.c:2560: warning: pointer targets in passing argument 1 of 'tt_write' differ in signedness
command.c: In function 'init_command':
command.c:3005: error: invalid lvalue in assignment
command.c:3007: error: invalid lvalue in assignment
command.c: In function 'main_loop':
command.c:3472: warning: pointer targets in passing argument 1 of 'safe_print_string' differ in signedness
make[2]: *** [command.lo] Error 1
make[2]: Leaving directory `/home/chris/Eterm-0.9.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/chris/Eterm-0.9.3'
make: *** [all-recursive-am] Error 2

ive tried searching google and ive not had much luck has anyone got any ideas what it could be. ive tried useing a deb to install it but eterm didnt work properley so i thought id try and compile it.

timmeke 03-03-2006 02:35 AM

Quote:

command.c: In function 'inp_text':
command.c:2560: warning: pointer targets in passing argument 1 of 'tt_write' differ in signedness
and
Quote:

command.c: In function 'main_loop':
command.c:3472: warning: pointer targets in passing argument 1 of 'safe_print_string' differ in signedness
may be system related. I've read some stories about the default sign for "int" (in C) to be "unsigned" or "signed", depending on the platform. So, the different signedness may come from not explicitly adding the "signed" or "unsigned" prefix to some "int" variables, which is not very platform independent.
In any case, it can be relatively easy to fix.

Quote:

command.c: In function 'init_command':
command.c:3005: error: invalid lvalue in assignment
command.c:3007: error: invalid lvalue in assignment
Have you taken a look at the source code itself? Maybe you can correct the problem yourself.

In any case, the source code you have doesn't compile. It creates errors. So I'd go back to wherever you got it from and download a stable release, that does compile. Or simply complain about the compilation errors you're having.

An alternative would be to correct the mistakes yourself, if you happen to know the C programming language.


All times are GMT -5. The time now is 03:47 AM.