pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

how to depend on getopt in AIX pkgsrc packages?


Take for example security/pinentry. It depends on getopt but doesn't depend on it from pkgsrc. So it (wrongfully?) looks for it in the base system...

"pinentry.c", line 28.10: 1506-296 (S) #include file <getopt.h> not found.

... so ok, that's fine. On AIX getopt is in <unistd.h> so I take out the line that says `#include <getopt.h>'. Now we end up with this error...

"pinentry.c", line 296.17: 1506-194 (S) Incomplete type is not allowed.

... this line 296 is...

  struct option opts[] =

... so the AIX getopt that's in unistd.h doesn't define the "struct option" type. Ok fine. Maybe we need to use devel/libgetopt. So I add...

.include "../../devel/libgetopt/"

... to the Makefile and `bmake clean' to get the original pinentry.c back.

Now I get...

ld: 0711-317 ERROR: Undefined symbol: .getopt_long

... any idea how to get around this one?


Home | Main Index | Thread Index | Old Index