On 02/22/2011 09:10 PM, Bruce Dubbs wrote:
> I ran into a couple of problems with Xulrunner.
>
> 1.  The patch is
>
> firefox-3.6.13-provide_system_nspr_nss-1.patch
>
> but the book applies:
>
> firefox-3.6.13-provide_system_nss_nspr-1.patch
>
> This is a simple transpose of nss_nspr and it applies fine when you use
> the right filename.
>
> 2.  I get an error right away:
>
> configure: error: You must specify MOZ_OFFICIAL_BRANDING_DIRECTORY to
> use --enable-official-branding.
>
> I can remove the --enable-official-branding, but I don't know how to
> specify MOZ_OFFICIAL_BRANDING_DIRECTORY.
>
> 3.  configure: error: --with-system-nspr and --with-nspr-libs/cflags are
> mutually exclusive.
>
> This may be an error on my part because I don't think I have system nspr
> installed.  Commenting out nspr/nns gets through the configure.
>

Hmm...I didn't look at the book, but you shouldn't have branding in 
xulrunner, this is only for the front-end applications (Firefox, 
Thunderbird, Lightening/Sunbird, and Seamonkey). I would, however, had 
thought this switch would have been silently ignored and simply 
discarded by the makefiles deeper in the tree.
> 4.  This is the big problem I have.
> ipc/chromium/src/third_party/libevent/event.c does not build.  I get
>
> line 226: error: 'ev_next' undeclared
> line 240: error: 'ev_active_next' undeclared
> line 298: error: 'ev_next' undeclared
 > The build line is:
> gcc -o event.o -c  -DMOZILLA_INTERNAL_API -D_IMPL_NS_COM
> -DEXPORT_XPT_API -DEXPORT_XPTC_API -D_IMPL_NS_COM_OBSOLETE
> -D_IMPL_NS_GFX -D_IMPL_NS_WIDGET -DIMPL_XREAPI -DIMPL_NS_NET
> -DIMPL_THEBES  -DOSTYPE=\"Linux2.6.22\" -DOSARCH=Linux
> -DEXCLUDE_SKIA_DEPENDENCIES -DCHROMIUM_MOZILLA_BUILD  -DOS_LINUX=1
> -DOS_POSIX=1  -DHAVE_CONFIG_H
> -I/usr/src/firefox/mozilla-1.9.2/ipc/chromium/src
> -I/usr/src/firefox/mozilla-1.9.2/ipc/glue -I../../ipc/ipdl/_ipdlheaders
>    -I/usr/src/firefox/mozilla-1.9.2/ipc/chromium/src/third_party/libevent
> -I/usr/src/firefox/mozilla-1.9.2/ipc/chromium/src/third_party/libevent/linux
> -I/usr/src/firefox/mozilla-1.9.2/ipc/chromium -I. -I../../dist/include
> -I../../dist/include/nsprpub
> -I/usr/src/firefox/xulrunner-build/dist/include/nspr
> -I/usr/src/firefox/xulrunner-build/dist/include/nss
> -I/usr/X11R6/include   -fPIC -I/usr/X11R6/include -Wall -W -Wno-unused
> -Wpointer-arith -Wcast-align -W -Wno-long-long -pedantic
> -fno-strict-aliasing -pthread -pipe  -DNDEBUG -DTRIMMED
> -I/usr/X11R6/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
> -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0
> -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
> -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12
> -I/usr/include/gtk-unix-print-2.0   -Os -freorder-blocks
> -fno-reorder-functions   -I/usr/X11R6/include -include
> ../../mozilla-config.h -DMOZILLA_CLIENT -Wp,-MD,.deps/event.pp
> /usr/src/firefox/mozilla-1.9.2/ipc/chromium/src/third_party/libevent/event.c
>
> Yes, it is an old kernel.
The -I../../dist/include/nsprpub would indicate that you are using internal 
nspr, but then the next -I is for the system nspr. Something looks a little 
whacky there, but I have the same in my own build log:


ev*next would be defined in the build tree in 
/usr/src/firefox/mozilla-1.9.2/ipc/chromium/src/third_party/libevent/event.h, 
which is covered above. Old kernel certainly could be the culprit..make 
sure <sys/queue.h> satisfies event.h.

-- DJ Lucas



-- 
This message has been scanned for viruses and
dangerous content, and is believed to be clean.

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to