Страница 1 из 1

Simple Samba Commander помогите установить

Добавлено: 2007-08-08 12:22:14
Baru
Помогите пожайлуста с установкой этой проги, ее нет в портах.
Берется тут http://smbc.airm.net/1.2.2/smbc-1.2.2.tgz
Делал так:

Код: Выделить всё

tar zxvf smbc-1.2.2.tgz
/usr/home/baru/>cd smbc-1.2.2
/usr/home/baru/smbc-1.2.2/>./configure --prefix=/usr/local/smbc
... skiped ...
Configure finished.
*** setting ****************************************
Install prefix           : /usr/local/smbc
smbc_set_context         : no
smbc_new_context         : no
****************************************************

*** for developers *********************************
debug message            : no
compile for ggdb message : no
****************************************************
Now you can run
make

/usr/home/baru/smbc-1.2.2/>make
и тут грабли

Код: Выделить всё

smbc.c:6860: error: array size missing in 'Roptions'
smbc.c:6860: error: storage size of 'Roptions' isn't known
smbc.c:6933: error: `Rpopt' undeclared (first use in this function)
smbc.c:6933: warning: implicit declaration of function `poptGetContext'
smbc.c:6933: error: `POPT_CONTEXT_KEEP_FIRST' undeclared (first use in this function)
smbc.c:6934: warning: implicit declaration of function `poptSetOtherOptionHelp'
smbc.c:6936: warning: implicit declaration of function `poptGetNextOpt'
smbc.c:6938: error: `POPT_ERROR_BADNUMBER' undeclared (first use in this function)
smbc.c:6942: warning: implicit declaration of function `poptPrintHelp'
smbc.c:6966: warning: implicit declaration of function `poptBadOption'
smbc.c:6966: error: `POPT_BADOPTION_NOALIAS' undeclared (first use in this function)
smbc.c:6966: warning: implicit declaration of function `poptStrerror'
smbc.c:6966: warning: format argument is not a pointer (arg 3)
smbc.c:6966: warning: format argument is not a pointer (arg 4)
smbc.c:6969: warning: implicit declaration of function `poptFreeContext'
smbc.c:6987: error: `SIGWINCH' undeclared (first use in this function)
smbc.c:6860: warning: unused variable `Roptions'
*** Error code 1

Stop in /usr/home/baru/smbc-1.2.2/src.
*** Error code 1

Stop in /usr/home/baru/smbc-1.2.2.
*** Error code 1
Программа очень удобна(по скринам) для работы с smb шарами.
Midnight Commander как то не очень работает с шарами,
а smbclient`ом не удобно.

Re: Simple Samba Commander помогите установить

Добавлено: 2007-08-08 12:59:28
Alex Keda
напиши порт.
закоммить.
и будет щассье не тока тебе но и всем

Re: Simple Samba Commander помогите установить

Добавлено: 2007-08-08 13:20:00
Baru
Шас махом сделаю :D

Re: Simple Samba Commander помогите установить

Добавлено: 2007-08-08 14:38:04
Alex Keda
оно совсем несложно.
берёшь за образец похожий порт попроще - и всё.
правишь по мелочи, файлики прописывать.

Re: Simple Samba Commander помогите установить

Добавлено: 2007-08-08 14:58:06
Baru
Да я уже читаю вот это http://www.opennet.ru/docs/BSD/porters- ... /book.html
это действительно неочень сложно.
Но перед тем как создовать из него порт надо чтобы программа еще и собиралась.
Этой штуке надо похоже исходники popt и libsmbclient, после некоторых извратов добился этого:

Код: Выделить всё

/home/baru/smbc-1.2.2/>make
make  all-recursive
Making all in m4
Making all in intl
Making all in po
Making all in src
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -DLOCALEDIR=\"/usr/local/smbc/share/locale\"   -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wall   -O3 -MT smbc-smbc.o -MD -MP -MF ".deps/smbc-smbc.Tpo" -c -o smbc-smbc.o `test -f 'smbc.c' || echo './'`smbc.c;  then mv -f ".deps/smbc-smbc.Tpo" ".deps/smbc-smbc.Po"; else rm -f ".deps/smbc-smbc.Tpo"; exit 1; fi
smbc.c: In function `RmanageList':
smbc.c:1178: error: syntax error before "RpreviousAction"
smbc.c:1375: error: `RpreviousAction' undeclared (first use in this function)
smbc.c:1375: error: (Each undeclared identifier is reported only once
smbc.c:1375: error: for each function it appears in.)
smbc.c:1375: warning: implicit declaration of function `signal'
smbc.c:1375: error: `SIGALRM' undeclared (first use in this function)
smbc.c: In function `RpreSort':
smbc.c:2394: warning: implicit declaration of function `kill'
smbc.c:2394: error: `SIGTERM' undeclared (first use in this function)
smbc.c: In function `RcreateFindListIndex':
smbc.c:5534: error: `SIGHUP' undeclared (first use in this function)
smbc.c: In function `RtryLockFileAndCreateIndexFile':
smbc.c:6777: error: `SIGCHLD' undeclared (first use in this function)
smbc.c:6778: error: `SIGSEGV' undeclared (first use in this function)
smbc.c:6779: error: `SIGTERM' undeclared (first use in this function)
smbc.c:6780: error: `SIGINT' undeclared (first use in this function)
smbc.c:6781: error: `SIGALRM' undeclared (first use in this function)
smbc.c: In function `main':
smbc.c:6987: error: `SIGWINCH' undeclared (first use in this function)
*** Error code 1

Stop in /usr/home/baru/smbc-1.2.2/src.
*** Error code 1

Stop in /usr/home/baru/smbc-1.2.2.
*** Error code 1

Stop in /usr/home/baru/smbc-1.2.2.

чего ей еще не хватает? :?

Re: Simple Samba Commander помогите установить

Добавлено: 2007-08-08 15:00:17
Alex Keda

Код: Выделить всё

RpreviousAction
вот эта функция должна откуда-то заинклюдистя, если я правильно понял...
=======
лучше собирай сразу в портах - там многие вещи в принципе гладче проходяит

Re: Simple Samba Commander помогите установить

Добавлено: 2007-08-08 15:06:03
Baru
лучше собирай сразу в портах - там многие вещи в принципе гладче проходяит
Это как это?

Re: Simple Samba Commander помогите установить

Добавлено: 2007-08-08 15:24:41
Alex Keda
порт рисовать начинай и собирай штатно