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

и снова я со своими проблемами :))

Добавлено: 2007-12-06 9:24:50
Alex Keda
Собсно - чё ему не нравиться?
Лог прислал автопилот, что порты собирает.
x64 под рукой щас нет - проверить не могу....

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

Od: User Ports-amd64 <ports-amd64@freebsd.org>
Komu: kris@freebsd.org, cvs@oook.cz, erwin@freebsd.org,
linimon@freebsd.org
P?edm?t: mod_ntlm2-0.1 failed on amd64 8
Datum: Wed, 5 Dec 2007 09:10:56 GMT

building mod_ntlm2-0.1 on hammer2.isc.gumbysoft.com
in directory /usr2/pkgbuild/8/chroot/13
building for: 8.0-CURRENT amd64
maintained by: admin@lissyara.su
port directory: /usr/ports/www/mod_ntlm2
build started at Wed Dec  5 09:09:44 UTC 2007
FETCH_DEPENDS=
PATCH_DEPENDS=
EXTRACT_DEPENDS=
BUILD_DEPENDS=apache-2.0.61_2.tbz cups-base-1.3.3_2.tbz expat-2.0.0_1.tbz gettext-0.16.1_3.tbz gnutls-2.0.2_1.tbz jpeg-6b_4.tbz libexecinfo-1.1_1.tbz libgcrypt-1.2.4_1.tbz libgpg-error-1.5.tbz libiconv-1.11_1.tbz openldap-client-2.3.39.tbz perl-5.8.8_1.tbz pkg-config-0.22_1.tbz png-1.2.22.tbz popt-1.7_4.tbz samba-3.0.26a_2,1.tbz tiff-3.8.2_1.tbz
RUN_DEPENDS=apache-2.0.61_2.tbz expat-2.0.0_1.tbz libiconv-1.11_1.tbz perl-5.8.8_1.tbz
prefixes: LOCALBASE=usr/local X11BASE=usr/local
add_pkg
================================================================
====================<phase 1: make checksum>====================
=mod_ntlm2-0.1.tgz doesn't seem to exist in /tmp/distfiles/.
=Attempting to fetch from ftp://freebsd.isc.org/pub/FreeBSD/ports/distfiles/.
mod_ntlm2-0.1.tgz                                       40 kB 1843 kBps
=MD5 Checksum OK for mod_ntlm2-0.1.tgz.
=SHA256 Checksum OK for mod_ntlm2-0.1.tgz.
================================================================
====================<phase 2: make extract>====================
add_pkg
=== Extracting for mod_ntlm2-0.1
=MD5 Checksum OK for mod_ntlm2-0.1.tgz.
=SHA256 Checksum OK for mod_ntlm2-0.1.tgz.
================================================================
====================<phase 3: make patch>====================
add_pkg
=== Patching for mod_ntlm2-0.1
=== Applying FreeBSD patches for mod_ntlm2-0.1
================================================================
====================<phase 4: make build>====================
add_pkg apache-2.0.61_2.tbz cups-base-1.3.3_2.tbz expat-2.0.0_1.tbz gettext-0.16.1_3.tbz gnutls-2.0.2_1.tbz jpeg-6b_4.tbz libexecinfo-1.1_1.tbz libgcrypt-1.2.4_1.tbz libgpg-error-1.5.tbz libiconv-1.11_1.tbz openldap-client-2.3.39.tbz perl-5.8.8_1.tbz pkg-config-0.22_1.tbz png-1.2.22.tbz popt-1.7_4.tbz samba-3.0.26a_2,1.tbz tiff-3.8.2_1.tbz
adding dependencies
pkg_add apache-2.0.61_2.tbz
Removing stale symlinks from /usr/bin...
    Skipping /usr/bin/perl
    Skipping /usr/bin/perl5
Done.
Creating various symlinks in /usr/bin...
    Symlinking /usr/local/bin/perl5.8.8 to /usr/bin/perl
    Symlinking /usr/local/bin/perl5.8.8 to /usr/bin/perl5
Done.
Cleaning up /etc/make.conf... Done.
Spamming /etc/make.conf... Done.
Cleaning up /etc/manpath.config... Done.
Spamming /etc/manpath.config... Done.

To run apache www server from startup, add apache2_enable="YES"
in your /etc/rc.conf. Extra options can be found in startup script.

pkg_add cups-base-1.3.3_2.tbz

======================================================================
PLEASE NOTE:
============

To enable printing with local printer you need to give group cups
r/w access to printer device:

1) Add following to /etc/devfs.rules (create if it doesn't exist):

[system=10]
add path 'unlpt*' mode 0660 group cups
add path 'ulpt*' mode 0660 group cups
add path 'lpt*' mode 0660 group cups

2) And following to /etc/rc.conf:

devfs_system_ruleset="system"

3) Restart devfs: /etc/rc.d/devfs restart

To enable printing under Gimp and MS-Windows clients do the following:

1) Uncomment application/octet-stream line in mime.types
2) Uncomment application/octet-stream line in mime.convs
3) Restart cupsd
======================================================================

pkg_add expat-2.0.0_1.tbz
skipping expat-2.0.0_1, already added
pkg_add gettext-0.16.1_3.tbz
skipping gettext-0.16.1_3, already added
pkg_add gnutls-2.0.2_1.tbz
skipping gnutls-2.0.2_1, already added
pkg_add jpeg-6b_4.tbz
skipping jpeg-6b_4, already added
pkg_add libexecinfo-1.1_1.tbz
pkg_add libgcrypt-1.2.4_1.tbz
skipping libgcrypt-1.2.4_1, already added
pkg_add libgpg-error-1.5.tbz
skipping libgpg-error-1.5, already added
pkg_add libiconv-1.11_1.tbz
skipping libiconv-1.11_1, already added
pkg_add openldap-client-2.3.39.tbz

************************************************************

The OpenLDAP client package has been successfully installed.

Edit
  /usr/local/etc/openldap/ldap.conf
to change the system-wide client defaults.

Try `man ldap.conf' and visit the OpenLDAP FAQ-O-Matic at
  http://www.OpenLDAP.org/faq/index.cgi?file=3
for more information.

************************************************************

pkg_add perl-5.8.8_1.tbz
skipping perl-5.8.8_1, already added
pkg_add pkg-config-0.22_1.tbz
skipping pkg-config-0.22_1, already added
pkg_add png-1.2.22.tbz
skipping png-1.2.22, already added
pkg_add popt-1.7_4.tbz
pkg_add samba-3.0.26a_2,1.tbz

===============================================================================
NOTICE: This version of port has changed location of Samba password
NOTICE: (smbpasswd) directory. Files in '/usr/local/private'
NOTICE: have moved to '/usr/local/etc/samba'.
===============================================================================
Samba3 *package* now doesn't include ADS support due the portability problems
with Kerberos5 libraries on different installations. You need to compile port
yourself to get this functionality.

For additional hints and directions, please, look into the README.FreeBSD file.
===============================================================================

pkg_add tiff-3.8.2_1.tbz
skipping tiff-3.8.2_1, already added
===  mod_ntlm2-0.1 depends on file: /usr/local/bin/smbclient - found
===  mod_ntlm2-0.1 depends on file: /usr/local/sbin/apxs - found
=== Configuring for mod_ntlm2-0.1
=== Building for mod_ntlm2-0.1
apxs -c -o mod_ntlm.so -Wc,-shared mod_ntlm.c
/usr/local/share/apache2/build/libtool --silent --mode=compile cc -prefer-pic -O2 -fno-strict-aliasing -pipe -DAP_HAVE_DESIGNATED_INITIALIZER -D_REENTRANT -D_THREAD_SAFE  -I/usr/local/include/apache2  -I/usr/local/include/apache2   -I/usr/local/include/apache2 -I/usr/local/include -shared  -c -o mod_ntlm.lo mod_ntlm.c && touch mod_ntlm.slo
mod_ntlm.c:44: warning: conflicting types for built-in function 'log'
In file included from mod_ntlm.c:86:
ntlmssp.inc.c: In function 'ntlm_msg3_getusername':
ntlmssp.inc.c:306: warning: cast from pointer to integer of different size
In file included from mod_ntlm.c:107:
smbval/smblib.inc.c: At top level:
smbval/smblib.inc.c:25: error: static declaration of 'SMBlib_errno' follows non-static declaration
smbval/smblib-priv.h:668: error: previous declaration of 'SMBlib_errno' was here
smbval/smblib.inc.c:26: error: static declaration of 'SMBlib_SMB_Error' follows non-static declaration
smbval/smblib-priv.h:669: error: previous declaration of 'SMBlib_SMB_Error' was here
smbval/smblib.inc.c:35: error: static declaration of 'SMBlib_State' follows non-static declaration
smbval/smblib-priv.h:665: error: previous declaration of 'SMBlib_State' was here
mod_ntlm.c: In function 'get_ntlm_header':
mod_ntlm.c:435: warning: cast from pointer to integer of different size
mod_ntlm.c:439: warning: cast from pointer to integer of different size
mod_ntlm.c: In function 'send_ntlm_challenge':
mod_ntlm.c:477: warning: cast from pointer to integer of different size
mod_ntlm.c: In function 'ntlm_check_response':
mod_ntlm.c:514: warning: cast from pointer to integer of different size
mod_ntlm.c:521: warning: cast from pointer to integer of different size
mod_ntlm.c:531: warning: cast from pointer to integer of different size
mod_ntlm.c:544: warning: cast from pointer to integer of different size
mod_ntlm.c:555: warning: cast from pointer to integer of different size
mod_ntlm.c: In function 'authenticate_ntlm_user':
mod_ntlm.c:687: warning: cast from pointer to integer of different size
mod_ntlm.c:697: warning: cast from pointer to integer of different size
mod_ntlm.c:709: warning: cast from pointer to integer of different size
apxs:Error: Command failed with rc=65536
.
*** Error code 1

Stop in /work/a/ports/www/mod_ntlm2/work/mod_ntlm2-0.1.
*** Error code 1

Stop in /a/ports/www/mod_ntlm2.
================================================================
build of /usr/ports/www/mod_ntlm2 ended at Wed Dec  5 09:11:00 UTC 2007

Re: и снова я со своими проблемами :))

Добавлено: 2007-12-06 11:40:45
Urgor
статическая декларация 'SMBlib_errno' следует за нестатической декларацией

Re: и снова я со своими проблемами :))

Добавлено: 2007-12-06 14:24:03
Alex Keda
эх...
ещё бы я знал чё это значит...
а почему на i386 катит?

Re: и снова я со своими проблемами :))

Добавлено: 2007-12-06 15:01:00
BlackCat
Ругается он на то, что переменная SMBlib_errno объявляется еще раз в файле "smbval/smblib.inc.c":

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

smbval/smblib.inc.c:25: error: static declaration of 'SMBlib_errno' follows non-static declaration
В следующей строке указывается то место, где переменная была объявлена первый раз "smbval/smblib-priv.h":

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

smbval/smblib-priv.h:668: error: previous declaration of 'SMBlib_errno' was here
.
Та же проблема с переменными SMBlib_SMB_Error и SMBlib_State.
=====
а почему на i386 катит?
Сам исходник не видел, но скорее всего из-за использования условной копмиляции какие-то файлы не подключаются или не объявляются переменные.

Re: и снова я со своими проблемами :))

Добавлено: 2007-12-07 12:50:48
Fastman
Найди объявление этих переменных;

static int SMBlib_errno;
static int SMBlib_SMB_Errno;
static int SMBlib_State;

попробуй убрать static

Re: и снова я со своими проблемами :))

Добавлено: 2007-12-07 14:11:55
Fastman
Но на самом деле это не выход :)
Я думаю нехвататет каких то библиотек.
у меня подозрение чт просто переименовали какой то зависящий пакет и он не собрался.

Re: и снова я со своими проблемами :))

Добавлено: 2007-12-07 14:15:21
Fastman
ну и до кучи-может поможет:

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

There are some declarations in smbval/smblib.inc.c that the compiler doesn't like, so change it as follows:

diff -r mod_ntlm2-0.1/smbval/smblib.inc.c mod_ntlm2-0.1-fixed/smbval/smblib.inc.c
25,26c25,26
< static int SMBlib_errno;
< static int SMBlib_SMB_Error;
---
> int SMBlib_errno;
> int SMBlib_SMB_Error;
35c35
< static SMB_State_Types SMBlib_State;
---
> SMB_State_Types SMBlib_State;



If you don't do this, you may see errors like the following when you compile:

In file included from mod_ntlm.c:107:
smbval/smblib.inc.c: At top level:
smbval/smblib.inc.c:25: error: static declaration of 'SMBlib_errno' follows non-static declaration
smbval/smblib-priv.h:668: error: previous declaration of 'SMBlib_errno' was here
smbval/smblib.inc.c:26: error: static declaration of 'SMBlib_SMB_Error' follows non-static declaration
smbval/smblib-priv.h:669: error: previous declaration of 'SMBlib_SMB_Error' was here
smbval/smblib.inc.c:35: error: static declaration of 'SMBlib_State' follows non-static declaration
smbval/smblib-priv.h:665: error: previous declaration of 'SMBlib_State' was here



Also, it seems APXS (or the GNU libtools) have changed since the Makefile was written, so change Makefile as follows:

diff -r mod_ntlm2-0.1/Makefile mod_ntlm2-0.1-fixed/Makefile
20c20
<       $(APXS) -i -a -n 'ntlm' mod_ntlm.so
---
>       $(APXS) -i -a -n 'ntlm' mod_ntlm.la
diff -r mod_ntlm2-0.1/mod_ntlm.c mod_ntlm2-0.1-fixed/mod_ntlm.c
590c590,596
<     apr_pool_sub_make(&sp,p,NULL);
---
>     /*
>      * apr_pool_sub_make(&sp,p,NULL);
>      *
>      * This function call is not longer available with apache 2.2
>      * Try replacing it with apr_pool_create_ex()
>      */
>     apr_pool_create_ex(&sp,p,NULL,NULL);


If you don't, you may see errors like the following when you try to make the package:

cp mod_ntlm.so /usr/local/apache2/modules/mod_ntlm.so
cp: cannot stat `mod_ntlm.so': No such file or directory
apxs:Error: Command failed with rc=65536



Finally, I had to change mod_ntlm.c to work with Apache 2.2:

diff mod_ntlm2-0.1/mod_ntlm.c mod_ntlm2-0.1-fixed/mod_ntlm.c
590c590,596
<     apr_pool_sub_make(&sp,p,NULL);
---
>     /*
>      * apr_pool_sub_make(&sp,p,NULL);
>      *
>      * This function call is not longer available with apache 2.2
>      * Try replacing it with apr_pool_create_ex()
>      */
>     apr_pool_create_ex(&sp,p,NULL,NULL);



Without this change, you may see errors like the following when you stop Apache (after installing and configuring, which follows):

httpd: Syntax error on line 55 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/mod_ntlm.so into server: /usr/local/apache2/modules/mod_ntlm.so: undefined symbol: apr_pool_sub_make



Finally, you should be ready to make and install the package...

make
make install

Re: и снова я со своими проблемами :))

Добавлено: 2007-12-22 1:49:30
Proftp
а вы собираете или бинарники устанавливаете?
лучше из портов собрать...

Re: и снова я со своими проблемами :))

Добавлено: 2008-07-03 8:44:27
Alex Keda

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

===>  Building for mod_ntlm2-0.1
apxs -c -o mod_ntlm.so -Wc,-shared mod_ntlm.c
/usr/local/share/apache2/build/libtool --silent --mode=compile cc -prefer-pic -O2 -fno-strict-aliasing -pipe -DAP_HAVE_DESIGNATED_INITIALIZER -D_REENTRANT -D_THREAD_SAFE  -I/usr/local/include/apache2  -I/usr/local/include/apache2   -I/usr/local/include/apache2 -I/usr/local/include -shared  -c -o mod_ntlm.lo mod_ntlm.c && touch mod_ntlm.slo
mod_ntlm.c:44: warning: conflicting types for built-in function 'log'
In file included from mod_ntlm.c:86:
ntlmssp.inc.c: In function 'ntlm_msg3_getusername':
ntlmssp.inc.c:306: warning: cast from pointer to integer of different size
In file included from mod_ntlm.c:107:
smbval/smblib.inc.c: At top level:
smbval/smblib.inc.c:25: error: static declaration of 'SMBlib_errno' follows non-static declaration
smbval/smblib-priv.h:668: error: previous declaration of 'SMBlib_errno' was here
smbval/smblib.inc.c:26: error: static declaration of 'SMBlib_SMB_Error' follows non-static declaration
smbval/smblib-priv.h:669: error: previous declaration of 'SMBlib_SMB_Error' was here
smbval/smblib.inc.c:35: error: static declaration of 'SMBlib_State' follows non-static declaration
smbval/smblib-priv.h:665: error: previous declaration of 'SMBlib_State' was here
apxs:Error: Command failed with rc=65536
.
*** Error code 1

Stop in /tmp/usr/ports/www/mod_ntlm2/work/mod_ntlm2-0.1.
*** Error code 1

Stop in /usr/ports/www/mod_ntlm2.
orion#   
ап темы.
такая ошибка. на семёрке i386.
на шохе нормально собирается...

Re: и снова я со своими проблемами :))

Добавлено: 2008-07-03 9:09:48
Alex Keda
пофиксил. патс от Фастмана, плюс ещё ниже подобная строка.

Re: и снова я со своими проблемами :))

Добавлено: 2008-08-05 11:07:30
D_CPU350
собиратся то собирается но не работает FreeBSD 7.0-STABLE x86

при попытке запуска пишет:
httpd: Syntax error on line 112 of /usr/local/etc/apache22/httpd.conf: Cannot load /usr/local/libexec/apache22/mod_ntlm.so into server: /usr/local/libexec/apache22/mod_ntlm.so: Undefined symbol "apr_pool_sub_make"

Re: и снова я со своими проблемами :))

Добавлено: 2008-08-23 23:16:24
zingel
проблема в кривом ld, обновите свой апачь, через

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

portupgrade -f

Re: и снова я со своими проблемами :))

Добавлено: 2008-10-15 8:57:48
cc
Обновил апач22 и после обновил ntlm, но все равно при обращении к апачу ругается -

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

httpd: Syntax error on line 105 of /usr/local/etc/apache22/httpd.conf: Cannot load /usr/local/libexec/apache22/mod_ntlm.so into server: /usr/local/libexec/apache22/mod_ntlm.so: Undefined symbol "apr_pool_sub_make"

Re: и снова я со своими проблемами :))

Добавлено: 2008-10-16 13:11:19
cc
Прошу прощения, в спешке не осилил!
Спасибо огромное ! :)

Re: и снова я со своими проблемами :))

Добавлено: 2008-10-17 15:17:46
Alex Keda