Compilation problems with 9.16.30
William D. Colburn
wcolburn at nrao.edu
Wed Jun 15 16:58:12 UTC 2022
I think I've sorted out my email problems and this message will make it through!
The bind 9.16.30 release has problems in lib/isc/netmgr/netmgr-int.h.
The first problem:
In file included from netmgr.c:44:
netmgr-int.h:326: error: redefinition of typedef 'isc__nm_uvreq_t'
netmgr-int.h:189: note: previous declaration of 'isc__nm_uvreq_t' was
here
netmgr-int.h:604: error: redefinition of typedef 'isc__netievent_t'
netmgr-int.h:190: note: previous declaration of 'isc__netievent_t' was
here
netmgr.c: In function 'isc__nm_acquire_interlocked':
netmgr.c:2777: warning: cast to pointer from integer of different size
netmgr.c:2777: warning: cast to pointer from integer of different size
netmgr.c:2777: warning: assignment makes integer from pointer without a
cast
netmgr.c: In function 'isc__nm_acquire_interlocked_force':
netmgr.c:2806: warning: cast to pointer from integer of different size
netmgr.c:2806: warning: cast to pointer from integer of different size
netmgr.c:2806: warning: assignment makes integer from pointer without a
cast
I see lines 326 and 189 are identical, so this one is easy, comment out
line 326.
# grep -n typedef.*isc__nm_uvreq_t
/tmp/root/bind-9.16.30/lib/isc/netmgr/netmgr-int.h
189:typedef struct isc__nm_uvreq isc__nm_uvreq_t;
326:typedef struct isc__nm_uvreq isc__nm_uvreq_t;
#
But after I comment out line 326 to move on...
In file included from netmgr.c:44:
netmgr-int.h:604: error: redefinition of typedef 'isc__netievent_t'
netmgr-int.h:190: note: previous declaration of 'isc__netievent_t' was
here
netmgr.c: In function 'isc__nm_acquire_interlocked':
netmgr.c:2777: warning: cast to pointer from integer of different size
netmgr.c:2777: warning: cast to pointer from integer of different size
netmgr.c:2777: warning: assignment makes integer from pointer without a
cast
netmgr.c: In function 'isc__nm_acquire_interlocked_force':
netmgr.c:2806: warning: cast to pointer from integer of different size
netmgr.c:2806: warning: cast to pointer from integer of different size
netmgr.c:2806: warning: assignment makes integer from pointer without a
cast
On line 190 is a "typedef struct isc__netievent isc__netievent_t;"
But lines 601 through 604 are a "typedef struct isc__netievent {
isc__netievent_type type;
ISC_LINK(isc__netievent_t) link;
} isc__netievent_t;".
So that one needs line 601 through 604 edited to remove the repeat
typedef declaration.
--Schlake
Sysadmin IV, NRAO
Work: 575-835-7281 (BACK IN THE OFFICE!)
Cell: 575-517-5668 (out of work hours)
More information about the bind-users
mailing list