Page 4 of 7 FirstFirst ... 23456 ... LastLast
Results 46 to 60 of 96

Thread: Нативная компиляция пакетов на роутере

  1. #46

    DNS\сборка пакета

    посоветуйте dns сервер, который может держать(обслуживать) зону и отдавать (оповещать) slave + запросы пользователей сети
    я рылся пару дней, пришел к выводу - maradns
    однако готового пакета нету

    интересует еще процесс сборки пакета из скомпиленного на рутере софта

  2. #47
    maradns с конфигами в /opt/etc/maradns
    готов
    мучительно и долго, но таки собран на самой железяки

  3. #48

    Вопросы про сборку ПО из исходников на роутере

    Добрый день!
    Есть пару вопросов по сборке ПО на роутере:
    1) Какой --prefix разумнее использовать при вызове configure: /opt или /opt/my (например, т.е. отличный от /opt, что бы не мешать с ПО из пакетов)?
    2) Если использовать отличный от /opt, то что еще надо сконфигурировать, что бы при поиске исполняемых файлов и библиотек, в первую очередь находились те, к-ые собрал я, а не из пакетов?

  4. #49
    Join Date
    Feb 2007
    Location
    Moscow, Russia
    Posts
    3,805
    все правильно. С одной стороны, чтобы упростить понимание откуда что взялось и при необходимости повторение конфигурации имеет смысл ставить самостоятельно скомпиленные пакеты отдельно. Например, я ставлю в /opt/local. Туда же кладу всякие самописные скрипты. При этом, естественно, пути до /opt/local/bin и при необходимости /opt/local/sbin должны быть добавлены к переменной PATH, скажем в ~/.profile

    С другой стороны, если собирать используя в качестве префикса /opt , то ничего дополнительно прописывать не нужно.

    Тут уж кому чего проще...

    P.S. в /opt/etc/man.conf добавляется
    MANPATH /opt/local/man
    MANPATH /opt/local/share/man

    при необходимости использования библиотек, возможно, нужно будет дописать строку /opt/local/lib в /etc/ld.so.conf
    Last edited by al37919; 16-04-2009 at 10:34.

  5. #50
    Quote Originally Posted by al37919 View Post
    при необходимости использования библиотек, возможно, нужно будет дописать строку /opt/local/lib в /etc/ld.so.conf
    Этот пункт наиболее интересен. Я пробовал править /etc/ld.so.conf, вызывал затем ldconfig, но независимо от этого то, что лежит в /opt/lib просматривается в первую очередь при поиске библиотек.

  6. #51
    Join Date
    Feb 2007
    Location
    Moscow, Russia
    Posts
    3,805
    надо добавлять в /opt/etc/ld.so.conf а вот что касается порядка просмотра --- похоже, что пути /opt/lib и /opt/usr/lib вкомпилены внутрь и просматриваются всегда первыми.

  7. #52

    Нативная компиляция пакетов

    Заранее прошу меня простить, если подобная тема поднималась, но поиск по форуму (как местным поиском, так и при помощи Гугла), положительных результатов не дал.
    Поэтому прошу специалистов, помочь в некоторых данных, чтобы лучше понять процесс нативной компиляции для WL500gP.
    Не давно возника потребность в компиляции пакета lcd4linux, но с поддержкой драйвера для моего LCD (picoLCDGraphic), поддержка которго отсутствует в lcd4linux, находящимся в нашем репозитории.
    Пытаюсь сам откомпилировать, но есть несколько вопросов, по ./configure --help
    PHP Code:
    Installation directories:
      --
    prefix=PREFIX         install architecture-independent files in PREFIX
                              
    [/usr/local]
      --
    exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                              
    [PREFIX]

    By default, `make install' will install all the files in
    `/usr/local/bin', `/usr/local/lib' etc.  You can specify
    an installation prefix other than 
    `/usr/local' using `--prefix',
    for instance `--prefix=$HOME'

    Подскажите плз, какие пути тут необходимо указать?!
    Насколько я понял
    --prefix=/opt
    --exec-prefix=???

    PHP Code:
    Fine tuning of the installation directories:
      --
    bindir=DIR           user executables [EPREFIX/bin]
      --
    sbindir=DIR          system admin executables [EPREFIX/sbin]
      --
    libexecdir=DIR       program executables [EPREFIX/libexec]
      --
    sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
      --
    sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
      --
    localstatedir=DIR    modifiable single-machine data [PREFIX/var]
      --
    libdir=DIR           object code libraries [EPREFIX/lib]
      --
    includedir=DIR       C header files [PREFIX/include]
      --
    oldincludedir=DIR    C header files for non-gcc [/usr/include]
      --
    datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
      --
    datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
      --
    infodir=DIR          info documentation [DATAROOTDIR/info]
      --
    localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
      --
    mandir=DIR           man documentation [DATAROOTDIR/man]
      --
    docdir=DIR           documentation root [DATAROOTDIR/doc/lcd4linux]
      --
    htmldir=DIR          html documentation [DOCDIR]
      --
    dvidir=DIR           dvi documentation [DOCDIR]
      --
    pdfdir=DIR           pdf documentation [DOCDIR]
      --
    psdir=DIR            ps documentation [DOCDIR
    В данном разделе одни вопросы, какие тут необходимо указать директории?!

    PHP Code:
    Program names:
      --
    program-prefix=PREFIX            prepend PREFIX to installed program names
      
    --program-suffix=SUFFIX            append SUFFIX to installed program names
      
    --program-transform-name=PROGRAM   run sed PROGRAM on installed program names 
    Тут я насколько понял, можно указать собственное название проект (програмы)

    PHP Code:
    X features:
      --
    x-includes=DIR    X include files are in DIR
      
    --x-libraries=DIR   X library files are in DIR 
    Данные пункты для нашей системы не нужны, так как мне кажется это необходимо для X-Window, а данная поддержака нам не нужна.

    PHP Code:
    System types:
      --
    build=BUILD     configure for building on BUILD [guessed]
      --
    host=HOST       cross-compile to build programs to run on HOST [BUILD
    Тут тоже неочень понятно, что правильно указать

    PHP Code:
    Optional Features:
      --
    disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
      --
    enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
      --
    disable-dependency-tracking  speeds up one-time build
      
    --enable-dependency-tracking   do not reject slow dependency extractors
      
    --disable-rpath         do not hardcode runtime library paths 
    Судя повсему тут необходимо указывать какие-то зависимости, вероятнее всего они не нужны.

    PHP Code:
    Optional Packages:
      --
    with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
      --
    without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
      --
    with-dmalloc          use dmalloc, as in
                              http
    ://www.dmalloc.com/dmalloc.tar.gz
      
    --with-sco              Use this to turn on SCO-specific code
      
    --with-sunos-curses     Used to force SunOS 4.x curses
      
    --with-osf1-curses      Used to force OSF/1 curses
      
    --with-vcurses=incdir   Used to force SysV curses
      
    --with-ncurses=dir      Compile with ncurses/locate base dir
      
    --with-x                use the X Window System
      
    --with-python           enable python support [default=no]
      --
    with-drivers=<list>   compile driver for displays in <list>,
                              
    drivers may be separated with commas,
                              
    'all' (default) compiles all available drivers,
                              
    drivers may be excluded with 'all,!<driver>',
                              (try 
    'all,\!<driver>' if your shell complains...)
                              
    possible drivers are:
                              
    BeckmannEgleBWCTCrystalFontzCursesCwlinuxD4D,
                              
    G15HD44780IRLCDLCD2USB LCDLinuxLCDTermLPH7508,
                              
    LUIseM50530MatrixOrbitalMilfordInstrumentsNoritake,
                              
    NULLPNGPPMPertelianPHAndersonpicoLCDpicoLCDGraphic,
                              
    RouterBoardSampleserdisplibSimpleLCDst2205T6963Trefon,
                              
    ULA200USBLCDUSBHUBWincorNixdorfX11
      
    --with-plugins=<list>   choose which plugins to compile.
                              
    type --with-plugins=list for list
                              
    of avaible plugins
                              plugins may be excluded with 
    'all,!<plugin>',
                              (try 
    'all,\!<plugin>' if your shell complains...)
      --
    with-gnu-ld           assume the C compiler uses GNU ld default=no
      
    --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
      
    --without-libiconv-prefix     don't search for libiconv in includedir and libdir 
    Из данного раздела нам могут понадобиться только
    --with-python
    --with-drivers=BeckmannEgle, BWCT, CrystalFontz, Curses, Cwlinux, D4D, HD44780, IRLCD, LCD2USB LCDLinux, LCDTerm, LPH7508, LUIse, M50530, MatrixOrbital, MilfordInstruments, Noritake, NULL, PNG, PPM, Pertelian, PHAnderson, picoLCD, picoLCDGraphic, RouterBoard, Sample, serdisplib, SimpleLCD, st2205, T6963, Trefon, ULA200, USBLCD, USBHUB, WincorNixdorf (исключил G15 и X11)
    --with-plugins=(Не разобрался как посмотреть список плагинов)
    --with-libiconv-prefix=(Не нашел самой библиотеки, ни в файловой системе, ни в репозитории. Вероятно она не пригодится, так как нам не надо конвертировать сиволы, все будет на английском)


    Уважаемые Гуру, просветите плз, по пунктам, которые вызвали вопросы, я думаю, что на таком показательном примере и остальным будет проще понять как использовать нитывную компиляцию.

    Заранее благодарен, за вашу помощь.

  8. #53
    Подскажите плз, какие пути тут необходимо указать?!
    Насколько я понял
    --prefix=/opt
    --exec-prefix=???
    Пока гуру спят
    --prefix=/opt
    --exec-prefix=/opt

    В данном разделе одни вопросы, какие тут необходимо указать директории?!
    Префикс для этих каталагов будет взят из ”--exec-prefix”, если нужна более тонкая настройка, тогда узывайте свой префикс для нужных вам директорий.

    Вы конфигурировать начните, вам и скажут, что вам нужно, а что нет

  9. #54
    Меня больше интересует, что необходимо тут указать
    PHP Code:
    System types:
      --
    build=BUILD     configure for building on BUILD [guessed]
      --
    host=HOST       cross-compile to build programs to run on HOST [BUILD
    Так как я понимаю именно этот блок отвечает за совместиность с системой и железом роутера.

    Опытным путем определил наилучшую конфигураци для запуска конфигурирования
    ./configure --prefix=/opt --with-python --with-drivers=all,!G15,!X11,!Curses,!ULA200,!HD44780,!LU Ise,!RouterBoard,!serdisplib,!st2205 --with-plugins=all,!dvb,!gps,!mpd,!mpris_dbus,!mysql
    Исключил некоторые модули, так как они просто отсутствуют в роутере и вообще не нужны. Также удалил поддержку некоторых LCD, так как их драйвера почему-то не были найдены.

    Пока пробывал компилировать вот получаю ошибку и никак ее побороть не могу. Пробывал уже и обращение к директории asm/, менять на asm-mips/, но никакого положительного сдвига, одна и таже ошибка. Как только доходит до компиляции drv_generic_parport.o, полкчаю ошибку и все останавливается.
    PHP Code:
    gcc -DHAVE_CONFIG_H -I.   -I/opt/include/python2.5 -D_GNU_SOURCE -Wall --fno-strict-aliasing --O2 -MT drv_generic_parport.-MD -MP -MF .deps/drv_generic_parport.Tpo --o drv_generic_parport.o drv_generic_parport.c
    In file included from 
    /opt/include/linux/sched.h:18,
                     
    from /opt/include/linux/mm.h:4,
                     
    from /opt/include/linux/pagemap.h:10,
                     
    from /opt/include/asm-mips/io.h:15,
                     
    from drv_generic_parport.c:47:
    /
    opt/include/asm/semaphore.h:31errorexpected specifier-qualifier-list before 'wait_queue_head_t'
    /opt/include/asm/semaphore.hIn function 'sema_init':
    /
    opt/include/asm/semaphore.h:67error'struct semaphore' has no member named 'wait'
    In file included from /opt/include/linux/signal.h:4,
                     
    from /opt/include/linux/sched.h:26,
                     
    from /opt/include/linux/mm.h:4,
                     
    from /opt/include/linux/pagemap.h:10,
                     
    from /opt/include/asm-mips/io.h:15,
                     
    from drv_generic_parport.c:47:
    /
    opt/include/asm/signal.hAt top level:
    /
    opt/include/asm/signal.h:20errorconflicting types for 'sigset_t'
    /opt/include/sys/select.h:38errorprevious declaration of 'sigset_t' was here
    /opt/include/asm/signal.h:129errorredefinition of 'struct sigaction'
    /opt/include/asm/signal.h:131errorexpected ':'','';''}' or '__attribute__' before '.' token
    /opt/include/asm/signal.h:142errorredefinition of 'struct sigaltstack'
    In file included from /opt/include/linux/signal.h:5,
                     
    from /opt/include/linux/sched.h:26,
                     
    from /opt/include/linux/mm.h:4,
                     
    from /opt/include/linux/pagemap.h:10,
                     
    from /opt/include/asm-mips/io.h:15,
                     
    from drv_generic_parport.c:47:
    /
    opt/include/asm/siginfo.h:15errorredefinition of 'union sigval'
    /opt/include/asm/siginfo.h:26errorredefinition of 'struct siginfo'
    /opt/include/asm/siginfo.h:220errorredefinition of 'struct sigevent'
    In file included from /opt/include/linux/sched.h:80,
                     
    from /opt/include/linux/mm.h:4,
                     
    from /opt/include/linux/pagemap.h:10,
                     
    from /opt/include/asm-mips/io.h:15,
                     
    from drv_generic_parport.c:47:
    /
    opt/include/linux/time.h:9errorredefinition of 'struct timespec'
    /opt/include/linux/time.h:88errorredefinition of 'struct timeval'
    /opt/include/linux/time.h:119errorredefinition of 'struct itimerspec'
    In file included from /opt/include/linux/sched.h:87,
                     
    from /opt/include/linux/mm.h:4,
                     
    from /opt/include/linux/pagemap.h:10,
                     
    from /opt/include/asm-mips/io.h:15,
                     
    from drv_generic_parport.c:47:
    /
    opt/include/asm/processor.h:102errorexpected '='','';''asm' or '__attribute__' before 'fpureg_t'
    /opt/include/asm/processor.h:104errorexpected specifier-qualifier-list before 'fpureg_t'
    In file included from /opt/include/asm/pgtable.h:18,
                     
    from /opt/include/linux/pagemap.h:15,
                     
    from /opt/include/asm-mips/io.h:15,
                     
    from drv_generic_parport.c:47:
    /
    opt/include/asm/fixmap.h:58errorexpected declaration specifiers or '...' before 'pgprot_t'
    In file included from /opt/include/linux/pagemap.h:15,
                     
    from /opt/include/asm-mips/io.h:15,
                     
    from drv_generic_parport.c:47:
    /
    opt/include/asm/pgtable.h:192errorexpected '='','';''asm' or '__attribute__' before 'invalid_pte_table'
    /opt/include/asm/pgtable.h:198errorexpected ')' before 'pmd'
    /opt/include/asm/pgtable.h:203errorexpected ')' before '*' token
    /opt/include/asm/pgtable.h:208errorexpected ')' before 'pte'
    /opt/include/asm/pgtable.h:209errorexpected ')' before 'pte'
    /opt/include/asm/pgtable.h:215errorexpected ')' before '*' token
    /opt/include/asm/pgtable.h:231errorexpected ')' before '*' token
    /opt/include/asm/pgtable.h:252errorexpected ')' before 'pmd'
    /opt/include/asm/pgtable.h:257errorexpected ')' before 'pmd'
    /opt/include/asm/pgtable.h:263errorexpected ')' before 'pmd'
    /opt/include/asm/pgtable.h:268errorexpected ')' before '*' token
    /opt/include/asm/pgtable.h:278errorexpected ')' before 'pgd'
    /opt/include/asm/pgtable.h:279errorexpected ')' before 'pgd'
    /opt/include/asm/pgtable.h:280errorexpected ')' before 'pgd'
    /opt/include/asm/pgtable.h:281errorexpected ')' before '*' token
    /opt/include/asm/pgtable.h:297errorexpected ')' before 'pte'
    /opt/include/asm/pgtable.h:298errorexpected ')' before 'pte'
    /opt/include/asm/pgtable.h:299errorexpected ')' before 'pte'
    /opt/include/asm/pgtable.h:300errorexpected ')' before 'pte'
    /opt/include/asm/pgtable.h:302errorexpected '='','';''asm' or '__attribute__' before 'pte_wrprotect'
    /opt/include/asm/pgtable.h:308errorexpected '='','';''asm' or '__attribute__' before 'pte_rdprotect'
    /opt/include/asm/pgtable.h:314errorexpected '='','';''asm' or '__attribute__' before 'pte_mkclean'
    /opt/include/asm/pgtable.h:320errorexpected '='','';''asm' or '__attribute__' before 'pte_mkold'
    /opt/include/asm/pgtable.h:326errorexpected '='','';''asm' or '__attribute__' before 'pte_mkwrite'
    /opt/include/asm/pgtable.h:334errorexpected '='','';''asm' or '__attribute__' before 'pte_mkread'
    /opt/include/asm/pgtable.h:342errorexpected '='','';''asm' or '__attribute__' before 'pte_mkdirty'
    /opt/include/asm/pgtable.h:358errorexpected '='','';''asm' or '__attribute__' before 'pgprot_noncached'
    /opt/include/asm/pgtable.h:367errorexpected '='','';''asm' or '__attribute__' before 'pte_mkyoung'
    /opt/include/asm/pgtable.h:402errorexpected '='','';''asm' or '__attribute__' before 'mk_pte_phys'
    /opt/include/asm/pgtable.h:411errorexpected '='','';''asm' or '__attribute__' before 'pte_modify'
    /opt/include/asm/pgtable.h:428errorexpected '='','';''asm' or '__attribute__' before '*' token
    /opt/include/asm/pgtable.h:434errorexpected '='','';''asm' or '__attribute__' before '*' token
    /opt/include/asm/pgtable.h:440errorexpected '='','';''asm' or '__attribute__' before '*' token
    /opt/include/asm/pgtable.h:448errorexpected '='','';''asm' or '__attribute__' before 'swapper_pg_dir'
    /opt/include/asm/pgtable.h:452errorexpected declaration specifiers or '...' 
    Last edited by Break Action; 17-07-2009 at 11:05.

  10. #55

    Сорри лог в один пост не влез

    PHP Code:
    before 'pte_t'
    In file included from /opt/include/asm/pgtable.h:475,
                     
    from /opt/include/linux/pagemap.h:15,
                     
    from /opt/include/asm-mips/io.h:15,
                     
    from drv_generic_parport.c:47:
    /
    opt/include/asm-generic/pgtable.h:4errorexpected ')' before '*' token
    /opt/include/asm-generic/pgtable.h:13errorexpected ')' before '*' token
    /opt/include/asm-generic/pgtable.h:22errorexpected '='','';''asm' or '__attribute__' before 'ptep_get_and_clear'
    /opt/include/asm-generic/pgtable.h:29errorexpected ')' before '*' token
    /opt/include/asm-generic/pgtable.h:35errorexpected ')' before '*' token
    In file included from 
    /opt/include/linux/highmem.h:5,
                     
    from /opt/include/linux/pagemap.h:16,
                     
    from /opt/include/asm-mips/io.h:15,
                     
    from drv_generic_parport.c:47:
    /
    opt/include/asm/pgalloc.h:70errorexpected '='','';''asm' or '__attribute__' before '*' token
    /opt/include/asm/pgalloc.h:83errorexpected '='','';''asm' or '__attribute__' before '*' token
    /opt/include/asm/pgalloc.h:96errorexpected ')' before '*' token
    /opt/include/asm/pgalloc.h:103errorexpected ')' before '*' token
    /opt/include/asm/pgalloc.h:108errorexpected '='','';''asm' or '__attribute__' before '*' token
    /opt/include/asm/pgalloc.h:120errorexpected ')' before '*' token
    /opt/include/asm/pgalloc.h:127errorexpected ')' before '*' token
    /opt/include/asm/pgalloc.h:133errorexpected '='','';''asm' or '__attribute__' before '*' token
    /opt/include/asm/pgalloc.h:138errorexpected ')' before '*' token
    /opt/include/asm/pgalloc.h:142errorexpected ')' before '*' token
    /opt/include/asm/pgalloc.h:146errorexpected ')' before '*' token
    /opt/include/asm/pgalloc.h:148errorexpected '='','';''asm' or '__attribute__' before '*' token
    /opt/include/asm/pgalloc.h:158errorexpected '='','';''asm' or '__attribute__' before '*' token
    /opt/include/asm/pgalloc.h:170errorexpected ')' before '*' token
    /opt/include/asm/pgalloc.h:177errorexpected ')' before '*' token
    In file included from 
    /opt/include/asm-mips/io.h:15,
                     
    from drv_generic_parport.c:47:
    /
    opt/include/linux/pagemap.hIn function 'page_cache_alloc':
    /
    opt/include/linux/pagemap.h:36errordereferencing pointer to incomplete type
    /opt/include/linux/pagemap.hIn function '_page_hashfn':
    /
    opt/include/linux/pagemap.h:66errorinvalid application of 'sizeof' to incomplete type 'struct inode' 
    /opt/include/linux/pagemap.h:66errorinvalid application of 'sizeof' to incomplete type 'struct inode' 
    /opt/include/linux/pagemap.h:66errorinvalid application of 'sizeof' to incomplete type 'struct inode' 
    /opt/include/linux/pagemap.h:66errorinvalid application of 'sizeof' to incomplete type 'struct inode' 
    /opt/include/linux/pagemap.hAt top level:
    /
    opt/include/linux/pagemap.h:82errorexpected ')' before '(' token
    /opt/include/linux/pagemap.h:83errorexpected ')' before '(' token
    /opt/include/linux/pagemap.hIn function 'grab_cache_page':
    /
    opt/include/linux/pagemap.h:105errordereferencing pointer to incomplete type
    In file included from drv_generic_parport
    .c:47:
    /
    opt/include/asm-mips/io.hAt top level:
    /
    opt/include/asm-mips/io.h:71errorexpected ')' before 'offset'
    /opt/include/asm-mips/io.hIn function 'virt_to_phys':
    /
    opt/include/asm-mips/io.h:240error'PAGE_OFFSET' undeclared (first use in this function)
    /
    opt/include/asm-mips/io.h:240error: (Each undeclared identifier is reported only once
    /opt/include/asm-mips/io.h:240error: for each function it appears in.)
    /
    opt/include/asm-mips/io.hIn function 'phys_to_virt':
    /
    opt/include/asm-mips/io.h:258error'PAGE_OFFSET' undeclared (first use in this function)
    /
    opt/include/asm-mips/io.hIn function 'virt_to_bus':
    /
    opt/include/asm-mips/io.h:266error'PAGE_OFFSET' undeclared (first use in this function)
    /
    opt/include/asm-mips/io.hIn function 'bus_to_virt':
    /
    opt/include/asm-mips/io.h:271error'PAGE_OFFSET' undeclared (first use in this function)
    /
    opt/include/asm-mips/io.hAt top level:
    /
    opt/include/asm-mips/io.h:305errorexpected ')' before 'val'
    /opt/include/asm-mips/io.h:310errorexpected ')' before 'val'
    /opt/include/asm-mips/io.h:316errorexpected ')' before 'val'
    /opt/include/asm-mips/io.h:321errorexpected ')' before 'val'
    /opt/include/asm-mips/io.h:327errorexpected ')' before 'val'
    /opt/include/asm-mips/io.h:334errorexpected ')' before 'val'
    /opt/include/asm-mips/io.hIn function 'inb':
    /
    opt/include/asm-mips/io.h:342errorexpected ')' before 'u8'
    /opt/include/asm-mips/io.h:342errorinvalid type argument of 'unary *'
    /opt/include/asm-mips/io.hIn function 'inw':
    /
    opt/include/asm-mips/io.h:349errorexpected ')' before 'u16'
    /opt/include/asm-mips/io.h:349errorinvalid type argument of 'unary *'
    /opt/include/asm-mips/io.hIn function 'inl':
    /
    opt/include/asm-mips/io.h:354errorexpected ')' before 'u32'
    /opt/include/asm-mips/io.h:354errorinvalid type argument of 'unary *'
    /opt/include/asm-mips/io.hIn function 'inb_p':
    /
    opt/include/asm-mips/io.h:359error'u8' undeclared (first use in this function)
    /
    opt/include/asm-mips/io.h:359errorexpected ';' before '__val'
    /opt/include/asm-mips/io.h:361error'__val' undeclared (first use in this function)
    /
    opt/include/asm-mips/io.h:361errorexpected ')' before 'u8'
    /opt/include/asm-mips/io.h:361errorinvalid type argument of 'unary *'
    /opt/include/asm-mips/io.hIn function 'inw_p':
    /
    opt/include/asm-mips/io.h:369error'u16' undeclared (first use in this function)
    /
    opt/include/asm-mips/io.h:369errorexpected ';' before '__val'
    /opt/include/asm-mips/io.h:372error'__val' undeclared (first use in this function)
    /
    opt/include/asm-mips/io.h:372errorexpected ')' before 'u16'
    /opt/include/asm-mips/io.h:372errorinvalid type argument of 'unary *'
    /opt/include/asm-mips/io.hIn function 'inl_p':
    /
    opt/include/asm-mips/io.h:380error'u32' undeclared (first use in this function)
    /
    opt/include/asm-mips/io.h:380errorexpected ';' before '__val'
    /opt/include/asm-mips/io.h:382error'__val' undeclared (first use in this function)
    /
    opt/include/asm-mips/io.h:382errorexpected ')' before 'u32'
    /opt/include/asm-mips/io.h:382errorinvalid type argument of 'unary *'
    /opt/include/asm-mips/io.hAt top level:
    /
    opt/include/asm-mips/io.h:387errorexpected ';'',' or ')' before '*' token
    /opt/include/asm-mips/io.h:395errorexpected declaration specifiers or '...' before 'u8'
    /opt/include/asm-mips/io.hIn function '__insb':
    /
    opt/include/asm-mips/io.h:398error'addr' undeclared (first use in this function)
    /
    opt/include/asm-mips/io.hAt top level:
    /
    opt/include/asm-mips/io.h:403errorexpected ';'',' or ')' before '*' token
    /opt/include/asm-mips/io.h:411errorexpected declaration specifiers or '...' before 'u16'
    /opt/include/asm-mips/io.hIn function '__insw':
    /
    opt/include/asm-mips/io.h:414error'addr' undeclared (first use in this function)
    /
    opt/include/asm-mips/io.hAt top level:
    /
    opt/include/asm-mips/io.h:419errorexpected ';'',' or ')' before '*' token
    /opt/include/asm-mips/io.h:427errorexpected declaration specifiers or '...' before 'u32'
    /opt/include/asm-mips/io.hIn function '__insl':
    /
    opt/include/asm-mips/io.h:430error'addr' undeclared (first use in this function)
    drv_generic_parport.cIn function 'drv_generic_parport_open':
    drv_generic_parport.c:162warningimplicit declaration of function 'ioperm'
    drv_generic_parport.c:167warningimplicit declaration of function 'iopl'
    drv_generic_parport.cIn function 'drv_generic_parport_direction':
    drv_generic_parport.c:382warningimplicit declaration of function 'outb'
    drv_generic_parport.cIn function 'inb':
    /
    opt/include/asm-mips/io.h:343warningcontrol reaches end of non-void function
    make[1]: *** [drv_generic_parport.oError 1
    make
    [1]: Leaving directory `/opt/tmp/compiling/lcd4linux'
    make: *** [all] Error 2 

  11. #56
    Меня больше интересует, что необходимо тут указать
    PHP код:
    Code:
    System types: 
      --build=BUILD     configure for building on BUILD [guessed] 
      --host=HOST       cross-compile to build programs to run on HOST [BUILD]
    Так как я понимаю именно этот блок отвечает за совместиность с системой и железом роутера.
    При кросс-компиляции, вы же нативно собираете.

    По логам, проблем там вагон с прицепами, причем прицепы разные.
    Ковырять сорцы придется скорее всего.

  12. #57
    Понятно, сейчас пробую обновить установленные пакеты и буду снова пытаться скомпилировать пакет.

  13. #58
    Кажется что вся проблема нативной компиляции описана в данной статье
    http://www.linux.org.ru/books/Distro...06/kernel.html

  14. #59
    Более детальное колупание в проблеме показало, что при компиляции проекта, требуется поддержка параллельного порта системе, которого конечно же у нас нет.
    Прочитал про это здесь http://ssl.bulix.org/projects/lcd4linux/wiki/FAQ
    И тут же указано, что parport как раз за этот порт и отвечает. Описано и возможное решение, но думаю вообще исключить все драйвера дисплеев для теста и попытаться скопилировать проект нативно.

    Позже отпишуть от результатах.

    PS: Данный топик уже превращается в блог сАмашедшего, юного, компилера.

  15. #60
    ХА! Собрал!
    Но! Опять, как только я запускаю lcd4linux, роутер уходит в ребут.

    Теперь стоит только один вопрос:
    Почему при запуске lcd4linux роутер перегружается?!
    У меня есть только одна мысль - нехватка питания!

    PS: Для тестов поставил Fedora 10, в VirtualBox'е, откомпилировал и настроил, lcd4linux - прекрасно запустился и заработал.

Page 4 of 7 FirstFirst ... 23456 ... LastLast

Similar Threads

  1. Компиляция пакетов - помогите, пожалуйста..
    By Lt_Flash in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 277
    Last Post: 21-02-2016, 09:18
  2. Компиляция open-zwave
    By LnrMn in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 140
    Last Post: 24-12-2012, 00:39
  3. Кросс-компиляция rTorrent
    By al37919 in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 94
    Last Post: 22-04-2012, 19:48
  4. Компиляция mc
    By angel_il in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 432
    Last Post: 02-12-2011, 14:32
  5. Потери пакетов
    By oradba in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 135
    Last Post: 27-09-2011, 18:09

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
  •