Страница 1 из 1
lighttpd configure trouble
Добавлено: 2011-05-11 18:02:35
arty777
Коллеги , нужна помощь . Возникла необходимость собрать лайти ручками , добавить в него 1 модуль для стриминга мп4 , раньше все было хоро, когда стояла убунта 10.10 , но вот незадача , обновил ОС до 11.04 (Точнее поставил с 0) и имеем следующее:
Код: Выделить всё
root@www:~/lighttpd-1.4.28# ./autogen.sh
./autogen.sh: running `libtoolize --copy --force'
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
./autogen.sh: running `aclocal -I m4'
./autogen.sh: running `autoheader'
./autogen.sh: running `automake --add-missing --copy --foreign'
./autogen.sh: running `autoconf'
configure.ac:1: error: possibly undefined macro: dnl
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:57: error: possibly undefined macro: AC_CHECK_HEADERS
configure.ac:71: error: possibly undefined macro: AC_DEFINE
configure.ac:108: error: possibly undefined macro: AC_CHECK_LIB
configure.ac:112: error: possibly undefined macro: AC_MSG_ERROR
"Видимо" более старшие версиии automake, autoconf и aclocal приводят вот к такой лаже ....
У меня следующие :
Код: Выделить всё
/usr/bin/aclocal-1.11
/usr/bin/automake-1.11
root@www:~/lighttpd-1.4.28# autoconf -V
autoconf (GNU Autoconf) 2.67
Есть идеи?

Re: lighttpd configure trouble
Добавлено: 2011-05-16 15:04:00
unix-admin
У меня autogen отработал без ошибок.
Код: Выделить всё
lsb_release -a; ./autogen.sh
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 11.04
Release: 11.04
Codename: natty
./autogen.sh: running `libtoolize --copy --force'
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
./autogen.sh: running `aclocal -I m4'
./autogen.sh: running `autoheader'
./autogen.sh: running `automake --add-missing --copy --foreign'
./autogen.sh: running `autoconf'
Now type './configure ...' and 'make' to compile.
Версии aclocal, automake и autoconf - такие же как в вашей системе.
Может быть директория с сырцами лайти существовала еще до обновления системы?
Тогда нужно выполнить
перед повторным запуском autogen.
Re: lighttpd configure trouble
Добавлено: 2011-05-16 15:09:28
FreeBSP
зачем собирать лайт ручками? быть может лучше поковырять порт?
Код: Выделить всё
cd /usr/ports/www/lighthttpd
make fetch extract patch
cd work/какаяторабочаяпапка
# делаем что нужно с исходниками
cd /usr/ports/www/lighthttpd
make install
Re: lighttpd configure trouble
Добавлено: 2011-05-16 15:21:18
arty777
У мну линух Убейте сервер

Порт поковырять не получится .
Код: Выделить всё
root@www:/var/log/mysql# make distclean
make: *** No rule to make target `distclean'. Stop.
Завтра в скрипте покапаюсь подробно (autogen.sh) ... может докумекаю .
А вот при попытке скомпилить 1.4.26 пишет чуток по-другому:
Код: Выделить всё
libtoolize: copying file `m4/lt~obsolete.m4'
./autogen.sh: running `aclocal -I m4'
./autogen.sh: running `autoheader'
./autogen.sh: running `automake --add-missing --copy --foreign'
./autogen.sh: running `autoconf'
configure.ac:1: error: possibly undefined macro: dnl
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:71: error: possibly undefined macro: AC_DEFINE
Re: lighttpd configure trouble
Добавлено: 2011-05-16 16:56:41
unix-admin
Похоже, что у вас, все таки, криво апдейт прошел, попробуйте:
Код: Выделить всё
apt-get install --reinstall autoconf automake libtool
Re: lighttpd configure trouble
Добавлено: 2011-05-16 17:19:18
blade_007
Это RHEL, а не Debian. Возможно старая версия libtool.
Re: lighttpd configure trouble
Добавлено: 2011-05-16 20:10:09
unix-admin
blade_007 писал(а):Это RHEL, а не Debian. Возможно старая версия libtool.
arty777 писал(а):...раньше все было хоро, когда стояла убунта 10.10 , но вот незадача , обновил ОС до 11.04 (Точнее поставил с 0)...
Re: lighttpd configure trouble
Добавлено: 2011-05-16 20:31:53
blade_007
Вполне возможно, что мне показалась надпись с "RHEL" в тексте топикстартера. Что поделать - каждый день вижу.
Re: lighttpd configure trouble
Добавлено: 2011-05-16 21:52:39
FreeBSP
тогда пардоньте
добавь реп src, стяни сырцы пакета под бунту и ковыряйся в них
Re: lighttpd configure trouble
Добавлено: 2011-05-16 22:24:52
arty777
Код: Выделить всё
root@www:~/lighttpd# apt-get install --reinstall autoconf automake libtool
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 3 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0 B/1,377 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 56965 files and directories currently installed.)
Preparing to replace autoconf 2.67-2ubuntu1 (using .../autoconf_2.67-2ubuntu1_all.deb) ...
Unpacking replacement autoconf ...
Preparing to replace automake 1:1.11.1-1ubuntu1 (using .../automake_1%3a1.11.1-1ubuntu1_all.deb) ...
Unpacking replacement automake ...
Preparing to replace libtool 2.2.6b-2ubuntu3 (using .../libtool_2.2.6b-2ubuntu3_amd64.deb) ...
Unpacking replacement libtool ...
Processing triggers for man-db ...
Processing triggers for install-info ...
Setting up autoconf (2.67-2ubuntu1) ...
Setting up automake (1:1.11.1-1ubuntu1) ...
Setting up libtool (2.2.6b-2ubuntu3) ...
Не помогло , все тоже самое . Вот сырци пакета завтра стяну и поковыряю .
Re: lighttpd configure trouble
Добавлено: 2011-05-16 23:08:20
arty777
Гыгы , ларчик просто открывался :
Код: Выделить всё
root@www:~/lighttpd/test# apt-get install pkg-config
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
pkg-config
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 41.8 kB of archives.
After this operation, 160 kB of additional disk space will be used.
Get:1 http://ua.archive.ubuntu.com/ubuntu/ natty/main pkg-config amd64 0.25-1.1ubuntu1 [41.8 kB]
Fetched 41.8 kB in 0s (148 kB/s)
Selecting previously deselected package pkg-config.
(Reading database ... 56965 files and directories currently installed.)
Unpacking pkg-config (from .../pkg-config_0.25-1.1ubuntu1_amd64.deb) ...
Processing triggers for man-db ...
Setting up pkg-config (0.25-1.1ubuntu1) ...
root@www:~/lighttpd/test# ./autogen.sh
./autogen.sh: running `libtoolize --copy --force'
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
./autogen.sh: running `aclocal -I m4'
./autogen.sh: running `autoheader'
./autogen.sh: running `automake --add-missing --copy --foreign'
./autogen.sh: running `autoconf'
Now type './configure ...' and 'make' to compile.
Вычитал на сайте лайти ...
http://redmine.lighttpd.net/issues/522
Всем спасибо за время .