[RPL/2] Issue to compile

Andrea Girotto andrea.girotto at gmail.com
Sat Aug 4 11:57:27 CEST 2018


Hello,
I have an issue trying to compile RPL2:

$ make
  BUILD  rpl.inc
make  all-am
make[1]: Entering directory
'/home/andr3a/Projects/personal/aur4/rpl2/rpl-4.1.28/src'
  CXXLD    rpl
/usr/lib/gcc/x86_64-pc-linux-gnu/8.1.1/../../../../lib/Scrt1.o: In
function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:1258: rpl] Error 1
make[1]: Leaving directory
'/home/andr3a/Projects/personal/aur4/rpl2/rpl-4.1.28/src'
make: *** [Makefile:1144: all] Error 2


The "main" function is contained in "init.c", but it seems that it is
not linked.
Any suggestion?

I'm using:

$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/8.1.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /build/gcc/src/gcc/configure --prefix=/usr
--libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man
--infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/
--enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared
--enable-threads=posix --enable-libmpx --with-system-zlib --with-isl
--enable-__cxa_atexit --disable-libunwind-exceptions
--enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp
--enable-gnu-unique-object --enable-linker-build-id --enable-lto
--enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu
--enable-gnu-indirect-function --enable-multilib --disable-werror
--enable-checking=release --enable-default-pie --enable-default-ssp
Thread model: posix
gcc version 8.1.1 20180531 (GCC)

Thank you,
best regards,
A.


-- 

Please note that unencrypted emails can be easily intercepted and read by third parties. 
For transmitting confidential information please consider encrypting your emails. 
My GnuPG/PGP key fingerprint is CAA9 E043 E398 DDAB 8E02 E380 99DA 87DC 49D6 8B25.
https://keys.mailvelope.com/pks/lookup?op=get&search=0x99DA87DC49D68B25



More information about the RPL2 mailing list