Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 606126 - net-analyzer/net-snmp-5.7.3-r5: error: 'PATH_MAX' undeclared on hardened+musl
Summary: net-analyzer/net-snmp-5.7.3-r5: error: 'PATH_MAX' undeclared on hardened+musl
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo musl team
Depends on:
Reported: 2017-01-17 23:16 UTC by Stijn Tintel
Modified: 2017-01-18 02:34 UTC (History)
0 users

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

fix compile error on hardened+musl (net-snmp-5.7.3-musl-compat.patch,259 bytes, patch)
2017-01-17 23:17 UTC, Stijn Tintel
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stijn Tintel 2017-01-17 23:16:48 UTC
Relevant part of the build that fails.

/bin/sh ../../libtool  --mode=compile x86_64-gentoo-linux-musl-gcc -I../../include -I. -I../../agent -I../../agent/mibgroup  -I/usr/include/libnl3 -I../../snmplib -I/usr/include/libnl3   -DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -O2 -pipe -march=core2 -mtune=core2 -mcx16 -msahf -mpopcnt -msse4.2 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=512 -Ulinux -Dlinux=linux  -c -o util_funcs/get_pid_from_inode.lo util_funcs/get_pid_from_inode.c
libtool: compile:  x86_64-gentoo-linux-musl-gcc -I../../include -I. -I../../agent -I../../agent/mibgroup -I/usr/include/libnl3 -I../../snmplib -I/usr/include/libnl3 -DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -O2 -pipe -march=core2 -mtune=core2 -mcx16 -msahf -mpopcnt -msse4.2 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=512 -Ulinux -Dlinux=linux -c util_funcs/get_pid_from_inode.c  -fPIC -DPIC -o util_funcs/.libs/get_pid_from_inode.o
util_funcs/get_pid_from_inode.c: In function 'netsnmp_get_pid_from_inode_init':
util_funcs/get_pid_from_inode.c:106:31: error: 'PATH_MAX' undeclared (first use in this function)
     char            path_name[PATH_MAX + 1];
util_funcs/get_pid_from_inode.c:106:31: note: each undeclared identifier is reported only once for each function it appears in
util_funcs/get_pid_from_inode.c:107:32: error: 'NAME_MAX' undeclared (first use in this function)
     char            socket_lnk[NAME_MAX + 1];
Makefile:98: recipe for target 'util_funcs/get_pid_from_inode.lo' failed
make[2]: *** [util_funcs/get_pid_from_inode.lo] Error 1
make[2]: Leaving directory '/var/tmp/portage/net-analyzer/net-snmp-5.7.3-r5/work/net-snmp-5.7.3/agent/mibgroup'
Makefile:1559: recipe for target 'subdirs' failed
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory '/var/tmp/portage/net-analyzer/net-snmp-5.7.3-r5/work/net-snmp-5.7.3/agent'
Makefile:215: recipe for target 'agent' failed
make: *** [agent] Error 2
Comment 1 Stijn Tintel 2017-01-17 23:17:39 UTC
Created attachment 460494 [details, diff]
fix compile error on hardened+musl
Comment 2 Felix Janda 2017-01-18 02:34:14 UTC
Patch looks good. Thanks!

Does upstream know about it?