Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 484316 - sys-infiniband/dapl-2.0.36 - In function 'dat_strerror': dat/common/dat_strerror.c:714:30: error: 'NULL' undeclared (first use in this function)
Summary: sys-infiniband/dapl-2.0.36 - In function 'dat_strerror': dat/common/dat_strer...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Cluster Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-09-09 09:29 UTC by Tomáš Cícha
Modified: 2021-10-26 17:25 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
fix missing header (dapl-2.0.36-undefined_null.patch,449 bytes, patch)
2013-09-09 09:30 UTC, Tomáš Cícha
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tomáš Cícha 2013-09-09 09:29:19 UTC
Compilation fails with undeclared 'NULL' in one of the source files.

Reproducible: Always

Steps to Reproduce:
emerge sys-infiniband/dapl-2.0.36
Actual Results:  
/bin/sh ./libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.    -g -Wall -D_GNU_SOURCE -DDAT_CONF="\"/etc/dat.conf\"" -D_GNU_SOURCE -DOS_RELEASE=196610    -DDAT_EXTENSIONS   -DDEFINE_ATTR_LINK_LAYER -I./dat/include/ -I./dat/udat/ -I./dat/udat/linux -I./dat/common/  -O3 -pipe -march=native -c -o dat_udat_libdat2_la-dat_strerror.lo `test -f 'dat/common/dat_strerror.c' || echo './'`dat/common/dat_strerror.c
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I. -g -Wall -D_GNU_SOURCE -DDAT_CONF=\"/etc/dat.conf\" -D_GNU_SOURCE -DOS_RELEASE=196610 -DDAT_EXTENSIONS -DDEFINE_ATTR_LINK_LAYER -I./dat/include/ -I./dat/udat/ -I./dat/udat/linux -I./dat/common/ -O3 -pipe -march=native -c dat/common/dat_strerror.c  -fPIC -DPIC -o .libs/dat_udat_libdat2_la-dat_strerror.o
dat/common/dat_strerror.c: In function 'dat_strerror':
dat/common/dat_strerror.c:714:30: error: 'NULL' undeclared (first use in this function)
dat/common/dat_strerror.c:714:30: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [dat_udat_libdat2_la-dat_strerror.lo] Error 1
make[2]: Leaving directory `/var/tmp/portage/sys-infiniband/dapl-2.0.36/work/dapl-2.0.36'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-infiniband/dapl-2.0.36/work/dapl-2.0.36'
make: *** [all] Error 2
Comment 1 Tomáš Cícha 2013-09-09 09:30:24 UTC
Created attachment 358354 [details, diff]
fix missing header
Comment 2 Tomáš Cícha 2013-09-09 09:31:51 UTC
Attached patch works for me on ~amd64. Should work elsewhere.