Probably relying on a legacy LD that would map them to the same piece of
memory.
The autogen-ag.o file should not be defining it. It should only be internal
to libopts.
The best solution will be to fiddle "autoopts.h" so that when it's pulled
in by autogen,
it doesn't define any variables. It's been several years since I looked at
the code and
it will be a while before I can get to it, so, please, feel free. I'll roll
up your fix the next
time I roll out another release. :) Thank you!

 - Bruce


On Sat, Apr 9, 2022 at 3:40 PM George R Goffe via Autogen-users <
autogen-users@lists.sourceforge.net> wrote:

> Howdy,
>
> I'm trying to build this "latest"(?) version on my Fedora Core 37 system
> and am having trouble (see below). If the development repository is
> available I'd be willing/eager to use it for the latest source code If you
> see a benefit to that for you.
>
> Here are my config options:
>
>       96  ./configure --prefix=/usr/lsd/$osname --verbose        \
>       97              --with-local-prefix=/usr/lsd/$osname       \
>       98              --disable-silent-rules                     \
>       99              --enable-dependency-tracking               \
>     100              --enable-shared=yes                        \
>     101              --enable-static=yes                        \
>     102              --enable-fast-install=no                   \
>     103              --enable-static-autogen                    \
>     104              --enable-snprintfv-install                 \
>     105              --with-pic=yes                             \
>     106              --with-gnu-ld
>
> Here's what I'm seeing (full build log available on request)::
>
> /bin/bash ../libtool  --tag=CC   --mode=link gcc -I/usr/include/guile/2.2
> -g -O2 -Wno-format-contains-nul -fno-strict-aliasing -export-dynamic
> -static -no-install  -o autogen  autogen-ag.o ../autoopts/libopts.la
> ../snprintfv/libsnprintfv.la -lguile-2.2 -lgc -lpthread -ldl   -lm -ldl
> libtool: link: gcc -I/usr/include/guile/2.2 -g -O2
> -Wno-format-contains-nul -fno-strict-aliasing -o autogen autogen-ag.o
> -Wl,--export-dynamic  ../autoopts/.libs/libopts.a
> ../snprintfv/.libs/libsnprintfv.a -lguile-2.2 -lgc -lpthread -lm -ldl
> /usr/bin/ld:
> ../autoopts/.libs/libopts.a(libopts_la-libopts.o):/tools/autogen/autogen-5.18.16/autoopts/autoopts.h:410:
> multiple definition of `option_usage_fp';
> autogen-ag.o:/tools/autogen/autogen-5.18.16/agen5/../autoopts/autoopts.h:410:
> first defined here
> collect2: error: ld returned 1 exit status
>
> Best regards and STAY SAFE!,
>
> George...
>
>
> _______________________________________________
> Autogen-users mailing list
> Autogen-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/autogen-users
>
_______________________________________________
Autogen-users mailing list
Autogen-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/autogen-users

Reply via email to