[ntp:bugs] [Bug 717] ntpd 4.2.3p51 problems compiling libopts

bugzilla at ntp.isc.org bugzilla at ntp.isc.org
Wed Oct 4 16:50:10 UTC 2006


http://bugs.ntp.isc.org/717



----------------------------------------------------------------------------
Additional Comments From bruce.korb at gmail.com (Bruce Korb)
Submitted on 2006-10-04 16:50

The currently distributed option header template contains:
  #define AO_TEMPLATE_VERSION 110596

Since your ntpd-opts.h is version 110592, you are using an old
template.  If you are using an old template, you should *NOT* be
referencing "optArg", but rather "pzLastArg".  That gets #defined
in the new options.h header to "optArg.argString".  It is *only*
so defined in a header that reads:

struct optDesc {
..
    optArgBucket_t  optArg;           /* PUBLIC */
#   define          pzLastArg   optArg.argString
..
};

Anyway:

> If I try to build a fresh BK repo under Linux I get the following error:
>
> cmd_args.c: In function `getCmdOpts':
> cmd_args.c:73: error: structure has no member named `optArg'

The options.h header that cmd_args.c is compiling against does not
have the "optArg" field.  cmd_args.c was generated with a template
that presumes an options.h does have this field.  There is a version
mismatch.  Whether the version traps I put into the code work properly
or not, that fact needs to be addressed.  I would be interested to know
how the version traps failed, but the versions do need to be made
consistent in any event.  Thanks - Bruce


-- 
Bruce Korb <bruce.korb at gmail.com>



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


More information about the bugs mailing list