<div dir="ltr"><div><div><div><div>Hi,<br><br></div>I just tried building on a CentOS 6 machine with 'configure && make', and that worked fine for me. getopt is part of glibc; the fact that the linker is looking for rpl_getopt indicates that it is trying to use the replacement function from gnulib, which it shouldn't on RHEL. Looking at gnulib/m4/getopt.m4, it seems there's a few things that could trigger using a replacement getopt: cross-compilation, not having a awk that supports ENVIRON, etc. Does config.log contain anything about failed tests related to getopt ?<br><br></div>What command is being run exactly to configure the package ?  I recently updated the <a href="https://src.fedoraproject.org/rpms/augeas/blob/master/f/augeas.spec">Fedora spec file</a> and all that needed was removing dump after the 'make install'. Hopefully, using a similar spec for RHEL fixes this issue.<br><br></div>If you send me some more information along the lines of my questions above, I'd be more than happy to help.<br><br></div>David<br><br><div><div><br><br><div><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 4, 2017 at 11:10 AM,  <span dir="ltr"><<a href="mailto:augeas.rgm@neverbox.com" target="_blank">augeas.rgm@neverbox.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">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.<div><br></div><div>Perhaps there is a configure flag that can help me?<br><div><div><br></div><div><div>Making all in examples</div><div>make[2]: Entering directory `/home/rss/src/augeas/rpm-<wbr>build/BUILD/augeas-1.9.0/<wbr>examples'</div><div>  CC       fadot.o</div><div>  CCLD     fadot</div><div>  CC       dump.o</div><div>  CCLD     dump</div><div>dump.o: In function `main':</div><div>/home/rss/src/augeas/rpm-<wbr>build/BUILD/augeas-1.9.0/<wbr>examples/dump.c:133: undefined reference to `rpl_getopt'</div><div>/home/rss/src/augeas/rpm-<wbr>build/BUILD/augeas-1.9.0/<wbr>examples/dump.c:149: undefined reference to `rpl_optind'</div><div>collect2: ld returned 1 exit status</div><div>make[2]: *** [dump] Error 1</div><div>make[2]: Leaving directory `/home/rss/src/augeas/rpm-<wbr>build/BUILD/augeas-1.9.0/<wbr>examples'</div><div>make[1]: *** [all-recursive] Error 1</div><div>make[1]: Leaving directory `/home/rss/src/augeas/rpm-<wbr>build/BUILD/augeas-1.9.0'</div><div>make: *** [all] Error 2</div></div></div></div></div>
<br>______________________________<wbr>_________________<br>
augeas-devel mailing list<br>
<a href="mailto:augeas-devel@redhat.com">augeas-devel@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/augeas-devel" rel="noreferrer" target="_blank">https://www.redhat.com/<wbr>mailman/listinfo/augeas-devel</a><br></blockquote></div><br></div>