Strony

poniedziałek, 19 maja 2008

install ekg step by step

Some distracted users have problem with installing EKG (console GG client for unix and linux), because of the fact that libgadu has been separated form EKG project. So... for me :) , and some distracted users... step by step install:

background:

Symptom:
after ./configure and executing make you get sth like this:
cd src && /usr/bin/gmake all
gmake[1]: Entering directory `/root/zrodla/ekg-20080518/src'
gcc -MM -I.. -g -O2 -Wall -DDATADIR=\"/usr/local/share/ekg\" -DSYSCONFDIR=\"/usr/local/etc\" stuff.c commands.c events.c themes.c vars.c dynstuff.c userlist.c ekg.c xmalloc.c mail.c msgqueue.c emoticons.c configfile.c simlite.c ../compat/strlcat.c ../compat/strlcpy.c ui-ncurses.c ui-batch.c ui-none.c log.c comptime.c 1> .depend
gcc -I.. -g -O2 -Wall -DDATADIR=\"/usr/local/share/ekg\" -DSYSCONFDIR=\"/usr/local/etc\" -c -o stuff.o stuff.c
gcc -I.. -g -O2 -Wall -DDATADIR=\"/usr/local/share/ekg\" -DSYSCONFDIR=\"/usr/local/etc\" -c -o commands.o commands.c
gcc -I.. -g -O2 -Wall -DDATADIR=\"/usr/local/share/ekg\" -DSYSCONFDIR=\"/usr/local/etc\" -c -o events.o events.c
events.c: In function 'print_message':
events.c:150: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
events.c:155: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
events.c:177: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
events.c:292: warning: pointer targets in passing argument 5 of 'last_add' differ in signedness
events.c:338: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
events.c:338: warning: pointer targets in passing argument 1 of 'xstrdup' differ in signedness
events.c: In function 'handle_msg':
events.c:530: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
events.c:541: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
events.c:541: warning: pointer targets in passing argument 1 of 'strlcpy' differ in signedness
events.c:621: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
events.c:621: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
events.c:621: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
events.c:621: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
events.c:621: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
events.c:621: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
events.c:621: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
events.c:621: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness
events.c:666: warning: pointer targets in passing argument 3 of 'event_check' differ in signedness
events.c:680: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
events.c: In function 'handle_common':
events.c:961: warning: pointer targets in assignment differ in signedness
events.c:986: warning: pointer targets in assignment differ in signedness
events.c:994: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
events.c:1006: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
events.c:1006: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness
events.c:1006: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness
events.c:1006: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
events.c:1006: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness
events.c:1006: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness
events.c:1037: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
events.c:1037: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
events.c:1037: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
events.c:1037: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
events.c:1037: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
events.c:1037: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
events.c:1038: warning: pointer targets in passing argument 3 of 'event_check' differ in signedness
events.c:1042: warning: pointer targets in passing argument 3 of 'event_check' differ in signedness
events.c:1044: warning: pointer targets in passing argument 3 of 'event_check' differ in signedness
events.c:1120: warning: pointer targets in passing argument 1 of 'xstrdup' differ in signedness
events.c:1152: warning: pointer targets in assignment differ in signedness
events.c: In function 'handle_userlist':
events.c:2144: warning: pointer targets in passing argument 1 of 'cp_to_iso' differ in signedness
events.c: In function 'handle_dcc':
events.c:2443: warning: pointer targets in passing argument 1 of 'iso_to_cp' differ in signedness
events.c:2483: warning: pointer targets in passing argument 1 of 'xstrdup' differ in signedness
events.c:2484: warning: pointer targets in passing argument 1 of 'cp_to_iso' differ in signedness
events.c: In function 'handle_search50':
events.c:2937: warning: pointer targets in passing argument 1 of 'cp_to_iso' differ in signedness
events.c:2938: warning: pointer targets in passing argument 1 of 'cp_to_iso' differ in signedness
events.c:2939: warning: pointer targets in passing argument 1 of 'cp_to_iso' differ in signedness
events.c:2940: warning: pointer targets in passing argument 1 of 'cp_to_iso' differ in signedness
events.c: In function 'handle_image_reply':
events.c:3069: warning: pointer targets in assignment differ in signedness
events.c:3074: warning: pointer targets in assignment differ in signedness
events.c:3076: warning: pointer targets in passing argument 1 of 'xstrdup' differ in signedness
events.c:3076: warning: pointer targets in assignment differ in signedness
events.c:3090: warning: pointer targets in passing argument 1 of 'open' differ in signedness
events.c:3098: warning: pointer targets in passing argument 1 of 'unlink' differ in signedness
events.c:3103: warning: pointer targets in passing argument 1 of 'unlink' differ in signedness
events.c:3111: warning: pointer targets in passing argument 1 of 'unlink' differ in signedness
events.c:3118: warning: pointer targets in passing argument 1 of 'unlink' differ in signedness
events.c:3126: warning: pointer targets in passing argument 3 of 'event_check' differ in signedness
events.c:3182: warning: pointer targets in passing argument 1 of 'iso_to_cp' differ in signedness
events.c: In function 'handle_dcc7_new':
events.c:3227: warning: pointer targets in passing argument 1 of 'xstrdup' differ in signedness
events.c:3228: warning: pointer targets in passing argument 1 of 'cp_to_iso' differ in signedness
events.c:3229: warning: pointer targets in passing argument 1 of 'fix_filename' differ in signedness
gcc -I.. -g -O2 -Wall -DDATADIR=\"/usr/local/share/ekg\" -DSYSCONFDIR=\"/usr/local/etc\" -c -o themes.o themes.c
gcc -I.. -g -O2 -Wall -DDATADIR=\"/usr/local/share/ekg\" -DSYSCONFDIR=\"/usr/local/etc\" -c -o vars.o vars.c
gcc -I.. -g -O2 -Wall -DDATADIR=\"/usr/local/share/ekg\" -DSYSCONFDIR=\"/usr/local/etc\" -c -o dynstuff.o dynstuff.c
gcc -I.. -g -O2 -Wall -DDATADIR=\"/usr/local/share/ekg\" -DSYSCONFDIR=\"/usr/local/etc\" -c -o userlist.o userlist.c
gcc -I.. -g -O2 -Wall -DDATADIR=\"/usr/local/share/ekg\" -DSYSCONFDIR=\"/usr/local/etc\" -c -o ekg.o ekg.c
gcc -I.. -g -O2 -Wall -DDATADIR=\"/usr/local/share/ekg\" -DSYSCONFDIR=\"/usr/local/etc\" -c -o xmalloc.o xmalloc.c
gcc -I.. -g -O2 -Wall -DDATADIR=\"/usr/local/share/ekg\" -DSYSCONFDIR=\"/usr/local/etc\" -c -o mail.o mail.c
gcc -I.. -g -O2 -Wall -DDATADIR=\"/usr/local/share/ekg\" -DSYSCONFDIR=\"/usr/local/etc\" -c -o msgqueue.o msgqueue.c
gcc -I.. -g -O2 -Wall -DDATADIR=\"/usr/local/share/ekg\" -DSYSCONFDIR=\"/usr/local/etc\" -c -o emoticons.o emoticons.c
gcc -I.. -g -O2 -Wall -DDATADIR=\"/usr/local/share/ekg\" -DSYSCONFDIR=\"/usr/local/etc\" -c -o configfile.o configfile.c
gcc -I.. -g -O2 -Wall -DDATADIR=\"/usr/local/share/ekg\" -DSYSCONFDIR=\"/usr/local/etc\" -c -o simlite.o simlite.c
simlite.c: In function 'sim_message_encrypt':
simlite.c:341: warning: value computed is not used
simlite.c: In function 'sim_message_decrypt':
simlite.c:408: warning: value computed is not used
simlite.c:471: warning: value computed is not used
gcc -I.. -g -O2 -Wall -DDATADIR=\"/usr/local/share/ekg\" -DSYSCONFDIR=\"/usr/local/etc\" -c -o ../compat/strlcat.o ../compat/strlcat.c
gcc -I.. -g -O2 -Wall -DDATADIR=\"/usr/local/share/ekg\" -DSYSCONFDIR=\"/usr/local/etc\" -c -o ../compat/strlcpy.o ../compat/strlcpy.c
gcc -I.. -g -O2 -Wall -DDATADIR=\"/usr/local/share/ekg\" -DSYSCONFDIR=\"/usr/local/etc\" -c -o ui-ncurses.o ui-ncurses.c
gcc -I.. -g -O2 -Wall -DDATADIR=\"/usr/local/share/ekg\" -DSYSCONFDIR=\"/usr/local/etc\" -c -o ui-batch.o ui-batch.c
gcc -I.. -g -O2 -Wall -DDATADIR=\"/usr/local/share/ekg\" -DSYSCONFDIR=\"/usr/local/etc\" -c -o ui-none.o ui-none.c
gcc -I.. -g -O2 -Wall -DDATADIR=\"/usr/local/share/ekg\" -DSYSCONFDIR=\"/usr/local/etc\" -c -o log.o log.c
gcc -I.. -g -O2 -Wall -DDATADIR=\"/usr/local/share/ekg\" -DSYSCONFDIR=\"/usr/local/etc\" -c -o comptime.o comptime.c
gcc -I.. -g -O2 -Wall -DDATADIR=\"/usr/local/share/ekg\" -DSYSCONFDIR=\"/usr/local/etc\" -o ekg stuff.o commands.o events.o themes.o vars.o dynstuff.o userlist.o ekg.o xmalloc.o mail.o msgqueue.o emoticons.o configfile.o simlite.o ../compat/strlcat.o ../compat/strlcpy.o ui-ncurses.o ui-batch.o ui-none.o log.o comptime.o -lz -ljpeg -lssl -lcrypto -ldl -lncurses -lgadu
commands.o: In function `cmd_dcc':
/root/zrodla/ekg-20080518/src/commands.c:3183: undefined reference to `gg_dcc7_send_file'
/root/zrodla/ekg-20080518/src/commands.c:3484: undefined reference to `gg_dcc7_reject'
/root/zrodla/ekg-20080518/src/commands.c:3486: undefined reference to `gg_dcc7_free'
/root/zrodla/ekg-20080518/src/commands.c:3445: undefined reference to `gg_dcc7_accept'
/root/zrodla/ekg-20080518/src/commands.c:3418: undefined reference to `gg_dcc7_free'
/root/zrodla/ekg-20080518/src/commands.c:3417: undefined reference to `gg_dcc7_reject'
events.o: In function `check_dcc_limit':
/root/zrodla/ekg-20080518/src/events.c:2320: undefined reference to `gg_dcc7_free'
events.o: In function `handle_dcc7_new':
/root/zrodla/ekg-20080518/src/events.c:3206: undefined reference to `gg_dcc7_reject'
/root/zrodla/ekg-20080518/src/events.c:3207: undefined reference to `gg_dcc7_free'
/root/zrodla/ekg-20080518/src/events.c:3253: undefined reference to `gg_dcc7_reject'
/root/zrodla/ekg-20080518/src/events.c:3254: undefined reference to `gg_dcc7_free'
events.o: In function `handle_dcc7':
/root/zrodla/ekg-20080518/src/events.c:2632: undefined reference to `gg_dcc7_watch_fd'
/root/zrodla/ekg-20080518/src/events.c:2830: undefined reference to `gg_dcc7_free'
/root/zrodla/ekg-20080518/src/events.c:2785: undefined reference to `gg_dcc7_free'
events.o: In function `handle_dcc7_reject':
/root/zrodla/ekg-20080518/src/events.c:3303: undefined reference to `gg_dcc7_free'
events.o: In function `handle_dcc7':
/root/zrodla/ekg-20080518/src/events.c:2637: undefined reference to `gg_dcc7_free'
ekg.o: In function `ekg_wait_for_key':
/root/zrodla/ekg-20080518/src/ekg.c:529: undefined reference to `gg_dcc7_free'
ekg.o:(.rodata+0x190): more undefined references to `gg_dcc7_free' follow
collect2: ld returned 1 exit status
gmake[1]: *** [ekg] Error 1
gmake[1]: Leaving directory `/root/zrodla/ekg-20080518/src'
make: *** [ekg] Error 2

solution:

install libgadu

go into libgadu directory and do:
./configure
make && make install

there will be a very important line in make install output:
Libraries have been installed in:
/usr/local/lib

then do like this:
export CFLAGS=-I/usr/local/include/
export LDFLAGS=-L/usr/local/lib

(all depends at dir you have in output of make install)

then simply install the ekg by executing in ekg sources dir
./configure
make && make install

that's all!

CAUTION:

  • be sure that you are doing this in the same terminal - export isn't succeeded throught sessions

  • if this does not work, try to find where you have libgadu.h file (and this dir need to be set in CFLAGS), and libgadu.so (and this dir has to be set in LDFLAGS).


in any problems :) - just ask :)

0 komentarze: