3. undefined reference to `__stat'
报错信息:
linking make...
/usr/bin/ld: glob.o: in function `.L57':
glob.c:(.text+0x7d8): undefined reference to `__stat'
/usr/bin/ld: glob.o: in function `.L82':
glob.c:(.text+0xb2a): undefined reference to `__stat'
/usr/bin/ld: glob.o: in function `.L71':
glob.c:(.text+0xd5e): undefined reference to `__stat'
/usr/bin/ld: glob.o: in function `.L134':
glob.c:(.text+0x1274): undefined reference to `__stat'
collect2: error: ld returned 1 exit status
解决方法:
修改make-3.80/glob/glob.c:
# if _GNU_GLOB_INTERFACE_VERSION == GLOB_INTERFACE_VERSION
to
# if _GNU_GLOB_INTERFACE_VERSION >= GLOB_INTERFACE_VERSION