Opened 8 weeks ago

Last modified 8 weeks ago

#73140 new defect

dnstracer does not build (macOS, Xcode 26) due to getlong, getshort issues

Reported by: rpkrajewski (Robert Krajewski) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.11.5
Keywords: tahoe Cc:
Port: dnstracer

Description

See attached log and:

:info:build 	/usr/bin/clang -DHAVE_CONFIG_H -I. -I. -I.   -DBIND_8_COMPAT=1 -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.sdk  -pipe -Os -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.sdk -arch arm64 -c `test -f 'dnstracer.c' || echo './'`dnstracer.c
:info:build dnstracer.c:245:1: error: conflicting types for 'res_9_getlong'
:info:build   245 | getlong(unsigned char *s)
:info:build       | ^
:info:build /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.sdk/usr/include/resolv.h:502:19: note: expanded from macro 'getlong'
:info:build   502 | #define getlong                 res_9_getlong
:info:build       |                                 ^
:info:build /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.sdk/usr/include/resolv.h:608:11: note: previous declaration is here
:info:build   608 | u_int32_t       getlong(const u_char *);
:info:build       |                 ^
:info:build /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.sdk/usr/include/resolv.h:502:19: note: expanded from macro 'getlong'
:info:build   502 | #define getlong                 res_9_getlong
:info:build       |                                 ^
:info:build dnstracer.c:251:1: error: conflicting types for 'res_9_getshort'
:info:build   251 | getshort(unsigned char *s)
:info:build       | ^
:info:build /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.sdk/usr/include/resolv.h:503:19: note: expanded from macro 'getshort'
:info:build   503 | #define getshort                res_9_getshort
:info:build       |                                 ^
:info:build /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.sdk/usr/include/resolv.h:607:11: note: previous declaration is here
:info:build   607 | u_int16_t       getshort(const u_char *);
:info:build       |                 ^
:info:build /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.sdk/usr/include/resolv.h:503:19: note: expanded from macro 'getshort'
:info:build   503 | #define getshort                res_9_getshort
:info:build       |                                 ^
:info:build dnstracer.c:291:24: warning: passing 'char *' to parameter of type 'const u_char *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
:info:build   291 |             offset = getshort(p);
:info:build       |                               ^
:info:build /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.sdk/usr/include/resolv.h:607:34: note: passing argument to parameter here
:info:build   607 | u_int16_t       getshort(const u_char *);

Attachments (1)

main.log (105.9 KB) - added by rpkrajewski (Robert Krajewski) 8 weeks ago.
dnstracer build log

Download all attachments as: .zip

Change History (2)

Changed 8 weeks ago by rpkrajewski (Robert Krajewski)

Attachment: main.log added

dnstracer build log

comment:1 Changed 8 weeks ago by ryandesign (Ryan Carsten Schmidt)

Keywords: tahoe added

We had problems with another port with getshort and the macOS 26 SDK although the manifestation was different (see #73043). It made me wonder if there is a bug in the SDK (see comment:ticket:73043:7).

Note: See TracTickets for help on using tickets.