eggdrop.org.ru - The Russian Eggdrop Resource


  ОтветитьНовая ТемаОпрос

> compiling egg with custom tcl, creating ur own tcl,not system wide
CoolCold
Отправлено: Jun 20 2004, 02:56 PM
Цитировать


Cool The Cold
***************

Группа: Администрация
Сообщений: 637
Пользователь №: 4
Регистрация: 1-April 04



Вот диалог с Wcc...вроде все понятно
----
Session Start: Sat Aug 30 23:49:13 2003
Session Ident: Wcc
[23:49:13] Session Ident: Wcc (Wcc@ga-cmng-cuda2-c2a-a-87.atlaga.adelphia.net)
[23:49:13] <Wcc> hmm ok
-
[23:49:13] Wcc is Wcc@ga-cmng-cuda2-c2a-a-87.atlaga.adelphia.net * Wcc
[23:49:13] Wcc on @#eggdrop
[23:49:13] Wcc using *.undernet.org The Undernet Underworld
[23:49:13] Wcc End of /WHOIS list.
-
[23:49:38] <CoolCold> my trouble is that I can't compile egg with tcl 8.3.3
[23:49:50] <CoolCold> I've installed tcl 8.3.3 in my home dir
[23:49:57] <CoolCold> and configuring eggdrop
[23:50:02] <CoolCold> with
[23:50:03] <CoolCold> ./configure --with-tcllib=/home/coolcold/tcl/lib/libtcl8.3.so --with-tclinc=/home/coolcold/tcl/include/tcl.h
[23:50:26] <CoolCold> while configure,it finds everything
[23:50:31] <Wcc> did you: export LD_LIBRARY_PATH=/path/to/folder/containing/libtcl ?
[23:50:45] <Wcc> ie export LD_LIBRARY_PATH=/home/coolcold/tcl/lib/
[23:50:56] <CoolCold> but when I try to make - it says that can't load libtcl
[23:51:07] <Wcc> right, you need to run that export line
[23:51:31] <Wcc> thats all in the compiling FAQ doc i think.. but i probably need to make it more cleare what you have to do to install tcl in a home dir
[23:51:41] <CoolCold> is that so... ./configure --help says nothing about this :)
[23:51:52] <Wcc> yeah.. its not configure related really
[23:52:03] <Wcc> its a linker issue
[23:52:13] <CoolCold> ok,wait please till I redo configure
[23:52:27] <Wcc> ..although i could probably make configure do the export.. i should play with that for .16
[23:53:01] <CoolCold> LD_LIBRARY_PATH need full path to file or just dir?
[23:54:05] <CoolCold> [coolcold@paradox monsta3]$ set|grep libtcl
[23:54:05] <CoolCold> LD_LIBRARY_PATH=/home/coolcold/tcl/lib/libtcl8.3.so
[23:54:08] <CoolCold> is this ok?
[23:54:25] <Wcc> yeah
[23:54:26] <Wcc> judt dir
[23:54:30] <Wcc> no no just dir
[23:54:34] <Wcc> LD_LIBRARY_PATH=/home/coolcold/tcl/lib/
[23:54:49] <Wcc> actually no trailing /
[23:55:05] <CoolCold> ok
[23:56:03] <CoolCold> btw is eggdrop maillist working?
[23:56:21] <CoolCold> I have not recieved any messages for a ~5 months
[23:58:26] <CoolCold> wow
[23:58:33] <CoolCold> it've compiled ok!
[23:58:52] <CoolCold> thank you very much!
[00:00:50] <Wcc> np
[00:00:54] <Wcc> i think its working.. i have
Session Close: Sun Aug 31 02:15:41 2003
----

пускаем потом так:
-----
[coolcold@paradox scripts]$ cat ../../zayka2/start
#!/bin/bash
LD_LIBRARY_PATH=/home/coolcold/tcl/lib;export LD_LIBRARY_PATH
cd /home/coolcold/eggi/zayka2/
/home/coolcold/eggi/zayka2/eggdrop
------


--------------------
President of "Dcc is the only way of truth" aliance.
President of "Translit hidden powers" aliance.
---
We don't need no education,we don't need no pub control!
PMUsers Website
Top
fisben
Отправлено: Sep 11 2004, 07:48 AM
Цитировать


Полу-Продвинутый
***

Группа: Участник
Сообщений: 26
Пользователь №: 11
Регистрация: 3-March 04



Устанавливаю tcl на home:
CODE

./configure --prefix=/home/fisben/tcl

возникает ошибка
CODE

..
/home/fisben/eggdrop_files/tcl8.4.6/unix/libtcl8.4.so: undefined reference to `pthread_cond_timedwait'
/home/fisben/eggdrop_files/tcl8.4.6/unix/libtcl8.4.so: undefined reference to `pthread_setspecific'
collect2: ld returned 1 exit status
make: *** [tclsh] error 1


А если
CODE
./configure --prefix=/home/fisben/tcl --disable-shared

ставится без проблем, только вот файла libtcl8.4.so в lib нету, вместо него libtcl8.4.a
Не знаете что может быть?
PMEmail Poster
Top
CoolCold
Отправлено: Sep 11 2004, 08:30 PM
Цитировать


Cool The Cold
***************

Группа: Администрация
Сообщений: 637
Пользователь №: 4
Регистрация: 1-April 04



Eto uzhe vopros po OS/compiler, 4ego ne znaju,togo ne znaju,mozh shrike ili xto eshe *nix addicted otvetit


--------------------
President of "Dcc is the only way of truth" aliance.
President of "Translit hidden powers" aliance.
---
We don't need no education,we don't need no pub control!
PMUsers Website
Top
SeSte
Отправлено: Jan 16 2005, 05:03 PM
Цитировать


Участник
**

Группа: Участник
Сообщений: 17
Пользователь №: 343
Регистрация: 12-January 05



Елки =) откомпили tcl ... взяли *.so файл и положили его /usr/lib (по дефалту его бот там смотреть будет)


--------------------
irc://irc.dalnet.ru/#trytek
PMEmail PosterICQ
Top
Shrike
Отправлено: Jan 17 2005, 06:06 AM
Цитировать


General Kassad
***************

Группа: Администрация
Сообщений: 588
Пользователь №: 1
Регистрация: 30-January 04



это если ld настроено на поиск .so в каталоге пользователя.


--------------------
Я всего лишь полу-Бог...
irc.eggdrop.org.ru:6667 // #eggdrop
http://eggdrop.org.ru
PMEmail PosterUsers WebsiteICQAOL
Top
Dark_Angel666
Отправлено: Jun 12 2006, 10:35 AM
Цитировать


Новичок
*

Группа: Участник
Сообщений: 2
Пользователь №: 1614
Регистрация: 11-June 06



Помогите разобраться в ошибкой на всех tcl > 8.0.* такая ошибка =(
Linux Debian
CODE
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -g3 -DDEBUG_ASSERT -DDEBUG_MEM   -c chanprog.c
chanprog.c: In function 'list_timers':
chanprog.c:660: error: 'global' undeclared (first use in this function)
chanprog.c:660: error: (Each undeclared identifier is reported only once
chanprog.c:660: error: for each function it appears in.)
make[1]: *** [chanprog.o] Ошибка 1
make[1]: Leaving directory `/home/dark/My/src/eggdrop1.6/src'
make: *** [debegg] Ошибка 2
PMEmail Poster
Top
CoolCold
Отправлено: Jun 13 2006, 12:44 AM
Цитировать


Cool The Cold
***************

Группа: Администрация
Сообщений: 637
Пользователь №: 4
Регистрация: 1-April 04



Какой eggdrop ставишь? Может быть есть смысл взять уже скомпилированного из стандартного пакета, в дебиане оно по крайней мере есть.

root@debtest:~# apt-cache -i search eggdrop
eggdrop - Advanced IRC Robot
eggdrop-data - Architecture independent files for eggdrop
epic4-script-thirdeye - Third Eye EPIC script
fisg - Fast IRC Statistics Generator


--------------------
President of "Dcc is the only way of truth" aliance.
President of "Translit hidden powers" aliance.
---
We don't need no education,we don't need no pub control!
PMUsers Website
Top
Sum
Отправлено: Nov 27 2009, 01:12 PM
Цитировать


Новичок
*

Группа: Участник
Сообщений: 5
Пользователь №: 8819
Регистрация: 29-April 08



продолжение

собственно, ./configure с указанием нового пути тикля прошло, но получается следующее
CODE
$ make

This may take a while. Go get some runts.

gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H   -c bg.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H   -c botcmd.c
botcmd.c: In function 'remote_tell_who':
botcmd.c:346: error: 'Tcl_Interp' has no member named 'result'
botcmd.c:354: error: 'Tcl_Interp' has no member named 'result'
*** Error code 1

Stop in /usr/home/eggdrop/eggdrop1.6.19-sp0009/src.


гугл помог, но описание хэндлов в botcmd.c мне не нужно
снова вынужден просить помощи здесь
FreeBSD 7.1/tcl8.61b
PMEmail Poster
Top
Sum
Отправлено: Nov 28 2009, 03:48 PM
Цитировать


Новичок
*

Группа: Участник
Сообщений: 5
Пользователь №: 8819
Регистрация: 29-April 08



Проблема решена smile.gif опишу далее, авось понадобится кому

что у нас было
CODE
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H   -c bg.c
gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H   -c botcmd.c
botcmd.c: In function 'remote_tell_who':
botcmd.c:346: error: 'Tcl_Interp' has no member named 'result'
botcmd.c:354: error: 'Tcl_Interp' has no member named 'result'


вылечили тем, что отредактировали config.h (лежит в папке с eggdrop1.6.19)
и добавили сточку
CODE
#define USE_INTERP_RESULT 1


получили долгожданный 'compiled successfull', но при make словил нового жука
CODE
/usr/bin/ld: cannot find -ltcl86.so eggdrop

$ export LD_LIBRARY_PATH указан был верно, но вот не хватало ему, пусть даже и tcl86.so был в папке указанной, не хотел make воспринимать его, лечили тем, что редактировали Makefile.h (опять таки лежит в eggdrop1.6.19)
искали
CODE
XLIBS =-L/usr/local/lib -ltcl86.so -lm
(или что-то похожее) и убираем расширение файла, получаем
CODE
XLIBS =-L/usr/local/lib -ltcl86 -lm

and run make && make install completed successfull smile.gif

з.ы. спасибо этому, этому и вот этому ресурсу
73!
PMEmail Poster
Top
0 Пользователей читают эту тему (0 Гостей и 0 Скрытых Пользователей)
0 Пользователей:

Настройки Темы ОтветитьНовая ТемаОпрос

 

Упрощённая версия


[ Script Execution time: 0.6657 ]   [ 12 queries used ]   [ GZIP включён ]

  Rambler's Top100    Peterhost    Anarxi.st Shell Hosting Provider      Яндекс цитирования