Page 1 of 4 123 ... LastLast
Results 1 to 15 of 52

Thread: jabberd

  1. #1

    jabberd

    Вот уже какой месяц мучаю я свой ящик. (wl-500g-p)
    Нашел тут вот такую ерунду:
    http://sourceforge.net/projects/xpox/
    Оно для ОпенВРТ, но я решил попробовать.
    Скачал пакет.
    Установил:
    Code:
    [pasechnick@(none) /opt]$ ipkg -o /opt install jabberd_1.4.2-1_mipsel.ipk
    Installing jabberd (1.4.2-1) to root...
    Configuring jabberd
    Successfully terminated.
    Потом получил сразу:
    Code:
    [pasechnick@(none) /opt]$ jabberd
    Unable to access home folder /home/mp/sip/openwrt/sipath/buildroot/build_mipsel/jabber-1.4.2: No such file or directory
    Configuration parsing using jabber.xml failed: unable to open file
    Возможно ли как-нибудь пути откорректировать?
    Просто кросс-компилировать я уже зарекся.
    Ничерта не получается с джаббердом.
    Спасибо всем за помощь.

  2. #2
    Join Date
    Sep 2007
    Posts
    109
    Blog Entries
    1
    ищи терь все в /opt/usr

    а лучше, имхо, конечно пересобрать...

  3. #3
    Решил попробовать еще раз скомпилировать.
    Постави Билдрут на роутер.
    Поборол кучу проблем.
    Но с одной так и не смог справится.
    При компиляции выдается:
    Code:
    checking for GnuTLS... checking for mipsel-linux-pkg-config... no
    checking for pkg-config... no
    checking for GNUTLS... 
    configure: error: Couldn't find required GnuTLS installation
    Пробовал ставить гнутлс. Результата тот же.

  4. #4
    Join Date
    Sep 2007
    Posts
    109
    Blog Entries
    1
    поставь pkgconfig

  5. #5
    Спасибо
    Я сделал еще шаг.
    Теперь нова проблема:
    Code:
    checking idna.h usability... no
    checking idna.h presence... no
    checking for idna.h... no
    configure: error: Couldn't find required libidn installation
    Поставил пакет. Все равно не работает.

  6. #6
    Что-то я совсем все испортил.
    Попробовал сменить CFLAGS и LDFLAGS:
    Code:
    LDFLAGS='/opt/lib'
    CFLAGS='/opt/include'
    Теперь вообще ничего не компилируется.
    Я так понимаю, что запорол флаги.

  7. Quote Originally Posted by Pasechnick View Post
    [pasechnick@(none) /opt]$ jabberd
    Unable to access home folder /home/mp/sip/openwrt/sipath/buildroot/build_mipsel/jabber-1.4.2: No such file or directory
    Configuration parsing using jabber.xml failed: unable to open file
    А может поступить проще. Подсунуть ему нужную папку. Создать необходимую структуру папок на /tmp/harddisk/mp и смонтировать ее в /home командой:
    Code:
    mount -obind /tmp/harddisk/mp /home/mp
    Или другой вариант: с помощью команды ln сделать ссылку.

  8. Хотя, пожалуй лучше монтировать созданную при инсталяции папку из /opt/usr чем создавать структуру папок в /tmp/harddisk.

    Интересно как это чудо будет работать. Я бы и сам поставил для внутренней локалки сервачок джабера. Вот только вопрос потянет ли "коробочка"?
    Last edited by TIk; 07-10-2007 at 16:02.

  9. #9
    Вобщем возился я возился, а закончилось все банально:
    [pasechnick@(none) jabberd]$ jabberd
    Segmentation fault
    Видать под ОпенВРТ другое совсем.

  10. #10
    Еще один день мучений. Попробовал указать с помощью CFLAGS и LDFLAGS где libidn живет.
    Все равно.
    В configure.log написано, что файл idn-int.h в /opt/include не найден, хотя он там.
    Тогда я попытался выполнить конфигурацию так:
    ./configure --with-libidn=/opt/lib
    То же самое.
    Подскажите, пожалуйста, что не так.

  11. #11
    Quote Originally Posted by Pasechnick View Post
    Подскажите, пожалуйста, что не так.
    Все, абсолютно все не так. Нужно уметь читать логи Представляю вашему вниманию пошаговую инструкцию по сборке jabberd2.
    На 100%ю правильность не претендую, возможно, все можно сделать проще/иначе.
    Ну и главное - это все - на ваш страх и риск.

    0) Делаем БОЛЬШОЙ своп. Мегабайт так двести-четыреста
    1) Идем на http://jabberd2.xiaoka.com/ и скачиваем последнюю версию исходников (у меня было jabberd-2.1.23.tar.bz2)
    2) Идем на ftp://alpha.gnu.org/gnu/fetish и сливаем оттуда последнюю версию fileutils (у меня было fileutils-4.1.11.tar.gz)
    3) Создаем на роутере директорию и распаковываем в нее содержимое архива jabberd2
    4) Туда же копируем один-единственнный файлик fnmatch_.h из архива fileutils
    5) Устанавливаем нужные пакеты через ipkg. Я просто приведу список установленных у меня пакетов, т.к.
    не помню, что именно ставил (доустанавливал то, чего не хватало конфигуру). Примечание. buildroot и findutils надо устанавливать с ключом --force-overwrite
    Code:
    [tinde@t-router jabberd-2.1.23]$ ipkg list_installed|more
    adduser - 1.9.0-1 - a multi-call binary for login and user account administration
    apr - 1.2.11-1 - Apache Portable Runtime library
    apr-util - 1.2.10-4 - Apache Portable Runtime utilities library
    autoconf - 2.61-2 - Creating scripts to configure source code packages using templates
    automake - 1.10-2 - Creates GNU standards-compliant Makefiles from template files
    bash - 3.2.17-1 - A bourne style shell
    bison - 2.3-2 - a general-purpose parser generator that converts an annotated context-free grammar into an LALR(1) or GLR parser for that gramm
    buildroot - 4.1.1-13 - uClibc compilation toolchain
    bzip2 - 1.0.4-2 - Very high-quality data compression program
    coreutils - 6.9-6 - Bunch of heavyweight *nix core utilities
    cron - 4.1-7 - Standard vixie cron, with cron.d addition
    cyrus-sasl-libs - 2.1.22-2 - Provides client or server side authentication (see RFC 2222).
    diffutils - 2.8.1-6 - contains gnu diff, cmp, sdiff and diff3 to display differences between and among text files
    e2fsprogs - 1.40.3-1 - Ext2 Filesystem Utilities
    expat - 2.0.1-1 - XML Parser library
    file - 4.21-1 - Ubiquitous file identification utility.
    findutils - 4.2.31-3 - File finding utilities
    flex - 2.5.34-1 - Generates programs that perform pattern-matching on text.
    fontconfig - 2.5.0-0 - Font configuration library
    freetype - 2.1.10-4 - Free truetype library
    gawk - 3.1.6-1 - Gnu AWK interpreter
    gconv-modules - 2.2.5-7 - Provides gconv modules missing from the firmware.  These are used by glibc's iconv() implementation.
    gdbm - 1.8.3-2 - GNU dbm is a set of database routines that use extensible hashing. It works similar to the standard UNIX dbm routines.
    glib - 2.9.6-1 - The GLib library of C routines.
    gnuplot - 4.2.2-2 - Command-line driven interactive data and function plotting utility
    grep - 2.4.2-8 - Global regular expression parser
    groff - 1.19.2-2 - front-end for the groff document formatting system
    gzip - 1.2.4a-3 - GNU Zip data compression program
    htop - 0.6.6-2 - An interactive process viewer.
    inetutils - 1.5-4 - A set of common daemons and clients found on commercial UNIX systems.
    ipkg-opt - 0.99.163-9 - The Itsy Package Manager
    less - 418-1 - Less file browser
    libbt - 1.05-5 - a C library implementing the core BitTorrent protocol
    libcurl - 7.18.0-1 - Curl is a command line tool for transferring files with URL syntax, supporting FTP, FTPS, HTTP, HTTPS, GOPHER, TELNET, DICT, FI
    libdb - 4.2.52-3 - Berkeley DB Libraries
    libgd - 2.0.35-1 - An ANSI C library for the dynamic creation of images
    libgsasl - 0.2.20-1 - GNU SASL command line utility.
    libidn - 1.0-1 - GNU Libidn is an implementation of the Stringprep, Punycode and IDNA specifications defined by the IETF Internationalized Domai
    libjpeg - 6b-2 - collection of jpeg tools
    libpng - 1.2.24-1 - Portable Network Graphics Libraries
    libtool - 1.5.24-1 - Library tools.
    libuclibc++ - 0.2.2-4 - C++ standard library designed for use in embedded systems
    libxml2 - 2.6.31-1 - Libxml2 is the XML C parser and toolkit developed for the Gnome project.
    libxslt - 1.1.22-1 - An XML Stylesheet processor based on libxml2
    lighttpd - 1.4.18-1 - A fast webserver with minimal memory footprint.
    logrotate - 3.7.1-4 - Rotates, compresses, removes and mails system log files.
    lsof - 4.78-1 - LiSt Open Files - a diagnostic tool.
    lynx - 2.8.6-1 - A text browser for the World Wide Web
    m4 - 1.4.8-1 - gnu macro processor and compiler front end
    make - 3.81-1 - examines files and runs commands necessary for compilation
    mc - 4.6.1-8 -
    microperl - 5.8.8-11 - Microperl.
    ncurses - 5.6-3 - NCurses libraries
    ncursesw - 5.6-1 - NCurses libraries with wide char support.
    neon - 0.24.7-2 - an HTTP and WebDAV client library, with a C interface
    openldap-libs - 2.3.38-1 - Open Lightweight Directory Access Protocol
    openssl - 0.9.7m-3 - Openssl provides the ssl implementation in libraries libcrypto and libssl, and is needed by many other applications and librari
    openssl-dev - 0.9.7m-3 - openssl native development files
    optware-devel - 6.8-7 - This is a meta package that bundles all the packages required for optware native development.
    patch - 2.5.9-3 - applies a diff to produce a patched file
    pcre - 7.6-1 - Perl-compatible regular expression library
    perl - 5.8.8-17 - Practical Extraction and Report Language.
    php - 5.2.5-1 - The php scripting language
    php-fcgi - 5.2.5-1 - The php scripting language, built as an fcgi module
    php-gd - 5.2.5-1 - libgd extension for php
    pkgconfig - 0.15.0-1 - Package configuration tool
    popt - 1.7-2 - A C library for parsing command line parameters.
    python - 2.4.4-3 - This is a package that sets up the default python.
    python24 - 2.4.4-6 - Python is an interpreted, interactive, object-oriented programming language.
    readline - 5.2-2 - The GNU Readline library provides a set of functions for use by applications that allow users to edit command lines as they are
    rsync - 2.6.9-4 - fast remote file copy program (like rcp)
    screen - 4.0.3-2 - A screen manager that supports multiple logins on single terminal
    sed - 4.1.5-3 - Stream editor.
    slang - 2.1.2-1 - S-Lang is a multi-platform library designed to allow a developer to create robust multi-platform software.
    sqlite - 3.5.4-1 - SQLite is a small C library that implements a self-contained, embeddable, zero-configuration SQL database engine.
    svn - 1.4.6-1 - a compelling replacement for CVS
    tar - 1.18-3 - heavyweight version of the Tape ARchiver
    termcap - 1.3.1-2 - Terminal emulation library
    textutils - 2.1-5 - GNU Text Utilities
    transmission - 1.03+r4868-1 - lightweight BitTorrent client and daemon with WWW interface
    uclibc-opt - 0.9.28-13 - micro C library for embedded Linux systems
    unzip - 5.52-3 - A (de)compression library for the ZIP format
    wget-ssl - 1.11-1 - A network utility to retrieve files from the Web
    whois - 4.7.22-1 - Perform whois lookups to identify site owners
    zlib - 1.2.3-2 - zlib is a library implementing the 'deflate' compression system.
    Successfully terminated.
    6) Закомментариваем строчку
    Code:
    #include_next <stdint.h>
    в файле /opt/include/idn-int.h
    7) Запускаем ./configure -C (-C позволяет кешировать результаты выполнения конфигура, что очень ценно для медленного роутера в случае возникновения проблем)
    8) Идем в файлик router/filter.c и ПЕРЕД
    Code:
    for(acl = r->filter; acl != NULL; acl = acl->next) {
            if( from == NULL && acl->from != NULL) continue;        /* no match if NULL matched vs not-NULL */
    (это в конце файла) ставим #undef fnmatch
    9) Запускаем make
    10) Ждем часок
    11) Получаем бинарник

    P.S. Все получено в результате вдумчивого чтения сообщений gcc и копания в хидерах
    P.P.S. Делалось исключительно из спортивного интереса, вопросов по джабберду прошу не задавать (опенфайр рулит, да)
    Wl 500 gp

  12. Quote Originally Posted by tinde View Post
    11) Получаем бинарник
    Раз уж получил бинарник - поделись с ближним своим

  13. #13
    Quote Originally Posted by TIk View Post
    Раз уж получил бинарник - поделись с ближним своим
    Бинарник не один, их там пять штук + куча мелких библиотечек. На выходных выложу, но советую компилять ручками, чтобы все нужные зависимости в нужный момент оказались на месте. Пока что поделюсь результатами тестинга - жаббер работает и это главное. Клиенты логинятся довольно-таки задумчиво, но в процессе никаких тормозов не заметно. Регистрация проходит нормально, server-to-server работает (после открытия порта в иптабелсах, естественно), vcard работают.

    Конфигурить советую с --enable-db, остальные базы данных глючат нипадеццки. Также стоит задать --prefix=/opt

    После компиляции и make install надо отредактировать /opt/bin/jabberd (прописать пути к /opt/etc)

    Потом почитать вот это: http://jabberd2.xiaoka.com/wiki/Inst...uickStartGuide

    Приложить немного серого вещества - и жаба забегает. Кстати, нагрузка на роутер небольшая.
    Last edited by tinde; 14-02-2008 at 20:02.
    Wl 500 gp

  14. #14
    Quote Originally Posted by Pasechnick View Post
    Попробовал сменить CFLAGS и LDFLAGS:
    Code:
    LDFLAGS='/opt/lib'
    CFLAGS='/opt/include'
    Не делай так больше, хорошо?! (с) реклама.
    эти переменные используются не так. например так
    LDFLAGS=-levent или LDFLAGS=-L/opt/usr/lib
    vim имеет два режима - бибикать и все портить (с) не мое

  15. #15
    Quote Originally Posted by tinde View Post
    Бинарник не один, их там пять штук + куча мелких библиотечек. На выходных выложу,
    если не сложно сделай следующее

    Code:
    make unistall
    touch .1
    make install
    touch .2
    find /opt -newer .1 ! -newer .2 >jabber.list
    после этого создай такой вот скрипт в директории где собирал.

    Code:
    #!/bin/sh
    t="inst";
    mkdir $t;
    a=`cat ./jabber.list`;
    for l in $a; do
    if [ -d "$l" ]; then
        echo "./$t$l";
        mkdir -p ./$t$l;
    fi
    if [ -f "$l" ]; then
        echo "$l";
        cp $l ./$t$l;
    fi
    done
    запусти его он создаст директорию inst и скопирует туда все что проинсталлировалось мэйк инсталлом.

    упакуй его а я сделаю пакет и выложу.
    vim имеет два режима - бибикать и все портить (с) не мое

Page 1 of 4 123 ... LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •