2019-10-18 00:33 BST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0002671NetSurfJavascriptpublic2019-08-01 10:32
ReporterMalcolm 
Assigned ToDaniel Silverstone 
SeverityblockReproducibilityalways 
StatusclosedResolutionno change required 
PlatformHP6120 laptop 1GB RAM, 32bit OSLinux - Antix 17OS Version17.x
Product Version3.8 
Target VersionFixed in Version 
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.
Fixed in CI build #
Reported in CI build #
URL of problem page
Attached Files
  • txt file icon compile_error.txt (983 bytes) 2019-06-12 10:49 -
    COMPILE: build/Linux-gtk/duktape/binding.c
    In 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/mike/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/mike/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);
       ^~~~~
    
    txt file icon compile_error.txt (983 bytes) 2019-06-12 10:49 +

-Relationships
+Relationships

-Notes
Daniel Silverstone

~0002036

Daniel Silverstone (administrator)

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.
+Notes

-Issue History
Date Modified Username Field Change
2019-06-12 10:49 Malcolm New Issue
2019-06-12 10:49 Malcolm File Added: compile_error.txt
2019-08-01 10:32 Daniel Silverstone Assigned To => Daniel Silverstone
2019-08-01 10:32 Daniel Silverstone Status new => closed
2019-08-01 10:32 Daniel Silverstone Resolution open => no change required
2019-08-01 10:32 Daniel Silverstone Note Added: 0002036
+Issue History