[RPL/2] Autoconf error in finding libm
Jonathan Busby
jonathanbusby at gmail.com
Tue Jan 15 22:18:05 CET 2019
On Mon, Jan 14, 2019 at 11:45 AM BERTRAND Joël <joel.bertrand at systella.fr>
wrote:
>
> No idea. If you want to debug, please re-run unmodified
> configure.ac
> (./autogen.sh will rebuild regular configure script) and check error in
> config.log.
>
I deleted the build directory, untared the source again, and ran configure
with the "--enable-rplcas" option. I get the same error, which can be found
in config.log
"
configure:7464: checking for main in -lm
configure:7483: gcc -o conftest -g -O2 -O2 -fno-strict-overflow -pthread
conftest.c -lm -lcurl >&5
/usr/bin/ld: cannot find -lcurl
collect2: error: ld returned 1 exit status
configure:7483: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "rpl"
| #define PACKAGE_TARNAME "rpl"
| #define PACKAGE_VERSION "4.1.29"
| #define PACKAGE_STRING "rpl 4.1.29"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "rpl"
| #define VERSION "4.1.29"
| #define HAVE_INLINE 1
| /* end confdefs.h. */
|
|
| int
| main ()
| {
| return main ();
| ;
| return 0;
| }
configure:7492: result: no
configure:7502: error: Can not find libm !
"
The " usr/bin/ld: cannot find -lcurl" is strange since I have curl and
libcurl installed. I have a feeling that the failure to link / find libcurl
is the problem.
EDIT 1 : Indeed, for some reason, the GNU autotools link against libcurl (
in the autoconf generated " gcc -o conftest -g -O2 -O2
-fno-strict-overflow -pthread conftest.c -lm -lcurl >&5 " ) and after I
installed the development files for libcurl, the build "succeeded", in a
way.
After, starting the build again, when the motif source was being built, I
received the build error :
"
Making install in Mrm
make[4]: Entering directory
'/home/jdb2/src/rpl2/rpl-4.1.29/tools/motif-2.3.8/lib/Mrm'
make install-am
make[5]: Entering directory
'/home/jdb2/src/rpl2/rpl-4.1.29/tools/motif-2.3.8/lib/Mrm'
make[6]: Entering directory
'/home/jdb2/src/rpl2/rpl-4.1.29/tools/motif-2.3.8/lib/Mrm'
/bin/mkdir -p
'/home/jdb2/src/rpl2/rpl-4.1.29/tools/motif-2.3.8/install/lib'
/bin/bash ../../libtool --mode=install /usr/bin/install -c libMrm.la
'/home/jdb2/src/rpl2/rpl-4.1.29/tools/motif-2.3.8/install/lib'
libtool: error: error: cannot install 'libMrm.la' to a directory not
ending in /usr/lib
Makefile:435: recipe for target 'install-libLTLIBRARIES' failed
make[6]: *** [install-libLTLIBRARIES] Error 1
make[6]: Leaving directory
'/home/jdb2/src/rpl2/rpl-4.1.29/tools/motif-2.3.8/lib/Mrm'
Makefile:656: recipe for target 'install-am' failed
make[5]: *** [install-am] Error 2
make[5]: Leaving directory
'/home/jdb2/src/rpl2/rpl-4.1.29/tools/motif-2.3.8/lib/Mrm'
Makefile:650: recipe for target 'install' failed
make[4]: *** [install] Error 2
make[4]: Leaving directory
'/home/jdb2/src/rpl2/rpl-4.1.29/tools/motif-2.3.8/lib/Mrm'
Makefile:396: recipe for target 'install-recursive' failed
make[3]: *** [install-recursive] Error 1
make[3]: Leaving directory
'/home/jdb2/src/rpl2/rpl-4.1.29/tools/motif-2.3.8/lib'
Makefile:453: recipe for target 'install-recursive' failed
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory
'/home/jdb2/src/rpl2/rpl-4.1.29/tools/motif-2.3.8'
Makefile:1215: recipe for target 'tools/motif-2.3.8/install/lib/libXm.a'
failed
make[1]: *** [tools/motif-2.3.8/install/lib/libXm.a] Error 2
make[1]: Leaving directory '/home/jdb2/src/rpl2/rpl-4.1.29'
Makefile:964: recipe for target 'all' failed
make: *** [all] Error 2
"
After I typed "make" again, this time the build completed successfully. :)
The problem I'm having now is that basic tests are failing. For example, if
I untar tests/tests.tar.gz and run "rpl arith.rpl" I get the error :
"
+++Error : Undefined implicit name [92178]
"
Also, when I run "rpl --help" I get an error after the license text that
reads :
"
+++Error : Any executable definition
"
Any thoughts?
Thanks,
Jonathan
> Regards,
>
> JKB
> _______________________________________________
> RPL2 mailing list
> RPL2 at rayleigh.systella.fr
> https://www.systella.fr/cgi-bin/mailman/listinfo/rpl2
> http://www.rpl2.net
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.systella.fr/pipermail/rpl2/attachments/20190115/fbff49d6/attachment.html>
More information about the RPL2
mailing list