Can't build tvheadend-4.2.1
Added by Yuna Kim over 5 years ago
CC src/idnode.o src/idnode.c: In function ‘idnode_slist_set’: src/idnode.c:1551:13: error: argument 1 null where non-null expected [-Werror=nonnull] if (strcmp(s, o->id)) ^~~~~~~~~~~~~~~~ In file included from src/idnode.c:24:0: /usr/include/string.h:136:12: note: in a call to function ‘strcmp’ declared here extern int strcmp (const char *__s1, const char *__s2) ^~~~~~ cc1: all warnings being treated as errors Makefile:630: recipe for target '/root/tvheadend-4.2.1/build.linux/src/idnode.o' failed make: *** [/root/tvheadend-4.2.1/build.linux/src/idnode.o] Error 1
1548 HTSMSG_FOREACH(f, vals) { 1549 if ((s = htsmsg_field_get_str(f)) != NULL) 1550 continue; 1551 if (strcmp(s, o->id)) 1552 continue; 1553 if (*ip == 0) changed = 1; 1554 break; 1555 }
I'm not sure what's going on, but s is always NULL at the time of strcmp. I can't build 4.3 for the same reason.
Replies (4)
RE: Can't build tvheadend-4.2.1 - Added by saen acro over 5 years ago
With OS is used?
What platform?
RE: Can't build tvheadend-4.2.1 - Added by Yuna Kim over 5 years ago
Sorry, I should have said that:
Ubuntu 18.04.2 LTS linux-image-4.15.0-50-generic x86_64
RE: Can't build tvheadend-4.2.1 - Added by saen acro over 5 years ago
RE: Can't build tvheadend-4.2.1 - Added by Yuna Kim over 5 years ago
I fixed it by ./configure --nowerror. Thanks for your help, though.