Fail to build on SLES 11 with GCC 4.8 compiler

UNCONFIRMED
Unassigned

Status

NSS
Build
P3
normal
UNCONFIRMED
a month ago
21 hours ago

People

(Reporter: Zenitur, Unassigned)

Tracking

3.32

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

a month ago
Created attachment 8906997 [details]
mozilla-nss-3.32-build-log.zip

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0
Build ID: 20170614122554

Steps to reproduce:

I create an OBS reposotory with Mozilla Firefox for SLES11. I'd copied firefox52 package from a "mozilla" OBS repo, then the package asks mozilla-nspr and mozilla-nss packages.


Actual results:

There is an error when build mozilla-nss.I had tried to switch compilers between GCC 4.3 and GCC 4.8. I attach the build log with GCC 4.8.

[   45s] gcc-4.8 -o Linux4.4_x86_64_gcc-4.8_glibc_PTH_64_OPT.OBJ/utilmod.o -c -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -fno-strict-aliasing -fPIC  -m64 -pipe -ffunction-sections -fdata-sections -DHAVE_STRERROR -DLINUX -Dlinux -Wall -Werror -DXP_UNIX -UDEBUG -DNDEBUG -D_REENTRANT -DNSS_NO_INIT_SUPPORT -DUSE_UTIL_DIRECTLY -DNO_NSPR_10_SUPPORT -DSSL_DISABLE_DEPRECATED_CIPHER_SUITE_NAMES -I/usr/include/nspr4 -I../../../dist/Linux4.4_x86_64_gcc-4.8_glibc_PTH_64_OPT.OBJ/include -I../../../dist/public/nss -I../../../dist/private/nss  utilmod.c
[   45s] utilmod.c: In function 'nssutil_AddSecmodDBEntry':
[   45s] utilmod.c:704:15: error: ignoring return value of 'fwrite', declared with attribute warn_unused_result [-Werror=unused-result]
[   45s]          fwrite(block, PORT_Strlen(block), 1, fd);
[   45s]                ^
[   45s] utilmod.c: In function 'nssutil_DeleteSecmodDBEntry':
[   45s] utilmod.c:590:19: error: ignoring return value of 'fwrite', declared with attribute warn_unused_result [-Werror=unused-result]
[   45s]              fwrite(block, PORT_Strlen(block), 1, fd2);
[   45s]                    ^
[   45s] cc1: all warnings being treated as errors
[   45s] make[2]: *** [Linux4.4_x86_64_gcc-4.8_glibc_PTH_64_OPT.OBJ/utilmod.o] Error 1


Expected results:

The package
Bulk change per wleung.
Priority: -- → P3
(Reporter)

Comment 2

a month ago
Is any workaround? Is there a way to disable -Wall?
(Reporter)

Comment 3

21 hours ago
ANy progress? I still have an old Firefox. My subscription was expired few months ago, so I need to update Firefox manually.
You need to log in before you can comment on or make changes to this bug.