LINUX.ORG.RU

Help! по сборке FF


0

0

___ /usr/src/mozilla ___ # ./configure --enable-default-toolkit=xlib --disable-gtktest --enable-application=browser --disable-ldap --disable-mailnews --disable-freetype2 --disable-postscript --disable-xprint --disable-gnomevfs --disable-gnomeui --disable-crypto --disable-jsd --disable-plugins --disable-oji --disable-view-source --disable-accessibility --disable-xpfe-components --disable-jsloader --disable-printing --disable-composer --disable-xtf --disable-inspector-apis --disable-mathml --disable-installer --disable-updater --disable-activex --disable-activex-scripting --disable-tests --disable-feeds --disable-logging --disable-pedantic --disable-auto-deps --disable-md --without-libIDL --disable-libIDLtest --disable-glibtest --disable-glib --disable-gtk --disable-qt ___ /usr/src/mozilla ___ # make rm -f -rf ./dist/sdk rm -f -rf ./dist/include /usr/bin/make -C config export make[1]: Entering directory `/home/sys/src/mozilla/config' /usr/bin/perl -I. ./bdate.pl build_number gcc -DOSTYPE=\"Linux2.6\" -DOSARCH=\"Linux\" -DBUILD_ID=0000000000 -I../dist/include -I../dist/include -I../dist/include/nspr -I../dist/sdk/include -I/usr/X11R6/include -fPIC -I/usr/X11R6/include -Wall -W -Wno-unused -Wpointer-arith -Wcast-align -Wno-long-long -pthread -pipe -DNDEBUG -DTRIMMED -O3 -I/usr/X11R6/include -include ../mozilla-config.h -DMOZILLA_CLIENT -o elf-dynstr-gc elf-dynstr-gc.c elf-dynstr-gc.c:57:18: glib.h: No such file or directory elf-dynstr-gc.c:70: error: syntax error before '*' token elf-dynstr-gc.c:70: warning: type defaults to `int' in declaration of `used_dynamic_symbols' elf-dynstr-gc.c:70: warning: data definition has no type or storage class elf-dynstr-gc.c: In function `read_word': elf-dynstr-gc.c:88: warning: implicit declaration of function `GUINT32_SWAP_LE_BE' elf-dynstr-gc.c: In function `read_sword': elf-dynstr-gc.c:96: error: `guint32' undeclared (first use in this function) elf-dynstr-gc.c:96: error: (Each undeclared identifier is reported only once elf-dynstr-gc.c:96: error: for each function it appears in.) elf-dynstr-gc.c:96: error: syntax error before "w" elf-dynstr-gc.c: In function `read_half': elf-dynstr-gc.c:112: warning: implicit declaration of function `GUINT16_SWAP_LE_BE' elf-dynstr-gc.c: In function `possibly_add_string': elf-dynstr-gc.c:369: warning: implicit declaration of function `g_hash_table_lookup' elf-dynstr-gc.c:369: error: `gpointer' undeclared (first use in this function) elf-dynstr-gc.c:369: error: syntax error before "name_idx" elf-dynstr-gc.c:373: warning: implicit declaration of function `g_new' elf-dynstr-gc.c:373: error: syntax error before "struct" elf-dynstr-gc.c:377: warning: implicit declaration of function `g_strdup' elf-dynstr-gc.c:377: warning: assignment makes pointer from integer without a cast elf-dynstr-gc.c:379: warning: implicit declaration of function `g_hash_table_insert' elf-dynstr-gc.c:379: error: syntax error before "name_idx" elf-dynstr-gc.c: In function `fixup_string': elf-dynstr-gc.c:393: error: `gpointer' undeclared (first use in this function) elf-dynstr-gc.c:393: error: syntax error before "old_idx" elf-dynstr-gc.c: At top level: elf-dynstr-gc.c:626: error: syntax error before "sum_size" elf-dynstr-gc.c:626: error: syntax error before "key" elf-dynstr-gc.c:629: warning: return type defaults to `int' elf-dynstr-gc.c: In function `sum_size': elf-dynstr-gc.c:630: error: `size' undeclared (first use in this function) elf-dynstr-gc.c:630: error: `sym' undeclared (first use in this function) elf-dynstr-gc.c: At top level: elf-dynstr-gc.c:639: error: syntax error before "output_string" elf-dynstr-gc.c:639: error: syntax error before "key" elf-dynstr-gc.c:642: warning: return type defaults to `int' elf-dynstr-gc.c: In function `output_string': elf-dynstr-gc.c:643: error: `sym' undeclared (first use in this function) elf-dynstr-gc.c:643: error: `x' undeclared (first use in this function) elf-dynstr-gc.c: In function `generate_new_dynstr': elf-dynstr-gc.c:658: warning: implicit declaration of function `g_hash_table_foreach' elf-dynstr-gc.c:659: error: `GHFunc' undeclared (first use in this function) elf-dynstr-gc.c:659: error: syntax error before "sum_size" elf-dynstr-gc.c:663: warning: implicit declaration of function `g_malloc' elf-dynstr-gc.c:663: warning: assignment makes pointer from integer without a cast elf-dynstr-gc.c:669: error: syntax error before "output_string" elf-dynstr-gc.c: In function `main': elf-dynstr-gc.c:1115: warning: implicit declaration of function `g_hash_table_new' elf-dynstr-gc.c:1115: error: `g_direct_hash' undeclared (first use in this function) elf-dynstr-gc.c:1115: error: `g_direct_equal' undeclared (first use in this function) elf-dynstr-gc.c:1115: warning: assignment makes pointer from integer without a cast make[1]: *** [elf-dynstr-gc] Ошибка 1 make[1]: Leaving directory `/home/sys/src/mozilla/config' make: *** [default] Ошибка 2 что я делаю не так? Почему вылетает glib.h: No such file or directory ведь я ясно сказал конфигуратору, что тулкитом будет xlib и никаких gtk с его glib'ом! Помогите плиз составить строчку конфигуратору! И что еще надо сделать для нормальной сборки ff2?

___ /usr/src/mozilla ___ # ./configure --enable-default-toolkit=xlib --disable-gtktest --enable-application=browser --disable-ldap --disable-mailnews --disable-freetype2 --disable-postscript --disable-xprint --disable-gnomevfs --disable-gnomeui --disable-crypto --disable-jsd --disable-plugins --disable-oji --disable-view-source --disable-accessibility --disable-xpfe-components --disable-jsloader --disable-printing --disable-composer --disable-xtf --disable-inspector-apis --disable-mathml --disable-installer --disable-updater --disable-activex --disable-activex-scripting --disable-tests --disable-feeds --disable-logging --disable-pedantic --disable-auto-deps --disable-md --without-libIDL --disable-libIDLtest --disable-glibtest --disable-glib --disable-gtk --disable-qt


___ /usr/src/mozilla ___ # make

rm -f -rf ./dist/sdk
rm -f -rf ./dist/include
/usr/bin/make -C config export
make[1]: Entering directory `/home/sys/src/mozilla/config'
/usr/bin/perl -I. ./bdate.pl build_number
gcc -DOSTYPE=\"Linux2.6\" -DOSARCH=\"Linux\" -DBUILD_ID=0000000000 -I../dist/include -I../dist/include -I../dist/include/nspr -I../dist/sdk/include -I/usr/X11R6/include -fPIC -I/usr/X11R6/include -Wall -W -Wno-unused -Wpointer-arith -Wcast-align -Wno-long-long -pthread -pipe -DNDEBUG -DTRIMMED -O3 -I/usr/X11R6/include -include ../mozilla-config.h -DMOZILLA_CLIENT -o elf-dynstr-gc elf-dynstr-gc.c
elf-dynstr-gc.c:57:18: glib.h: No such file or directory
elf-dynstr-gc.c:70: error: syntax error before '*' token
elf-dynstr-gc.c:70: warning: type defaults to `int' in declaration of `used_dynamic_symbols'
elf-dynstr-gc.c:70: warning: data definition has no type or storage class
elf-dynstr-gc.c: In function `read_word':
elf-dynstr-gc.c:88: warning: implicit declaration of function `GUINT32_SWAP_LE_BE'
elf-dynstr-gc.c: In function `read_sword':
elf-dynstr-gc.c:96: error: `guint32' undeclared (first use in this function)
elf-dynstr-gc.c:96: error: (Each undeclared identifier is reported only once
elf-dynstr-gc.c:96: error: for each function it appears in.)
elf-dynstr-gc.c:96: error: syntax error before "w"
elf-dynstr-gc.c: In function `read_half':
elf-dynstr-gc.c:112: warning: implicit declaration of function `GUINT16_SWAP_LE_BE'
elf-dynstr-gc.c: In function `possibly_add_string':
elf-dynstr-gc.c:369: warning: implicit declaration of function `g_hash_table_lookup'
elf-dynstr-gc.c:369: error: `gpointer' undeclared (first use in this function)
elf-dynstr-gc.c:369: error: syntax error before "name_idx"
elf-dynstr-gc.c:373: warning: implicit declaration of function `g_new'
elf-dynstr-gc.c:373: error: syntax error before "struct"
elf-dynstr-gc.c:377: warning: implicit declaration of function `g_strdup'
elf-dynstr-gc.c:377: warning: assignment makes pointer from integer without a cast
elf-dynstr-gc.c:379: warning: implicit declaration of function `g_hash_table_insert'
elf-dynstr-gc.c:379: error: syntax error before "name_idx"
elf-dynstr-gc.c: In function `fixup_string':
elf-dynstr-gc.c:393: error: `gpointer' undeclared (first use in this function)
elf-dynstr-gc.c:393: error: syntax error before "old_idx"
elf-dynstr-gc.c: At top level:
elf-dynstr-gc.c:626: error: syntax error before "sum_size"
elf-dynstr-gc.c:626: error: syntax error before "key"
elf-dynstr-gc.c:629: warning: return type defaults to `int'
elf-dynstr-gc.c: In function `sum_size':
elf-dynstr-gc.c:630: error: `size' undeclared (first use in this function)
elf-dynstr-gc.c:630: error: `sym' undeclared (first use in this function)
elf-dynstr-gc.c: At top level:
elf-dynstr-gc.c:639: error: syntax error before "output_string"
elf-dynstr-gc.c:639: error: syntax error before "key"
elf-dynstr-gc.c:642: warning: return type defaults to `int'
elf-dynstr-gc.c: In function `output_string':
elf-dynstr-gc.c:643: error: `sym' undeclared (first use in this function)
elf-dynstr-gc.c:643: error: `x' undeclared (first use in this function)
elf-dynstr-gc.c: In function `generate_new_dynstr':
elf-dynstr-gc.c:658: warning: implicit declaration of function `g_hash_table_foreach'
elf-dynstr-gc.c:659: error: `GHFunc' undeclared (first use in this function)
elf-dynstr-gc.c:659: error: syntax error before "sum_size"
elf-dynstr-gc.c:663: warning: implicit declaration of function `g_malloc'
elf-dynstr-gc.c:663: warning: assignment makes pointer from integer without a cast
elf-dynstr-gc.c:669: error: syntax error before "output_string"
elf-dynstr-gc.c: In function `main':
elf-dynstr-gc.c:1115: warning: implicit declaration of function `g_hash_table_new'
elf-dynstr-gc.c:1115: error: `g_direct_hash' undeclared (first use in this function)
elf-dynstr-gc.c:1115: error: `g_direct_equal' undeclared (first use in this function)
elf-dynstr-gc.c:1115: warning: assignment makes pointer from integer without a cast
make[1]: *** [elf-dynstr-gc] Ошибка 1
make[1]: Leaving directory `/home/sys/src/mozilla/config'
make: *** [default] Ошибка 2

что я делаю не так? Почему вылетает glib.h: No such file or directory ведь я ясно сказал конфигуратору, что тулкитом будет xlib и никаких gtk с его glib'ом!
Помогите плиз составить строчку конфигуратору! И что еще надо сделать для нормальной сборки ff2?

David_Kaneda
() автор топика

Говорят, в лисе xlib в качестве тулкита в последних версиях работает криво (если вообще работает)... Потом, сам glib к gtk не привязан (он никак на гуй не завязан вообще). Может, ему нужен glib, но не нужен гтк.

slav ★★
()
Ответ на: комментарий от David_Kaneda

Зачем мне glib? Неужели ФФ без него не заработает? :)
проблема решилась добавлением --disable-elf-dynstr-gc

компиляция начинается, но вскоре снова ошибка

make[4]: Entering directory `/home/sys/src/mozilla/xpcom/typelib/xpidl'
Creating .deps
make[5]: Entering directory `/home/sys/src/mozilla/xpcom/typelib/xpidl'
xpidl.c
gcc -o xpidl.o -c -DOSTYPE=\"Linux2.6\" -DOSARCH=\"Linux\" -DBUILD_ID=0000000000 -I../../../dist/include/xpcom -I../../../dist/include -I../../../dist/include/nspr -I../../../dist/sdk/include -I/usr/X11R6/include -fPIC -I/usr/X11R6/include -Wall -W -Wno-unused -Wpointer-arith -Wcast-align -Wno-long-long -pthread -pipe -DNDEBUG -DTRIMMED -O -I/usr/X11R6/include -include ../../../mozilla-config.h -DMOZILLA_CLIENT xpidl.c
In file included from xpidl.c:42:
xpidl.h:49:18: glib.h: No such file or directory
xpidl.h:53:24: libIDL/IDL.h: No such file or directory
In file included from xpidl.c:42:
xpidl.h:83: error: syntax error before "enable_debug"
xpidl.h:83: warning: type defaults to `int' in declaration of `enable_debug'
xpidl.h:83: warning: data definition has no type or storage class
xpidl.h:84: error: syntax error before "enable_warnings"
xpidl.h:84: warning: type defaults to `int' in declaration of `enable_warnings'
xpidl.h:84: warning: data definition has no type or storage class
xpidl.h:85: error: syntax error before "verbose_mode"
xpidl.h:85: warning: type defaults to `int' in declaration of `verbose_mode'
xpidl.h:85: warning: data definition has no type or storage class
xpidl.h:86: error: syntax error before "emit_typelib_annotations"
xpidl.h:86: warning: type defaults to `int' in declaration of `emit_typelib_annotations'
xpidl.h:86: warning: data definition has no type or storage class
..........
xpidl.c:107: error: `FALSE' undeclared (first use in this function)
xpidl.c:131: error: `TRUE' undeclared (first use in this function)
xpidl.c:144: error: syntax error before '*' token
make[5]: *** [xpidl.o] Ошибка 1
make[5]: Leaving directory `/home/sys/src/mozilla/xpcom/typelib/xpidl'
make[4]: *** [export] Ошибка 2
make[4]: Leaving directory `/home/sys/src/mozilla/xpcom/typelib/xpidl'
make[3]: *** [export] Ошибка 2
make[3]: Leaving directory `/home/sys/src/mozilla/xpcom/typelib'
make[2]: *** [export] Ошибка 2
make[2]: Leaving directory `/home/sys/src/mozilla/xpcom'
make[1]: *** [tier_2] Ошибка 2
make[1]: Leaving directory `/home/sys/src/mozilla'
make: *** [default] Ошибка 2


что за фигня? Что такое xpidl? можно как-нить запретить использование оного?

David_Kaneda
() автор топика
Ответ на: комментарий от David_Kaneda

А кстати, mozilla-dev надо устанавливать чтобы собрать файрфокс?

anonymous
()
Ответ на: комментарий от David_Kaneda

libIDL тоже желательно поставить.

Рабочий .mozconfig (ff-1.0.8):

######

export MOZ_PHOENIX=1
mk_add_options MOZ_PHOENIX=1

ac_add_options --disable-ldap
ac_add_options --disable-mailnews
ac_add_options --enable-extensions=cookie,xml-rpc,xmlextras,pref,transformiix,un
iversalchardet,webservices,inspector,negotiateauth
ac_add_options --enable-crypto
ac_add_options --disable-composer
ac_add_options --enable-single-profile
ac_add_options --disable-profilesharing

# Options for client.mk.

mk_add_options MOZ_CO_PROJECT=browser
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-@CONFIG_GUESS@

# Options for 'configure' (same as command-line options).

ac_add_options --prefix=/tmp/ozenin/opt/ff108xlib
ac_add_options --with-pthreads
ac_add_options --enable-default-toolkit=xlib
ac_add_options --enable-application=browser
ac_add_options --enable-ui-locale=en-US
#ac_add_options --disable-mailnews
#ac_add_options --disable-ldap

ac_add_options --disable-xft

ac_add_options --disable-gnomevfs
ac_add_options --disable-gnomeui
ac_add_options --disable-jsd
ac_add_options --disable-accessibility

ac_add_options --disable-mathml
ac_add_options --disable-tests
ac_add_options --enable-optimize=-O2
ac_add_options --disable-logging
ac_add_options --enable-strip

ac_add_options --disable-debug

anonymous
()
Ответ на: комментарий от anonymous

Собирал thunderbird не так давно. после сборки в папках с сорцами нашел только бинарник firefox-a :)(хотя сорцы назывались именно thunderbird-...) До этого собирал glib и gtk последние - так что должно и у вас собираться.

The_Ketchup ★★
()
Ответ на: комментарий от anonymous

Собирал thunderbird не так давно. после сборки в папках с сорцами нашел только бинарник firefox-a :)(хотя сорцы назывались именно thunderbird-...) До этого собирал glib и gtk последние - так что должно и у вас собираться.

The_Ketchup ★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.