Skip to content

Make fails on Ubuntu 16.04 #7

@subsecond

Description

@subsecond

I am trying to run BFD on FRR under Ubuntu 16.04 and apparently need PTM in order to get it to work. However, make fails with the following error:

root@lab-r1:mgmt:~/ptm# make
make  all-recursive
make[1]: Entering directory '/root/ptm'
Making all in lib
make[2]: Entering directory '/root/ptm/lib'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/root/ptm/lib'
Making all in src
make[2]: Entering directory '/root/ptm/src'
gcc -DHAVE_CONFIG_H -I. -I..  -I../lib -Igraph -Ihash  -Wno-enum-compare -std=gnu99 -Wall -Werror -g -O0 -DPTMD_VERSION=\"TMD_VERSION\" -g -O2 -MT ptm_event.o -MD -MP -MF .deps/ptm_event.Tpo -c -o ptm_event.o ptm_event.c
ptm_event.c: In function ‘main’:
ptm_event.c:562:13: error: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Werror=unused-result]
             fscanf(pid_fp, "%d", &my_pid);
             ^
ptm_event.c:581:9: error: ignoring return value of ‘daemon’, declared with attribute warn_unused_result [-Werror=unused-result]
         daemon(0, 0);
         ^
ptm_event.c:584:5: error: ignoring return value of ‘ftruncate’, declared with attribute warn_unused_result [-Werror=unused-result]
     ftruncate(fileno(pid_fp), 0);
     ^
cc1: all warnings being treated as errors
Makefile:363: recipe for target 'ptm_event.o' failed
make[2]: *** [ptm_event.o] Error 1
make[2]: Leaving directory '/root/ptm/src'
Makefile:292: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/root/ptm'
Makefile:232: recipe for target 'all' failed
make: *** [all] Error 2

Is that something that can be fixed easily or should we look for a different implementation of BFD?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions