[augeas-devel] RedHat EL6 compile 1.9.0: dump.c:133: undefined reference to `rpl_getopt'

augeas.rgm at neverbox.com augeas.rgm at neverbox.com
Mon Dec 4 19:10:45 UTC 2017


Can anyone point me to a way to exclude the examples (or the dump example
specifically) from the configure / make / compile?  I'm having trouble with
getopt on RHEL6.

Perhaps there is a configure flag that can help me?

Making all in examples
make[2]: Entering directory
`/home/rss/src/augeas/rpm-build/BUILD/augeas-1.9.0/examples'
  CC       fadot.o
  CCLD     fadot
  CC       dump.o
  CCLD     dump
dump.o: In function `main':
/home/rss/src/augeas/rpm-build/BUILD/augeas-1.9.0/examples/dump.c:133:
undefined reference to `rpl_getopt'
/home/rss/src/augeas/rpm-build/BUILD/augeas-1.9.0/examples/dump.c:149:
undefined reference to `rpl_optind'
collect2: ld returned 1 exit status
make[2]: *** [dump] Error 1
make[2]: Leaving directory
`/home/rss/src/augeas/rpm-build/BUILD/augeas-1.9.0/examples'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/rss/src/augeas/rpm-build/BUILD/augeas-1.9.0'
make: *** [all] Error 2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/augeas-devel/attachments/20171204/2ad0add4/attachment.htm>


More information about the augeas-devel mailing list