MantisBT - NetSurf
View Issue Details
0002586NetSurfCore-specificpublic2018-01-09 10:362019-07-19 09:23
Reportersogal 
Assigned To 
PrioritynormalSeveritytrivialReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version3.7 
Target Version3.9Fixed in Version3.9 
Fixed in CI build #
Reported in CI build #
URL of problem page
Summary0002586: netsurf fails to build for openSUSE (OBS) because of 64bit-portability-issue
DescriptionHi,
I would like to provide a Netsurf up-to-date package to openSUSE Leap.
When building the RPM locally no problem happens but when building it with the Open Build Service which openSUSE uses, it fails at the very end of the process, when checks are done, with the following output :

[ 109s] netsurf-3.7-0.x86_64
[ 109s] ... running 01-check-debuginfo
[ 109s] ... testing for empty debuginfo packages
[ 109s] ... running 02-check-gcc-output
[ 109s] ... testing for serious compiler warnings
[ 109s] (using /usr/lib/build/checks-data/check_gcc_output)
[ 109s] (using /var/tmp/build-root/openSUSE_Leap_42.3-x86_64/.build.log)
[ 109s] E: netsurf 64bit-portability-issue build-x86_64-suse-linux-x86_64-suse-linux-release-binary/nsgenbind-parser.c:1520
[ 109s]
[ 109s] requiem.eveha.fr failed "build netsurf.spec" at Tue Jan 9 10:19:51 UTC 2018.
[ 109s]

Is there a specific GCC flags that I can use to prevent this or is it code related ?

Thank you in advance for your time, work and attention.
Steps To ReproduceSetup on openSUSE Leap 42.3 and an OBS account, create a project and use the attached specfile and laucnh the build with :

osc build openSUSE_Leap_42.3 x86_64
TagsNo tags attached.
Attached Files? netsurf.spec (3,336) 2018-01-09 10:36
https://bugs.netsurf-browser.org/mantis/file_download.php?file_id=533&type=bug
patch nsgenbind-parser.y.patch (371) 2018-01-15 18:31
https://bugs.netsurf-browser.org/mantis/file_download.php?file_id=534&type=bug

Notes
(0001704)
sogal   
2018-01-15 18:31   
When #define in %code requires section of gsenbind-parser.y is set to :
#define NSGENBIND_LTYPE NSGENBIND_LTYPE
there is no more build error.

Please see patch attached and consider closing this bug.

Thank you.
(0001705)
John-Mark Bell   
2018-01-20 13:46   
Please try again with HEAD of master.
(0001977)
Vincent Sanders   
2019-07-01 12:37   
we addressed this in a commit in 2018 but have received no feedback after a year so marking resolved
(0001994)
Vincent Sanders   
2019-07-19 09:23   
we believe this issue has been resolved in NetSurf 3.9

Issue History
2018-01-09 10:36sogalNew Issue
2018-01-09 10:36sogalFile Added: netsurf.spec
2018-01-15 18:31sogalFile Added: nsgenbind-parser.y.patch
2018-01-15 18:31sogalNote Added: 0001704
2018-01-20 13:46John-Mark BellNote Added: 0001705
2018-01-20 15:36John-Mark BellStatusnew => feedback
2019-07-01 12:37Vincent SandersStatusfeedback => resolved
2019-07-01 12:37Vincent SandersResolutionopen => fixed
2019-07-01 12:37Vincent SandersFixed in Version => 3.9
2019-07-01 12:37Vincent SandersTarget Version => 3.9
2019-07-01 12:37Vincent SandersNote Added: 0001977
2019-07-19 09:23Vincent SandersStatusresolved => closed
2019-07-19 09:23Vincent SandersNote Added: 0001994