не компилится SAMBA

Проблемы с установкой, настройкой и работой системных и сетевых программ.

Модераторы: GRooVE, alexco

Правила форума
Убедительная просьба юзать теги [code] при оформлении листингов.
Сообщения не оформленные должным образом имеют все шансы быть незамеченными.
guest
проходил мимо

не компилится SAMBA

Непрочитанное сообщение guest » 2007-07-24 10:50:44

Проблема, не ставиться из портов Samba,

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

Compiling libsmb/clikrb5.c
libsmb/clikrb5.c: In function `krb5_set_real_time':
libsmb/clikrb5.c:128: error: dereferencing pointer to incomplete type
libsmb/clikrb5.c:129: error: dereferencing pointer to incomplete type
libsmb/clikrb5.c: In function `create_kerberos_key_from_string_direct':
libsmb/clikrb5.c:213: error: syntax error before "salt"
libsmb/clikrb5.c:215: error: `salt' undeclared (first use in this function)
libsmb/clikrb5.c:215: error: (Each undeclared identifier is reported only once
libsmb/clikrb5.c:215: error: for each function it appears in.)
libsmb/clikrb5.c: In function `smb_krb5_renew_ticket':
libsmb/clikrb5.c:1161: error: syntax error before "flags"
libsmb/clikrb5.c:1163: error: `krb5_realm' undeclared (first use in this function)
libsmb/clikrb5.c:1163: error: `client_realm' undeclared (first use in this function)
libsmb/clikrb5.c:1194: error: `flags' undeclared (first use in this function)
The following command failed:
cc -I. -I/usr/ports/net/samba3/work/samba-3.0.25a/source  -O2 -fno-strict-aliasing -pipe -D_SAMBA_BUILD_=3 -I/usr/ports/net/samba3/work/samba-3.0.25a/source/popt -I/usr/ports/net/samba3/work/samba-3.0.25a/source/iniparser/src -Iinclude -I./include  -I. -I. -I./lib/replace -I./lib/talloc -I./tdb/include -I./libaddns -I./librpc -DHAVE_CONFIG_H  -I/usr/local/include -DLDAP_DEPRECATED    -I/usr/ports/net/samba3/work/samba-3.0.25a/source/lib -D_SAMBA_BUILD_=3 -fPIC -DPIC -c libsmb/clikrb5.c -o libsmb/clikrb5.o
*** Error code 1

Stop in /usr/ports/net/samba3/work/samba-3.0.25a/source.
*** Error code 1

Stop in /usr/ports/net/samba3.
*** Error code 1

Stop in /usr/ports/net/samba3.

krb5 стоит, опции - ADS, CUPS, ACL, WINBIND, QUOTAS

Хостинговая компания Host-Food.ru
Хостинг HostFood.ru
 

Услуги хостинговой компании Host-Food.ru

Хостинг HostFood.ru

Тарифы на хостинг в России, от 12 рублей: https://www.host-food.ru/tariffs/hosting/
Тарифы на виртуальные сервера (VPS/VDS/KVM) в РФ, от 189 руб.: https://www.host-food.ru/tariffs/virtualny-server-vps/
Выделенные сервера, Россия, Москва, от 2000 рублей (HP Proliant G5, Intel Xeon E5430 (2.66GHz, Quad-Core, 12Mb), 8Gb RAM, 2x300Gb SAS HDD, P400i, 512Mb, BBU):
https://www.host-food.ru/tariffs/vydelennyi-server-ds/
Недорогие домены в популярных зонах: https://www.host-food.ru/domains/

Аватара пользователя
Alex Keda
стреляли...
Сообщения: 35200
Зарегистрирован: 2004-10-18 14:25:19
Откуда: Made in USSR
Контактная информация:

Re: Еще раз SAMBA

Непрочитанное сообщение Alex Keda » 2007-07-24 12:29:18

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

uname -a
Убей их всех! Бог потом рассортирует...

guest
проходил мимо

Re: Еще раз SAMBA

Непрочитанное сообщение guest » 2007-07-24 13:15:31

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

# uname -a
FreeBSD laptop.group 6.2-STABLE FreeBSD 6.2-STABLE #1: Thu May 10 10:29:34 OMSST 2007     user@laptop.group:/usr/obj/usr/src/sys/core  i386
#

Аватара пользователя
Alex Keda
стреляли...
Сообщения: 35200
Зарегистрирован: 2004-10-18 14:25:19
Откуда: Made in USSR
Контактная информация:

Re: Еще раз SAMBA

Непрочитанное сообщение Alex Keda » 2007-07-24 13:36:02

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

/usr/ports/security/heimdal
стоит?
Убей их всех! Бог потом рассортирует...

guest
проходил мимо

Re: Еще раз SAMBA

Непрочитанное сообщение guest » 2007-07-24 15:24:26

поставил:) теперь такое...

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

Compiling utils/net_dns.c
In file included from ./libaddns/dns.h:78,
                 from utils/net_dns.c:26:
/usr/local/include/gssapi.h:64: error: conflicting types for 'gss_name_t'
/usr/include/gssapi/gssapi.h:58: error: previous declaration of 'gss_name_t' was here
/usr/local/include/gssapi.h:67: error: conflicting types for 'gss_ctx_id_t'
/usr/include/gssapi/gssapi.h:56: error: previous declaration of 'gss_ctx_id_t' was here
/usr/local/include/gssapi.h:69: error: redefinition of `struct gss_OID_desc_struct'
/usr/local/include/gssapi.h:74: error: redefinition of `struct gss_OID_set_desc_struct'
/usr/local/include/gssapi.h:86: error: conflicting types for 'gss_cred_id_t'
/usr/include/gssapi/gssapi.h:57: error: previous declaration of 'gss_cred_id_t' was here
/usr/local/include/gssapi.h:88: error: redefinition of `struct gss_buffer_desc_struct'
/usr/local/include/gssapi.h:93: error: redefinition of `struct gss_channel_bindings_struct'
/usr/local/include/gssapi.h:458: error: conflicting types for 'gss_acquire_cred'
/usr/include/gssapi/gssapi.h:429: error: previous declaration of 'gss_acquire_cred' was here
/usr/local/include/gssapi.h:458: error: conflicting types for 'gss_acquire_cred'
/usr/include/gssapi/gssapi.h:429: error: previous declaration of 'gss_acquire_cred' was here
/usr/local/include/gssapi.h:463: error: conflicting types for 'gss_release_cred'
/usr/include/gssapi/gssapi.h:434: error: previous declaration of 'gss_release_cred' was here
/usr/local/include/gssapi.h:463: error: conflicting types for 'gss_release_cred'
/usr/include/gssapi/gssapi.h:434: error: previous declaration of 'gss_release_cred' was here
/usr/local/include/gssapi.h:479: error: conflicting types for 'gss_init_sec_context'
/usr/include/gssapi/gssapi.h:451: error: previous declaration of 'gss_init_sec_context' was here
/usr/local/include/gssapi.h:479: error: conflicting types for 'gss_init_sec_context'
/usr/include/gssapi/gssapi.h:451: error: previous declaration of 'gss_init_sec_context' was here
/usr/local/include/gssapi.h:493: error: conflicting types for 'gss_accept_sec_context'
/usr/include/gssapi/gssapi.h:466: error: previous declaration of 'gss_accept_sec_context' was here
/usr/local/include/gssapi.h:493: error: conflicting types for 'gss_accept_sec_context'
/usr/include/gssapi/gssapi.h:466: error: previous declaration of 'gss_accept_sec_context' was here
/usr/local/include/gssapi.h:499: error: conflicting types for 'gss_process_context_token'
/usr/include/gssapi/gssapi.h:472: error: previous declaration of 'gss_process_context_token' was here
/usr/local/include/gssapi.h:499: error: conflicting types for 'gss_process_context_token'
/usr/include/gssapi/gssapi.h:472: error: previous declaration of 'gss_process_context_token' was here
/usr/local/include/gssapi.h:505: error: conflicting types for 'gss_delete_sec_context'
/usr/include/gssapi/gssapi.h:478: error: previous declaration of 'gss_delete_sec_context' was here
/usr/local/include/gssapi.h:505: error: conflicting types for 'gss_delete_sec_context'
/usr/include/gssapi/gssapi.h:478: error: previous declaration of 'gss_delete_sec_context' was here
/usr/local/include/gssapi.h:511: error: conflicting types for 'gss_context_time'
/usr/include/gssapi/gssapi.h:484: error: previous declaration of 'gss_context_time' was here
/usr/local/include/gssapi.h:511: error: conflicting types for 'gss_context_time'
/usr/include/gssapi/gssapi.h:484: error: previous declaration of 'gss_context_time' was here
/usr/local/include/gssapi.h:519: error: conflicting types for 'gss_get_mic'
/usr/include/gssapi/gssapi.h:492: error: previous declaration of 'gss_get_mic' was here
/usr/local/include/gssapi.h:519: error: conflicting types for 'gss_get_mic'
/usr/include/gssapi/gssapi.h:492: error: previous declaration of 'gss_get_mic' was here
/usr/local/include/gssapi.h:527: error: conflicting types for 'gss_verify_mic'
/usr/include/gssapi/gssapi.h:500: error: previous declaration of 'gss_verify_mic' was here
/usr/local/include/gssapi.h:527: error: conflicting types for 'gss_verify_mic'
/usr/include/gssapi/gssapi.h:500: error: previous declaration of 'gss_verify_mic' was here
/usr/local/include/gssapi.h:537: error: conflicting types for 'gss_wrap'
/usr/include/gssapi/gssapi.h:510: error: previous declaration of 'gss_wrap' was here
/usr/local/include/gssapi.h:537: error: conflicting types for 'gss_wrap'
/usr/include/gssapi/gssapi.h:510: error: previous declaration of 'gss_wrap' was here
/usr/local/include/gssapi.h:546: error: conflicting types for 'gss_unwrap'
/usr/include/gssapi/gssapi.h:519: error: previous declaration of 'gss_unwrap' was here
/usr/local/include/gssapi.h:546: error: conflicting types for 'gss_unwrap'
/usr/include/gssapi/gssapi.h:519: error: previous declaration of 'gss_unwrap' was here
/usr/local/include/gssapi.h:567: error: conflicting types for 'gss_compare_name'
/usr/include/gssapi/gssapi.h:540: error: previous declaration of 'gss_compare_name' was here
/usr/local/include/gssapi.h:567: error: conflicting types for 'gss_compare_name'
/usr/include/gssapi/gssapi.h:540: error: previous declaration of 'gss_compare_name' was here
/usr/local/include/gssapi.h:574: error: conflicting types for 'gss_display_name'
/usr/include/gssapi/gssapi.h:547: error: previous declaration of 'gss_display_name' was here
/usr/local/include/gssapi.h:574: error: conflicting types for 'gss_display_name'
/usr/include/gssapi/gssapi.h:547: error: previous declaration of 'gss_display_name' was here
/usr/local/include/gssapi.h:581: error: conflicting types for 'gss_import_name'
/usr/include/gssapi/gssapi.h:554: error: previous declaration of 'gss_import_name' was here
/usr/local/include/gssapi.h:581: error: conflicting types for 'gss_import_name'
/usr/include/gssapi/gssapi.h:554: error: previous declaration of 'gss_import_name' was here
/usr/local/include/gssapi.h:587: error: conflicting types for 'gss_export_name'
/usr/include/gssapi/gssapi.h:560: error: previous declaration of 'gss_export_name' was here
/usr/local/include/gssapi.h:587: error: conflicting types for 'gss_export_name'
/usr/include/gssapi/gssapi.h:560: error: previous declaration of 'gss_export_name' was here
/usr/local/include/gssapi.h:592: error: conflicting types for 'gss_release_name'
/usr/include/gssapi/gssapi.h:565: error: previous declaration of 'gss_release_name' was here
/usr/local/include/gssapi.h:592: error: conflicting types for 'gss_release_name'
/usr/include/gssapi/gssapi.h:565: error: previous declaration of 'gss_release_name' was here
/usr/local/include/gssapi.h:611: error: conflicting types for 'gss_inquire_cred'
/usr/include/gssapi/gssapi.h:584: error: previous declaration of 'gss_inquire_cred' was here
/usr/local/include/gssapi.h:611: error: conflicting types for 'gss_inquire_cred'
/usr/include/gssapi/gssapi.h:584: error: previous declaration of 'gss_inquire_cred' was here
/usr/local/include/gssapi.h:623: error: conflicting types for 'gss_inquire_context'
/usr/include/gssapi/gssapi.h:596: error: previous declaration of 'gss_inquire_context' was here
/usr/local/include/gssapi.h:623: error: conflicting types for 'gss_inquire_context'
/usr/include/gssapi/gssapi.h:596: error: previous declaration of 'gss_inquire_context' was here
/usr/local/include/gssapi.h:632: error: conflicting types for 'gss_wrap_size_limit'
/usr/include/gssapi/gssapi.h:605: error: previous declaration of 'gss_wrap_size_limit' was here
/usr/local/include/gssapi.h:632: error: conflicting types for 'gss_wrap_size_limit'
/usr/include/gssapi/gssapi.h:605: error: previous declaration of 'gss_wrap_size_limit' was here
/usr/local/include/gssapi.h:646: error: conflicting types for 'gss_add_cred'
/usr/include/gssapi/gssapi.h:619: error: previous declaration of 'gss_add_cred' was here
/usr/local/include/gssapi.h:646: error: conflicting types for 'gss_add_cred'
/usr/include/gssapi/gssapi.h:619: error: previous declaration of 'gss_add_cred' was here
/usr/local/include/gssapi.h:656: error: conflicting types for 'gss_inquire_cred_by_mech'
/usr/include/gssapi/gssapi.h:629: error: previous declaration of 'gss_inquire_cred_by_mech' was here
/usr/local/include/gssapi.h:656: error: conflicting types for 'gss_inquire_cred_by_mech'
/usr/include/gssapi/gssapi.h:629: error: previous declaration of 'gss_inquire_cred_by_mech' was here
/usr/local/include/gssapi.h:662: error: conflicting types for 'gss_export_sec_context'
/usr/include/gssapi/gssapi.h:635: error: previous declaration of 'gss_export_sec_context' was here
/usr/local/include/gssapi.h:662: error: conflicting types for 'gss_export_sec_context'
/usr/include/gssapi/gssapi.h:635: error: previous declaration of 'gss_export_sec_context' was here
/usr/local/include/gssapi.h:668: error: conflicting types for 'gss_import_sec_context'
/usr/include/gssapi/gssapi.h:641: error: previous declaration of 'gss_import_sec_context' was here
/usr/local/include/gssapi.h:668: error: conflicting types for 'gss_import_sec_context'
/usr/include/gssapi/gssapi.h:641: error: previous declaration of 'gss_import_sec_context' was here
/usr/local/include/gssapi.h:698: error: conflicting types for 'gss_inquire_mechs_for_name'
/usr/include/gssapi/gssapi.h:671: error: previous declaration of 'gss_inquire_mechs_for_name' was here
/usr/local/include/gssapi.h:698: error: conflicting types for 'gss_inquire_mechs_for_name'
/usr/include/gssapi/gssapi.h:671: error: previous declaration of 'gss_inquire_mechs_for_name' was here
/usr/local/include/gssapi.h:705: error: conflicting types for 'gss_canonicalize_name'
/usr/include/gssapi/gssapi.h:678: error: previous declaration of 'gss_canonicalize_name' was here
/usr/local/include/gssapi.h:705: error: conflicting types for 'gss_canonicalize_name'
/usr/include/gssapi/gssapi.h:678: error: previous declaration of 'gss_canonicalize_name' was here
/usr/local/include/gssapi.h:711: error: conflicting types for 'gss_duplicate_name'
/usr/include/gssapi/gssapi.h:684: error: previous declaration of 'gss_duplicate_name' was here
/usr/local/include/gssapi.h:711: error: conflicting types for 'gss_duplicate_name'
/usr/include/gssapi/gssapi.h:684: error: previous declaration of 'gss_duplicate_name' was here
/usr/local/include/gssapi.h:730: error: conflicting types for 'gss_sign'
/usr/include/gssapi/gssapi.h:703: error: previous declaration of 'gss_sign' was here
/usr/local/include/gssapi.h:730: error: conflicting types for 'gss_sign'
/usr/include/gssapi/gssapi.h:703: error: previous declaration of 'gss_sign' was here
/usr/local/include/gssapi.h:738: error: conflicting types for 'gss_verify'
/usr/include/gssapi/gssapi.h:712: error: previous declaration of 'gss_verify' was here
/usr/local/include/gssapi.h:738: error: conflicting types for 'gss_verify'
/usr/include/gssapi/gssapi.h:712: error: previous declaration of 'gss_verify' was here
/usr/local/include/gssapi.h:748: error: conflicting types for 'gss_seal'
/usr/include/gssapi/gssapi.h:722: error: previous declaration of 'gss_seal' was here
/usr/local/include/gssapi.h:748: error: conflicting types for 'gss_seal'
/usr/include/gssapi/gssapi.h:722: error: previous declaration of 'gss_seal' was here
/usr/local/include/gssapi.h:757: error: conflicting types for 'gss_unseal'
/usr/include/gssapi/gssapi.h:732: error: previous declaration of 'gss_unseal' was here
/usr/local/include/gssapi.h:757: error: conflicting types for 'gss_unseal'
/usr/include/gssapi/gssapi.h:732: error: previous declaration of 'gss_unseal' was here
/usr/local/include/gssapi.h:774: error: conflicting types for 'gss_krb5_copy_ccache'
/usr/include/gssapi/gssapi.h:748: error: previous declaration of 'gss_krb5_copy_ccache' was here
/usr/local/include/gssapi.h:774: error: conflicting types for 'gss_krb5_copy_ccache'
/usr/include/gssapi/gssapi.h:748: error: previous declaration of 'gss_krb5_copy_ccache' was here
/usr/local/include/gssapi.h:791: error: conflicting types for 'gss_krb5_compat_des3_mic'
/usr/include/gssapi/gssapi.h:754: error: previous declaration of 'gss_krb5_compat_des3_mic' was here
/usr/local/include/gssapi.h:791: error: conflicting types for 'gss_krb5_compat_des3_mic'
/usr/include/gssapi/gssapi.h:754: error: previous declaration of 'gss_krb5_compat_des3_mic' was here
The following command failed:
cc -I. -I/usr/ports/net/samba3/work/samba-3.0.25a/source  -O2 -fno-strict-aliasing -pipe -D_SAMBA_BUILD_=3 -I/usr/ports/net/samba3/work/samba-3.0.25a/source/popt -I/usr/ports/net/samba3/work/samba-3.0.25a/source/iniparser/src -Iinclude -I./include  -I. -I. -I./lib/replace -I./lib/talloc -I./tdb/include -I./libaddns -I./librpc -DHAVE_CONFIG_H  -I/usr/local/include -DLDAP_DEPRECATED    -I/usr/ports/net/samba3/work/samba-3.0.25a/source/lib -D_SAMBA_BUILD_=3 -fPIC -DPIC -c utils/net_dns.c -o utils/net_dns.o
*** Error code 1

Stop in /usr/ports/net/samba3/work/samba-3.0.25a/source.
*** Error code 1

Stop in /usr/ports/net/samba3.
*** Error code 1

Stop in /usr/ports/net/samba3.

Аватара пользователя
Alex Keda
стреляли...
Сообщения: 35200
Зарегистрирован: 2004-10-18 14:25:19
Откуда: Made in USSR
Контактная информация:

Re: не компилится SAMBA

Непрочитанное сообщение Alex Keda » 2007-07-24 15:30:55

попробуй снести это

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

lissyara# make search name='gss'
Port:   gss-0.0.20_1
Path:   /usr/ports/security/gss
Info:   GNU Generic Security Service Library
Maint:  araujo@bsdmail.org
B-deps: gettext-0.16.1_3 libiconv-1.9.2_2 libidn-0.6.10 libtasn1-0.3.9 perl-5.8.8 pkg-config-0.21 shishi-0.0.22_3
R-deps: gettext-0.16.1_3 libiconv-1.9.2_2 libidn-0.6.10 libtasn1-0.3.9 pkg-config-0.21 shishi-0.0.22_3
WWW:    http://www.gnu.org/software/gss/
ну и снова пробуй собрать.
=========
make clean до сборки делаешь?

P.S. Юзай кнопочку code - листинги читать тяжело
Убей их всех! Бог потом рассортирует...

guest
проходил мимо

Re: не компилится SAMBA

Непрочитанное сообщение guest » 2007-07-25 11:07:45

Хмм, gss не стояло - решил поставить, оно конфликтовало с heimdal. Никакого результата не принесло...

Аватара пользователя
Alex Keda
стреляли...
Сообщения: 35200
Зарегистрирован: 2004-10-18 14:25:19
Откуда: Made in USSR
Контактная информация:

Re: не компилится SAMBA

Непрочитанное сообщение Alex Keda » 2007-07-25 11:15:29

странно...
машина наверно забитая совсем...
у меня на всех без проблем ставиться...
Убей их всех! Бог потом рассортирует...

guest
проходил мимо

Re: не компилится SAMBA

Непрочитанное сообщение guest » 2007-07-25 11:24:26

да нет, мой ноутбук, /var/db/pkg сносился два месяца назад...

Аватара пользователя
Alex Keda
стреляли...
Сообщения: 35200
Зарегистрирован: 2004-10-18 14:25:19
Откуда: Made in USSR
Контактная информация:

Re: не компилится SAMBA

Непрочитанное сообщение Alex Keda » 2007-07-25 11:24:57

guest писал(а):да нет, мой ноутбук, /var/db/pkg сносился два месяца назад...
а /usr/local?
Убей их всех! Бог потом рассортирует...


Аватара пользователя
Alex Keda
стреляли...
Сообщения: 35200
Зарегистрирован: 2004-10-18 14:25:19
Откуда: Made in USSR
Контактная информация:

Re: не компилится SAMBA

Непрочитанное сообщение Alex Keda » 2007-07-25 11:46:40

ну незнаю.
обновляй ситему, обновляй-реинсталль зависмости с ручной чисткой ошмётков...
Убей их всех! Бог потом рассортирует...

Алексей Н
проходил мимо

Re: не компилится SAMBA

Непрочитанное сообщение Алексей Н » 2009-05-21 13:15:17

Для Samba 3.3 помогло
cd /usr/ports/security/krb5
make install

brogen
проходил мимо

Re: не компилится SAMBA

Непрочитанное сообщение brogen » 2010-11-04 15:55:07

1. сравнить /usr/local/lib с /usr/obj/usr/src/kerberos5/lib/
все недостающие либы - копировать вместе с @lib(......)so
2. !!! Не собирается самба, если нет ссылок в виде @libkrb5.so -> libkrb5.so.10
это касается и gssapi, ntlm, spnego и т.д.
Проверено!!