Can't build MozillaFirefox from sources in SLED11

I’m trying to build MozillaFirefox in SLED 11 from SLED source rpm.

Spec file says:
Name: MozillaFirefox
Version: 3.6.24
Release: 0.3.1

I run build witch command ‘rpmbuild -bb MozillaFirefox.spec’

Unfortunately it ends to this:

nsUnixShellService.cpp
c++ -o nsUnixShellService.o -c -I…/…/…/…/dist/system_wrappers
-include …/…
/…/…/config/gcc_hidden.h -DOSTYPE=“Linux2.6.32.49-0” -DOSARCH=Linux
-DMOZ_AP
P_NAME=“firefox” -I…/…/…/…/toolkit/xre -I. -I.
-I…/…/…/…/dist/include
-I…/…/…/…/dist/include/nsprpub
-I/usr/lib/xulrunner-devel-1.9.0.19/include -
I/usr/lib/xulrunner-devel-1.9.0.19/include/nsprpub -I/usr/include/nspr4
-I/usr/i
nclude/nss3 -fPIC -fno-rtti -fno-exceptions -Wall
-Wpointer-arith -Wov
erloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor
-Wcast-ali
gn -Wno-invalid-offsetof -Wno-long-long -pedantic -O2 -g -m32
-march=i586 -mtune
=i686 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector
-funwind-tables -
fasynchronous-unwind-tables -Os -fno-strict-aliasing
-fno-strict-aliasing -fshor
t-wchar -pthread -pipe -DNDEBUG -DTRIMMED -Os -freorder-blocks
-fno-reorder-fun
ctions -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/li
b/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
-DMOZILLA_CLIENT -include …/…/…/…/mozilla-config.h
-Wp,-MD,.deps/nsUnixShellService.pp nsUnixShellService.cpp
nsUnixShellService.cpp:40:24: error: nsKDEUtils.h: No such file or
directory
nsUnixShellService.cpp: In function ‘nsresult
nsUnixShellServiceConstructor(nsISupports*, const nsIID&, void**)’:
nsUnixShellService.cpp:49: error: ‘nsKDEUtils’ has not been declared
make[7]: *** [nsUnixShellService.o] Error 1
make[7]: Leaving directory
`/usr/src/packages/BUILD/mozilla/browser/components/shell/src’
make[6]: *** [libs] Error 2

Any hints what is missing?


tavasti

tavasti’s Profile: http://forums.novell.com/member.php?userid=117297
View this thread: http://forums.novell.com/showthread.php?t=451482

On Sat, 28 Jan 2012 17:16:02 GMT
tavasti tavasti@no-mx.forums.novell.com wrote:
[color=blue]

I’m trying to build MozillaFirefox in SLED 11 from SLED source rpm.

Spec file says:
Name: MozillaFirefox
Version: 3.6.24
Release: 0.3.1

I run build witch command ‘rpmbuild -bb MozillaFirefox.spec’

Unfortunately it ends to this:

nsUnixShellService.cpp
c++ -o nsUnixShellService.o -c -I…/…/…/…/dist/system_wrappers
-include …/…
/…/…/config/gcc_hidden.h -DOSTYPE="Linux2.6.32.49-0"
-DOSARCH=Linux -DMOZ_AP
P_NAME="firefox" -I…/…/…/…/toolkit/xre -I. -I.
-I…/…/…/…/dist/include
-I…/…/…/…/dist/include/nsprpub
-I/usr/lib/xulrunner-devel-1.9.0.19/include -
I/usr/lib/xulrunner-devel-1.9.0.19/include/nsprpub
-I/usr/include/nspr4 -I/usr/i
nclude/nss3 -fPIC -fno-rtti -fno-exceptions -Wall
-Wpointer-arith -Wov
erloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor
-Wcast-ali
gn -Wno-invalid-offsetof -Wno-long-long -pedantic -O2 -g -m32
-march=i586 -mtune
=i686 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector
-funwind-tables -
fasynchronous-unwind-tables -Os -fno-strict-aliasing
-fno-strict-aliasing -fshor
t-wchar -pthread -pipe -DNDEBUG -DTRIMMED -Os -freorder-blocks
-fno-reorder-fun
ctions -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/li
b/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
-DMOZILLA_CLIENT -include …/…/…/…/mozilla-config.h
-Wp,-MD,.deps/nsUnixShellService.pp nsUnixShellService.cpp
nsUnixShellService.cpp:40:24: error: nsKDEUtils.h: No such file or
directory
nsUnixShellService.cpp: In function ‘nsresult
nsUnixShellServiceConstructor(nsISupports*, const nsIID&, void**)’:
nsUnixShellService.cpp:49: error: ‘nsKDEUtils’ has not been declared
make[7]: *** [nsUnixShellService.o] Error 1
make[7]: Leaving directory
`/usr/src/packages/BUILD/mozilla/browser/components/shell/src’
make[6]: *** [libs] Error 2

Any hints what is missing?

[/color]
Hi
The internal (as in Open Build Service) setup environment probably, it
has a default build environment, eg make gcc and other devel packages.

The missing nsKDEUtils.h file is in mozilla-xulrunner192-devel so you
need to install that.


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 12.1 (x86_64) Kernel 3.1.0-1.2-desktop
up 13:42, 5 users, load average: 0.01, 0.04, 0.05
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

malcolmlewis;2171420 Wrote:[color=blue]

On Sat, 28 Jan 2012 17:16:02 GMT
The internal (as in Open Build Service) setup environment probably, it
has a default build environment, eg make gcc and other devel packages.

The missing nsKDEUtils.h file is in mozilla-xulrunner192-devel so you
need to install that.[/color]

It is installed:
localhost:~ # zypper se xulrunner
Refreshing service ‘nu_novell_com’.
Loading repository data…
Reading installed packages…

S | Name | Summary |
Type
–±----------------------------------±----------------------------±----------
i | mozilla-xulrunner190 | Mozilla Runtime Environme-> |
package
| mozilla-xulrunner190 | Mozilla Runtime Environme-> |
srcpackage
i | mozilla-xulrunner190-devel | XULRunner/Gecko SDK 1.9 |
package
i | mozilla-xulrunner190-gnomevfs | XULRunner components depe-> |
package
| mozilla-xulrunner190-translations | Translations for XULRunne-> |
package
i | mozilla-xulrunner191 | Mozilla Runtime Environme-> |
package
| mozilla-xulrunner191 | Mozilla Runtime Environme-> |
srcpackage
| mozilla-xulrunner191-devel | XULRunner/Gecko SDK 1.9.1 |
package
i | mozilla-xulrunner191-gnomevfs | Mozilla Runtime Environme-> |
package
i | mozilla-xulrunner191-translations | Mozilla Runtime Environme-> |
package
| mozilla-xulrunner192 | Mozilla Runtime Environme-> |
srcpackage
i | mozilla-xulrunner192 | Mozilla Runtime Environme-> |
package
i | mozilla-xulrunner192-devel | Mozilla Runtime Environme-> |
package
i | mozilla-xulrunner192-gnome | Mozilla Runtime Environme-> |
package
i | mozilla-xulrunner192-translations | Mozilla Runtime Environme-> |
package
| sdksp1-mozilla-xulrunner191 | Security update for Mozil-> |
patch
i | sledsp1-mozilla-xulrunner191 | Security update for Mozil-> |
patch

–Tavasti


tavasti

tavasti’s Profile: http://forums.novell.com/member.php?userid=117297
View this thread: http://forums.novell.com/showthread.php?t=451482

Hi
The only thing I can thin of trying is an export before building (or
add in the spec file before you configure command;

export SUSE_ASNEEDED=0

Any particular reason your trying to build? I would look on the Open
Build Service
http://software.opensuse.org/search?q=Firefox&baseproject=SUSE%3ASLE-11&lang=en&exclude_debug=true

Else setup and OBS account, and copy the package to your home
repository and build there or locally via the osc command.

Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 3.0.13-0.19-default
up 1 day 18:18, 2 users, load average: 0.02, 0.05, 0.05
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU