maradns с конфигами в /opt/etc/maradns
готов
мучительно и долго, но таки собран на самой железяки
посоветуйте dns сервер, который может держать(обслуживать) зону и отдавать (оповещать) slave + запросы пользователей сети
я рылся пару дней, пришел к выводу - maradns
однако готового пакета нету
интересует еще процесс сборки пакета из скомпиленного на рутере софта
maradns с конфигами в /opt/etc/maradns
готов
мучительно и долго, но таки собран на самой железяки
Добрый день!
Есть пару вопросов по сборке ПО на роутере:
1) Какой --prefix разумнее использовать при вызове configure: /opt или /opt/my (например, т.е. отличный от /opt, что бы не мешать с ПО из пакетов)?
2) Если использовать отличный от /opt, то что еще надо сконфигурировать, что бы при поиске исполняемых файлов и библиотек, в первую очередь находились те, к-ые собрал я, а не из пакетов?
все правильно. С одной стороны, чтобы упростить понимание откуда что взялось и при необходимости повторение конфигурации имеет смысл ставить самостоятельно скомпиленные пакеты отдельно. Например, я ставлю в /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.
надо добавлять в /opt/etc/ld.so.conf а вот что касается порядка просмотра --- похоже, что пути /opt/lib и /opt/usr/lib вкомпилены внутрь и просматриваются всегда первыми.
Заранее прошу меня простить, если подобная тема поднималась, но поиск по форуму (как местным поиском, так и при помощи Гугла), положительных результатов не дал.
Поэтому прошу специалистов, помочь в некоторых данных, чтобы лучше понять процесс нативной компиляции для 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
Данные пункты для нашей системы не нужны, так как мне кажется это необходимо для X-Window, а данная поддержака нам не нужна.PHP Code:
X features:
--x-includes=DIR X include files are in DIR
--x-libraries=DIR X library files are in DIR
Тут тоже неочень понятно, что правильно указать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:
BeckmannEgle, BWCT, CrystalFontz, Curses, Cwlinux, D4D,
G15, 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, X11
--with-plugins=<list> choose which plugins to compile.
type --with-plugins=list for a 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=(Не нашел самой библиотеки, ни в файловой системе, ни в репозитории. Вероятно она не пригодится, так как нам не надо конвертировать сиволы, все будет на английском)
Уважаемые Гуру, просветите плз, по пунктам, которые вызвали вопросы, я думаю, что на таком показательном примере и остальным будет проще понять как использовать нитывную компиляцию.
Заранее благодарен, за вашу помощь.
Пока гуру спятПодскажите плз, какие пути тут необходимо указать?!
Насколько я понял
--prefix=/opt
--exec-prefix=???
--prefix=/opt
--exec-prefix=/opt
Префикс для этих каталагов будет взят из ”--exec-prefix”, если нужна более тонкая настройка, тогда узывайте свой префикс для нужных вам директорий.В данном разделе одни вопросы, какие тут необходимо указать директории?!
Вы конфигурировать начните, вам и скажут, что вам нужно, а что нет
Меня больше интересует, что необходимо тут указать
Так как я понимаю именно этот блок отвечает за совместиность с системой и железом роутера.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 -W -fno-strict-aliasing -g -O2 -MT drv_generic_parport.o -MD -MP -MF .deps/drv_generic_parport.Tpo -c -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:31: error: expected specifier-qualifier-list before 'wait_queue_head_t'
/opt/include/asm/semaphore.h: In function 'sema_init':
/opt/include/asm/semaphore.h:67: error: '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.h: At top level:
/opt/include/asm/signal.h:20: error: conflicting types for 'sigset_t'
/opt/include/sys/select.h:38: error: previous declaration of 'sigset_t' was here
/opt/include/asm/signal.h:129: error: redefinition of 'struct sigaction'
/opt/include/asm/signal.h:131: error: expected ':', ',', ';', '}' or '__attribute__' before '.' token
/opt/include/asm/signal.h:142: error: redefinition 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:15: error: redefinition of 'union sigval'
/opt/include/asm/siginfo.h:26: error: redefinition of 'struct siginfo'
/opt/include/asm/siginfo.h:220: error: redefinition 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:9: error: redefinition of 'struct timespec'
/opt/include/linux/time.h:88: error: redefinition of 'struct timeval'
/opt/include/linux/time.h:119: error: redefinition 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:102: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fpureg_t'
/opt/include/asm/processor.h:104: error: expected 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:58: error: expected 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:192: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'invalid_pte_table'
/opt/include/asm/pgtable.h:198: error: expected ')' before 'pmd'
/opt/include/asm/pgtable.h:203: error: expected ')' before '*' token
/opt/include/asm/pgtable.h:208: error: expected ')' before 'pte'
/opt/include/asm/pgtable.h:209: error: expected ')' before 'pte'
/opt/include/asm/pgtable.h:215: error: expected ')' before '*' token
/opt/include/asm/pgtable.h:231: error: expected ')' before '*' token
/opt/include/asm/pgtable.h:252: error: expected ')' before 'pmd'
/opt/include/asm/pgtable.h:257: error: expected ')' before 'pmd'
/opt/include/asm/pgtable.h:263: error: expected ')' before 'pmd'
/opt/include/asm/pgtable.h:268: error: expected ')' before '*' token
/opt/include/asm/pgtable.h:278: error: expected ')' before 'pgd'
/opt/include/asm/pgtable.h:279: error: expected ')' before 'pgd'
/opt/include/asm/pgtable.h:280: error: expected ')' before 'pgd'
/opt/include/asm/pgtable.h:281: error: expected ')' before '*' token
/opt/include/asm/pgtable.h:297: error: expected ')' before 'pte'
/opt/include/asm/pgtable.h:298: error: expected ')' before 'pte'
/opt/include/asm/pgtable.h:299: error: expected ')' before 'pte'
/opt/include/asm/pgtable.h:300: error: expected ')' before 'pte'
/opt/include/asm/pgtable.h:302: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'pte_wrprotect'
/opt/include/asm/pgtable.h:308: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'pte_rdprotect'
/opt/include/asm/pgtable.h:314: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'pte_mkclean'
/opt/include/asm/pgtable.h:320: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'pte_mkold'
/opt/include/asm/pgtable.h:326: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'pte_mkwrite'
/opt/include/asm/pgtable.h:334: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'pte_mkread'
/opt/include/asm/pgtable.h:342: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'pte_mkdirty'
/opt/include/asm/pgtable.h:358: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'pgprot_noncached'
/opt/include/asm/pgtable.h:367: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'pte_mkyoung'
/opt/include/asm/pgtable.h:402: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'mk_pte_phys'
/opt/include/asm/pgtable.h:411: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'pte_modify'
/opt/include/asm/pgtable.h:428: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/opt/include/asm/pgtable.h:434: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/opt/include/asm/pgtable.h:440: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/opt/include/asm/pgtable.h:448: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'swapper_pg_dir'
/opt/include/asm/pgtable.h:452: error: expected declaration specifiers or '...'
Last edited by Break Action; 17-07-2009 at 11:05.
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:4: error: expected ')' before '*' token
/opt/include/asm-generic/pgtable.h:13: error: expected ')' before '*' token
/opt/include/asm-generic/pgtable.h:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ptep_get_and_clear'
/opt/include/asm-generic/pgtable.h:29: error: expected ')' before '*' token
/opt/include/asm-generic/pgtable.h:35: error: expected ')' 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:70: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/opt/include/asm/pgalloc.h:83: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/opt/include/asm/pgalloc.h:96: error: expected ')' before '*' token
/opt/include/asm/pgalloc.h:103: error: expected ')' before '*' token
/opt/include/asm/pgalloc.h:108: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/opt/include/asm/pgalloc.h:120: error: expected ')' before '*' token
/opt/include/asm/pgalloc.h:127: error: expected ')' before '*' token
/opt/include/asm/pgalloc.h:133: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/opt/include/asm/pgalloc.h:138: error: expected ')' before '*' token
/opt/include/asm/pgalloc.h:142: error: expected ')' before '*' token
/opt/include/asm/pgalloc.h:146: error: expected ')' before '*' token
/opt/include/asm/pgalloc.h:148: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/opt/include/asm/pgalloc.h:158: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/opt/include/asm/pgalloc.h:170: error: expected ')' before '*' token
/opt/include/asm/pgalloc.h:177: error: expected ')' before '*' token
In file included from /opt/include/asm-mips/io.h:15,
from drv_generic_parport.c:47:
/opt/include/linux/pagemap.h: In function 'page_cache_alloc':
/opt/include/linux/pagemap.h:36: error: dereferencing pointer to incomplete type
/opt/include/linux/pagemap.h: In function '_page_hashfn':
/opt/include/linux/pagemap.h:66: error: invalid application of 'sizeof' to incomplete type 'struct inode'
/opt/include/linux/pagemap.h:66: error: invalid application of 'sizeof' to incomplete type 'struct inode'
/opt/include/linux/pagemap.h:66: error: invalid application of 'sizeof' to incomplete type 'struct inode'
/opt/include/linux/pagemap.h:66: error: invalid application of 'sizeof' to incomplete type 'struct inode'
/opt/include/linux/pagemap.h: At top level:
/opt/include/linux/pagemap.h:82: error: expected ')' before '(' token
/opt/include/linux/pagemap.h:83: error: expected ')' before '(' token
/opt/include/linux/pagemap.h: In function 'grab_cache_page':
/opt/include/linux/pagemap.h:105: error: dereferencing pointer to incomplete type
In file included from drv_generic_parport.c:47:
/opt/include/asm-mips/io.h: At top level:
/opt/include/asm-mips/io.h:71: error: expected ')' before 'offset'
/opt/include/asm-mips/io.h: In function 'virt_to_phys':
/opt/include/asm-mips/io.h:240: error: 'PAGE_OFFSET' undeclared (first use in this function)
/opt/include/asm-mips/io.h:240: error: (Each undeclared identifier is reported only once
/opt/include/asm-mips/io.h:240: error: for each function it appears in.)
/opt/include/asm-mips/io.h: In function 'phys_to_virt':
/opt/include/asm-mips/io.h:258: error: 'PAGE_OFFSET' undeclared (first use in this function)
/opt/include/asm-mips/io.h: In function 'virt_to_bus':
/opt/include/asm-mips/io.h:266: error: 'PAGE_OFFSET' undeclared (first use in this function)
/opt/include/asm-mips/io.h: In function 'bus_to_virt':
/opt/include/asm-mips/io.h:271: error: 'PAGE_OFFSET' undeclared (first use in this function)
/opt/include/asm-mips/io.h: At top level:
/opt/include/asm-mips/io.h:305: error: expected ')' before 'val'
/opt/include/asm-mips/io.h:310: error: expected ')' before 'val'
/opt/include/asm-mips/io.h:316: error: expected ')' before 'val'
/opt/include/asm-mips/io.h:321: error: expected ')' before 'val'
/opt/include/asm-mips/io.h:327: error: expected ')' before 'val'
/opt/include/asm-mips/io.h:334: error: expected ')' before 'val'
/opt/include/asm-mips/io.h: In function 'inb':
/opt/include/asm-mips/io.h:342: error: expected ')' before 'u8'
/opt/include/asm-mips/io.h:342: error: invalid type argument of 'unary *'
/opt/include/asm-mips/io.h: In function 'inw':
/opt/include/asm-mips/io.h:349: error: expected ')' before 'u16'
/opt/include/asm-mips/io.h:349: error: invalid type argument of 'unary *'
/opt/include/asm-mips/io.h: In function 'inl':
/opt/include/asm-mips/io.h:354: error: expected ')' before 'u32'
/opt/include/asm-mips/io.h:354: error: invalid type argument of 'unary *'
/opt/include/asm-mips/io.h: In function 'inb_p':
/opt/include/asm-mips/io.h:359: error: 'u8' undeclared (first use in this function)
/opt/include/asm-mips/io.h:359: error: expected ';' before '__val'
/opt/include/asm-mips/io.h:361: error: '__val' undeclared (first use in this function)
/opt/include/asm-mips/io.h:361: error: expected ')' before 'u8'
/opt/include/asm-mips/io.h:361: error: invalid type argument of 'unary *'
/opt/include/asm-mips/io.h: In function 'inw_p':
/opt/include/asm-mips/io.h:369: error: 'u16' undeclared (first use in this function)
/opt/include/asm-mips/io.h:369: error: expected ';' before '__val'
/opt/include/asm-mips/io.h:372: error: '__val' undeclared (first use in this function)
/opt/include/asm-mips/io.h:372: error: expected ')' before 'u16'
/opt/include/asm-mips/io.h:372: error: invalid type argument of 'unary *'
/opt/include/asm-mips/io.h: In function 'inl_p':
/opt/include/asm-mips/io.h:380: error: 'u32' undeclared (first use in this function)
/opt/include/asm-mips/io.h:380: error: expected ';' before '__val'
/opt/include/asm-mips/io.h:382: error: '__val' undeclared (first use in this function)
/opt/include/asm-mips/io.h:382: error: expected ')' before 'u32'
/opt/include/asm-mips/io.h:382: error: invalid type argument of 'unary *'
/opt/include/asm-mips/io.h: At top level:
/opt/include/asm-mips/io.h:387: error: expected ';', ',' or ')' before '*' token
/opt/include/asm-mips/io.h:395: error: expected declaration specifiers or '...' before 'u8'
/opt/include/asm-mips/io.h: In function '__insb':
/opt/include/asm-mips/io.h:398: error: 'addr' undeclared (first use in this function)
/opt/include/asm-mips/io.h: At top level:
/opt/include/asm-mips/io.h:403: error: expected ';', ',' or ')' before '*' token
/opt/include/asm-mips/io.h:411: error: expected declaration specifiers or '...' before 'u16'
/opt/include/asm-mips/io.h: In function '__insw':
/opt/include/asm-mips/io.h:414: error: 'addr' undeclared (first use in this function)
/opt/include/asm-mips/io.h: At top level:
/opt/include/asm-mips/io.h:419: error: expected ';', ',' or ')' before '*' token
/opt/include/asm-mips/io.h:427: error: expected declaration specifiers or '...' before 'u32'
/opt/include/asm-mips/io.h: In function '__insl':
/opt/include/asm-mips/io.h:430: error: 'addr' undeclared (first use in this function)
drv_generic_parport.c: In function 'drv_generic_parport_open':
drv_generic_parport.c:162: warning: implicit declaration of function 'ioperm'
drv_generic_parport.c:167: warning: implicit declaration of function 'iopl'
drv_generic_parport.c: In function 'drv_generic_parport_direction':
drv_generic_parport.c:382: warning: implicit declaration of function 'outb'
drv_generic_parport.c: In function 'inb':
/opt/include/asm-mips/io.h:343: warning: control reaches end of non-void function
make[1]: *** [drv_generic_parport.o] Error 1
make[1]: Leaving directory `/opt/tmp/compiling/lcd4linux'
make: *** [all] Error 2
При кросс-компиляции, вы же нативно собираете.Меня больше интересует, что необходимо тут указать
PHP код:
Так как я понимаю именно этот блок отвечает за совместиность с системой и железом роутера.Code:System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD]
По логам, проблем там вагон с прицепами, причем прицепы разные.
Ковырять сорцы придется скорее всего.
Понятно, сейчас пробую обновить установленные пакеты и буду снова пытаться скомпилировать пакет.
Кажется что вся проблема нативной компиляции описана в данной статье
http://www.linux.org.ru/books/Distro...06/kernel.html
Более детальное колупание в проблеме показало, что при компиляции проекта, требуется поддержка параллельного порта системе, которого конечно же у нас нет.
Прочитал про это здесь http://ssl.bulix.org/projects/lcd4linux/wiki/FAQ
И тут же указано, что parport как раз за этот порт и отвечает. Описано и возможное решение, но думаю вообще исключить все драйвера дисплеев для теста и попытаться скопилировать проект нативно.
Позже отпишуть от результатах.
PS: Данный топик уже превращается в блог сАмашедшего, юного, компилера.
ХА! Собрал!
Но! Опять, как только я запускаю lcd4linux, роутер уходит в ребут.
Теперь стоит только один вопрос:
Почему при запуске lcd4linux роутер перегружается?!
У меня есть только одна мысль - нехватка питания!
PS: Для тестов поставил Fedora 10, в VirtualBox'е, откомпилировал и настроил, lcd4linux - прекрасно запустился и заработал.