sawyl: (Default)
[personal profile] sawyl
Spent most of today tweaking my own bits and pieces of software to get them to build under AIX, only to encounter an annoying snag whilst trying to get colortail to compile: it seems as though colortail requires getopt_long, a routine that IBM, in their wisdom, seem to have failed to include.

When my quick fixes, such as installing the glibc RPMs on the system, failed to work, I ended up writing a quick and dirty patch. Essentially, I added checks for getopt.h and getopt_long to the autoconf scripts and defined a couple of pre-processor macros to replace the call to the GNU routine with a basic getopts, all of which turned out to be relatively straight forward, thanks to the clean way the option handling was implemented in colortail.

But my basic question remains: where should I expect to find getopts_long? And why can't I seem to find it on AIX?

Profile

sawyl: (Default)
sawyl

August 2018

S M T W T F S
   123 4
5 6 7 8910 11
12131415161718
192021222324 25
262728293031 

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 6th, 2026 01:28 am
Powered by Dreamwidth Studios