MantisBT - NetSurf
View Issue Details
0002671NetSurfJavascriptpublic2019-06-12 09:492019-08-01 09:32
ReporterMalcolm 
Assigned Tokinnison 
PrioritynormalSeverityblockReproducibilityalways
StatusclosedResolutionno change required 
PlatformHP6120 laptop 1GB RAM, 32bit OSLinux - Antix 17OS Version17.x
Product Version3.8 
Target VersionFixed in Version 
Fixed in CI build #
Reported in CI build #
URL of problem page
Summary0002671: build - make fails with error suggesting undeclared variable in duktape/binding.c
DescriptionIn file included from ./utils/log.h:78:0,
                 from build/Linux-gtk/duktape/binding.c:18:
build/Linux-gtk/duktape/binding.c: In function ‘dukky_create_prototype’:
/home/malcolm/Downloads/netsurf/netsurf-all-3.8/inst-gtk/include/nslog/nslog.h:177:6: error: ‘__nslog_category_dukky’ undeclared (first use in this function)
     &__nslog_category_##catname, \
      ^
build/Linux-gtk/duktape/binding.c:113:3: note: in expansion of macro ‘NSLOG’
   NSLOG(dukky, WARNING, "Failed to register prototype for %s", proto_name + 2);
   ^~~~~
/home/malcolm/Downloads/netsurf/netsurf-all-3.8/inst-gtk/include/nslog/nslog.h:177:6: note: each undeclared identifier is reported only once for each function it appears in
     &__nslog_category_##catname, \
      ^
build/Linux-gtk/duktape/binding.c:113:3: note: in expansion of macro ‘NSLOG’
   NSLOG(dukky, WARNING, "Failed to register prototype for %s", proto_name + 2);
   ^~~~~
Makefile:855: recipe for target 'build/Linux-gtk/build_Linux-gtk_duktape_binding.o' failed
make[1]: *** [build/Linux-gtk/build_Linux-gtk_duktape_binding.o] Error 1
make[1]: Leaving directory '/home/malcolm/Downloads/netsurf/netsurf-all-3.8/netsurf'
Makefile:119: recipe for target '/home/malcolm/Downloads/netsurf/netsurf-all-3.8/inst-gtk/build-stamp' failed
make: *** [/home/malcolm/Downloads/netsurf/netsurf-all-3.8/inst-gtk/build-stamp] Error 2
Steps To ReproduceCompile from packaged 3.8 source code, and pull-build-install from Git
Additional Informationbuild running smoothly until this point. Tail extract from screen output attached hereto.
TagsNo tags attached.
Attached Filestxt compile_error.txt (983) 2019-06-12 09:49
https://bugs.netsurf-browser.org/mantis/file_download.php?file_id=595&type=bug

Notes
(0002036)
kinnison   
2019-08-01 09:32   
It looks like you mixed a combination of a too-new nsgenbind with the 3.8 source, and then probably some combination of the 3.8 and git HEAD stuff when you retried.

You need to ensure that all the tooling and libraries come together in order to not have this kind of issue. We recently released 3.9 so it may behoove you to delete everything you had tried before, ensure you don't have installed versions of any of the tools, build system, etc. And then try 3.9 or git HEAD if you are so inclined.

Issue History
2019-06-12 09:49MalcolmNew Issue
2019-06-12 09:49MalcolmFile Added: compile_error.txt
2019-08-01 09:32kinnisonAssigned To => kinnison
2019-08-01 09:32kinnisonStatusnew => closed
2019-08-01 09:32kinnisonResolutionopen => no change required
2019-08-01 09:32kinnisonNote Added: 0002036