Hi,

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 ?

What command is being run exactly to configure the package ?  I recently
updated the Fedora spec file
<https://src.fedoraproject.org/rpms/augeas/blob/master/f/augeas.spec> and
all that needed was removing dump after the 'make install'. Hopefully,
using a similar spec for RHEL fixes this issue.

If you send me some more information along the lines of my questions above,
I'd be more than happy to help.

David





On Mon, Dec 4, 2017 at 11:10 AM, <augeas....@neverbox.com> wrote:

> 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
>
> _______________________________________________
> augeas-devel mailing list
> augeas-devel@redhat.com
> https://www.redhat.com/mailman/listinfo/augeas-devel
>
_______________________________________________
augeas-devel mailing list
augeas-devel@redhat.com
https://www.redhat.com/mailman/listinfo/augeas-devel

Reply via email to