Opened 7 months ago
Closed 7 months ago
#69724 closed defect (fixed)
libnfs @5.0.3: error: ‘IFNAMSIZ’ undeclared here (not in a function)
Reported by: | barracuda156 | Owned by: | barracuda156 |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.9.3 |
Keywords: | tiger leopard snowleopard lion mountainlion | Cc: | herbygillot (Herby Gillot) |
Port: | libnfs |
Description
In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libnfs/libnfs/work/libnfs-5.0.3/nsm/nsm.c:27: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libnfs/libnfs/work/libnfs-5.0.3/include/libnfs-private.h:178: error: ‘IFNAMSIZ’ undeclared here (not in a function) In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libnfs/libnfs/work/libnfs-5.0.3/nlm/nlm.c:27: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libnfs/libnfs/work/libnfs-5.0.3/include/libnfs-private.h:178: error: ‘IFNAMSIZ’ undeclared here (not in a function) make[2]: *** [nsm/CMakeFiles/nfs_nsm.dir/nsm.c.o] Error 1
Also fails with gcc13, with more errors.
Upstream issue: https://github.com/sahlberg/libnfs/issues/455
Change History (4)
comment:1 Changed 7 months ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | lion mountainlion added |
---|---|
Summary: | Fails to build on 10.6: https://github.com/sahlberg/libnfs/issues/455 → libnfs @5.0.3: error: ‘IFNAMSIZ’ undeclared here (not in a function) |
comment:2 follow-up: 3 Changed 7 months ago by ryandesign (Ryan Carsten Schmidt)
Comparing the 10.8 and 10.9 versions of /usr/include/net/if.h, the 10.9 version adds the line #include <sys/socket.h>
so that may be the missing include in the libnfs configure test.
comment:3 Changed 7 months ago by barracuda156
Replying to ryandesign:
Comparing the 10.8 and 10.9 versions of /usr/include/net/if.h, the 10.9 version adds the line
#include <sys/socket.h>
so that may be the missing include in the libnfs configure test.
Yes, thank you, that is the thing, I guess. Will try it.
comment:4 Changed 7 months ago by barracuda156
Owner: | set to barracuda156 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
It failed with the same error on the 10.8 and earlier buildbot workers but succeeded on the 10.9 and later workers.
Comparing the buildbot logs, the only difference between the 10.8 and 10.9 configure phases is that 10.8 couldn't find net/if.h:
while 10.9 could:
net/if.h exists on 10.8 and is where
IFNAMSIZ
is defined.Can you attach your config.log so that we can investigate why it couldn't find net/if.h? I suspect a necessary header has not been included. I recall this being a common problem on 10.8 and earlier.