getopt_long.c uses warnx from err.h, which is not available on Solaris
Fabian, Can you send me a patch for this as you mentioned on #pkgconf? I will get it rolled into a 0.8.6 release.
before I'm going to implement the full mess of just getting warnx working (it really needs some stuff on Solaris, since also getting the program name is tricky), I'd like to poke you on your opinion to just remove the usage of warnx (it's 6 places or something), and replace it by a simple fprintf(stdout, "pkgconf: %s\n", strerror(errno)); or something
@nenolod: taking the freedom to CC you, seems we can get in touch through this bug better for the time being
Fabian, warnx() can die. I just imported that code from NetBSD so that I would have a getopt_long() that I could be sure supported argument permutation. I would like to avoid using err.h at all, so if you would like to clean all of that up, I would be more than happy to get the patch integrated.
ok, as soon as my arms/hands allow, I'll nuke it from the code and attach a patch here.
Created attachment 320696 [details, diff] pkgconf-no-warnx.patch Not really a beauty, but the cheapest way to get code without warnx.
pkgconf-0.8.6 was release with this fix, please bump in tree
pkgconf just got bumped to 0.8.7