HomeFreeBSD

MFH: r370740

Description

MFH: r370740

Mark BROKEN: Fails to build

with gcc:
/bin/sh ../../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I../../include -I../../include -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -DDEBUG=1 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-long-long -Wpointer-arith -D_THREAD_SAFE -pthread -O2 -pipe -fno-strict-aliasing -I/usr/include -Wdeclaration-after-statement -MT threadsafe.lo -MD -MP -MF .deps/threadsafe.Tpo -c -o threadsafe.lo threadsafe.c
libtool: compile: cc -DHAVE_CONFIG_H -I. -I../../include -I../../include -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -DDEBUG=1 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-long-long -Wpointer-arith -D_THREAD_SAFE -pthread -O2 -pipe -fno-strict-aliasing -I/usr/include -Wdeclaration-after-statement -MT threadsafe.lo -MD -MP -MF .deps/threadsafe.Tpo -c threadsafe.c -fPIC -DPIC -o .libs/threadsafe.o
In file included from threadsafe.c:84:
../../include/freetds/tds.h:149: warning: function declaration isn't a prototype
../../include/freetds/tds.h:149: error: bit-field '__res_state' has invalid type
Makefile:439: recipe for target 'threadsafe.lo' failed

with clang:
/bin/sh ../../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I../../include -I../../include -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -DDEBUG=1 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-long-long -Wpointer-arith -D_THREAD_SAFE -pthread -O2 -pipe -fno-strict-aliasing -I/usr/include -Wdeclaration-after-statement -MT threadsafe.lo -MD -MP -MF .deps/threadsafe.Tpo -c -o threadsafe.lo threadsafe.c
libtool: compile: cc -DHAVE_CONFIG_H -I. -I../../include -I../../include -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -DDEBUG=1 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-long-long -Wpointer-arith -D_THREAD_SAFE -pthread -O2 -pipe -fno-strict-aliasing -I/usr/include -Wdeclaration-after-statement -MT threadsafe.lo -MD -MP -MF .deps/threadsafe.Tpo -c threadsafe.c -fPIC -DPIC -o .libs/threadsafe.o
In file included from threadsafe.c:84:
../../include/freetds/tds.h:149:16: error: bit-field '__res_state' has non-integral type 'TDS_USMALLINT (*())'

TDS_USMALLINT _res:10;
              ^    ~~

/usr/include/resolv.h:282:16: note: expanded from macro '_res'
#define _res (*__res_state())

^

1 error generated.
Makefile:439: recipe for target 'threadsafe.lo' failed

Reported by: pkg-fallout

Details

Event Timeline