Bug#952061: ibsim: FTBFS: umad2sim.c:110:30: error: ‘UMAD_DEV_DIR’ undeclared here (not in a function)
Source: ibsim
Version: 0.7-2
Severity: serious
Justification: FTBFS on amd64
Tags: buster sid
Usertags: ftbfs-20200222 ftbfs-buster
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -g -fpic -I. -I../include -I/usr/include -c -o umad2sim.o umad2sim.c
> umad2sim.c:110:30: error: ‘UMAD_DEV_DIR’ undeclared here (not in a function)
> 110 | static char umad_dev_dir[] = UMAD_DEV_DIR;
> | ^~~~~~~~~~~~
> umad2sim.c: In function ‘umad2sim_read’:
> umad2sim.c:423:2: warning: ‘ntohll’ is deprecated [-Wdeprecated-declarations]
> 423 | umad->length = umad_size() + ntohll(req.length);
> | ^~~~
> In file included from umad2sim.c:53:
> /usr/include/infiniband/umad.h:252:52: note: declared here
> 252 | static inline __attribute__((deprecated)) uint64_t ntohll(uint64_t x) { return be64toh(x); }
> | ^~~~~~
> umad2sim.c: In function ‘umad2sim_write’:
> umad2sim.c:487:2: warning: ‘htonll’ is deprecated [-Wdeprecated-declarations]
> 487 | req.length = htonll(cnt);
> | ^~~
> In file included from umad2sim.c:53:
> /usr/include/infiniband/umad.h:257:52: note: declared here
> 257 | static inline __attribute__((deprecated)) uint64_t htonll(uint64_t x) { return htobe64(x); }
> | ^~~~~~
> make[2]: *** [../defs.mk:38: umad2sim.o] Error 1
The full build log is available from:
http://qa-logs.debian.net/2020/02/22/ibsim_0.7-2_unstable.log
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.
Reply to: