Eric Blake <e...@byu.net> ha escrit: > Oh, I see. getopt in isolation passes, but getopt in combination with > argp causes the failure you are seeing. I guess it's because the argp > module wants to use lower-level hooks from getopt1.c than what getopt.h > normally exposes.
Yes, that's it. Argp uses _getopt_long_only_r, which may well be absent, even if the system's libc provides a compatible implementation of getopt_long. Regards, Sergey