Strona 2 z 2

: 14 listopada 2008, 10:02
autor: beel
No to jajco kolejne ...

Przy "make" wywalał mi:

Kod: Zaznacz cały

/usr/bin/ld: cannot find -lssl
collect2: ld returned 1 exit status
make: *** [install_make] Błąd 1
No to poszedłem za ciosem, więc "aptitude search ssl" no i z tego co pamiętam zainstalowałem libssl-dev.. ale dalej coś chrzani że niezdefiniowane referencje ... itp.. zobaczcie sami:

Kod: Zaznacz cały

$ make
if ! grep CONFIG_DIR src/config.h > /dev/null; then echo "#define  CONFIG_DIR  \"/usr/local/share\"" >> src/config.h;  fi
if ! test -f ggbot; then gcc -I.. -I/usr/include/readline -I/usr/local/include/python2.5 -I/usr/local/include -o ggbot src/ggbot.c /usr/local/lib/libgadu.a    -lssl -lcrypto -ltermcap  -lreadline -L/usr/local/lib -L/usr/local/lib/python2.5/config -lpython2.5 -lutil  -lm -g -O2 -pthread -Xlinker -export-dynamic  ; fi
In file included from src/ggbot.c:105:
src/users.c: In function ‘get_users’:
src/users.c:216: warning: cast from pointer to integer of different size
src/users.c:216: warning: cast from pointer to integer of different size
In file included from src/ggbot.c:107:
src/timers.c: In function ‘calculate_time’:
src/timers.c:345: warning: comparison between pointer and integer
src/timers.c:359: warning: comparison between pointer and integer
src/timers.c:384: warning: comparison between pointer and integer
src/timers.c:409: warning: comparison between pointer and integer
In file included from src/ggbot.c:112:
src/conf.c: In function ‘config_load’:
src/conf.c:94: warning: cast from pointer to integer of different size
src/conf.c:95: warning: cast from pointer to integer of different size
In file included from src/ggbot.c:117:
src/protocol.c: In function ‘ggbot_connect’:
src/protocol.c:219: warning: cast from pointer to integer of different size
src/protocol.c:220: warning: cast from pointer to integer of different size
/usr/local/lib/python2.5/config/libpython2.5.a(posixmodule.o): In function `posix_tmpnam':
/home/bialy/download/Python-2.5.2/./Modules/posixmodule.c:6862: warning: the use of `tmpnam_r' is dangerous, better use `mkstemp'
/usr/local/lib/python2.5/config/libpython2.5.a(posixmodule.o): In function `posix_tempnam':
/home/bialy/download/Python-2.5.2/./Modules/posixmodule.c:6817: warning: the use of `tempnam' is dangerous, better use `mkstemp'
/usr/local/lib/libreadline.so: undefined reference to `PC'
/usr/local/lib/libreadline.so: undefined reference to `tgetflag'
/usr/local/lib/libreadline.so: undefined reference to `tgetent'
/usr/local/lib/libreadline.so: undefined reference to `UP'
/usr/local/lib/libreadline.so: undefined reference to `tputs'
/usr/local/lib/libreadline.so: undefined reference to `tgoto'
/usr/local/lib/libreadline.so: undefined reference to `tgetnum'
/usr/local/lib/libreadline.so: undefined reference to `BC'
/usr/local/lib/libreadline.so: undefined reference to `tgetstr'
collect2: ld returned 1 exit status
make: *** [install_make] Błąd 1

: 14 listopada 2008, 11:11
autor: Utumno
Takie problemy rozwiazuje sie w 5 minut w ten sposob:

1) google na +tgetent +tgetnum
2) wchodzimy na pierwszy znaleziony link : http://publib.boulder.ibm.com/infocente ... getent.htm
3) Widzimy ze te funkcje sa zdefiniowane w pliku naglowkowym 'curses.h'
4) apt-file search curses.h
5) i stad widzimy, ze pakiet ktorego Ci brakuje to

libncurses5-dev albo
libncursesw4-dev

: 14 listopada 2008, 11:24
autor: beel
Mam libncurses5-dev:

Kod: Zaznacz cały

# aptitude search libncurses
v   libncurses-dev                          -
p   libncurses-gst                          - Ncurses bindings for GNU Smalltalk
p   libncurses-ruby                         - ruby Extension for the ncurses C library
p   libncurses-ruby1.8                      - ruby Extension for the ncurses C library
p   libncurses-ruby1.9                      - ruby Extension for the ncurses C library
i   libncurses5                             - shared libraries for terminal handling
p   libncurses5-dbg                         - debugging/profiling libraries for ncurses
i A libncurses5-dev                         - developer's libraries and docs for ncurses
i   libncursesw5                            - shared libraries for terminal handling (wide char
p   libncursesw5-dbg                        - debugging/profiling libraries for ncurses
p   libncursesw5-dev                        - developer's libraries for ncursesw
Utumno pisze:4) apt-file search curses.h

Kod: Zaznacz cały

# apt-file search curses.h
bash: apt-file: command not found
:shock:

: 14 listopada 2008, 11:26
autor: Utumno

Kod: Zaznacz cały

apt-get install apt-file
apt-file update
- polecenie do wynajdywania, w jakim pakiecie znajduje sie dany plik.

[Dodano: 2008-11-14, 18:29]

Poza tym, NIE masz zainstalowanego libncursesw5-dev.

: 14 listopada 2008, 11:50
autor: beel
Pozatym, NIE masz zainstalowanego libncursesw5-dev.
Zainstalowałem.
Utumno pisze:Takie problemy rozwiazuje sie w 5 minut w ten sposob:
Niestety nie, nie pomogło. Wciąż ten sam błąd.

: 14 listopada 2008, 12:02
autor: Utumno
'tgetent' i 'tgetnum' ciagle nie widzi? Wklej log.

Co to w ogole za programy?

: 14 listopada 2008, 19:44
autor: beel
Utumno pisze:'tgetent' i 'tgetnum' ciagle nie widzi? Wklej log.
Wygląda na to, że nie widzi, bo:

Kod: Zaznacz cały

/usr/local/lib/libreadline.so: undefined reference to `PC'
/usr/local/lib/libreadline.so: undefined reference to `tgetflag'
/usr/local/lib/libreadline.so: undefined reference to `tgetent'
/usr/local/lib/libreadline.so: undefined reference to `UP'
/usr/local/lib/libreadline.so: undefined reference to `tputs'
/usr/local/lib/libreadline.so: undefined reference to `tgoto'
/usr/local/lib/libreadline.so: undefined reference to `tgetnum'
/usr/local/lib/libreadline.so: undefined reference to `BC'
/usr/local/lib/libreadline.so: undefined reference to `tgetstr'
collect2: ld returned 1 exit status
make: *** [install_make] Błąd 1
Jaki log cie interesuje, bo /var/sys/syslog nic ciekawego nie pokazuje no ale mogę wkleić ..
Utumno pisze:Co to w ogole za programy?
Jest to GGbot oparty o libgadu.