[Samba] Errors observing when talloc-2.3.1 is cross compiled
Balaraman B
bbalaraman97 at gmail.com
Tue Jul 21 15:32:23 UTC 2020
Hi Team,
We need freeradius-server-3.0.21 to be cross compiled for armv7 based
Marvell switch.
Toolchain: armv7-marvell-linux-gnueabi-LE_i686_20160226
host : arm-none-linux-gnueabi
CC : arm-marvell-linux-gnueabi-gcc
For that talloc is dependent library.
Trying to cross compile talloc-2.3.1 to for our architecture with below
command.
./configure --disable-python --enable-gccdeps --show-deps=SHOWDEPS
--why-needed=WHYNEEDED --show-duplicates --cross-compile
--cross-execute=arm-marvell-linux-gnueabi-gcc
--hostcc=arm-none-linux-gnueabi-gcc --prefix=/home/balaram/MOXA/talloc/
Log:
root at sfsubuntu11:/home/balaram/MOXA/talloc-2.3.1# ./configure
--show-duplicates --cross-compile
--cross-execute='arm-marvell-linux-gnueabi-' --host=arm-none-linux-gnueabi
--prefix=/home/balaram/MOXA/talloc/
this is python path balaram
Setting top to : /home/balaram/MOXA/talloc-2.3.1
Setting out to :
/home/balaram/MOXA/talloc-2.3.1/bin
Checking for 'gcc' (C compiler) : arm-marvell-linux-gnueabi-gcc
Checking for program 'git' : /usr/bin/git
Checking for c flags '-MMD' : yes
Checking for program 'gdb' : arm-marvell-linux-gnueabi-gdb
Checking for header sys/utsname.h : yes
Checking uname sysname type : not found
Checking uname machine type : not found
Checking uname release type : not found
Checking uname version type : not found
Checking for header stdio.h : yes
Checking simple C program : not found
The configuration failed
(complete log in /home/balaram/MOXA/talloc-2.3.1/bin/config.log)
When checked in config.log, it seems "multiple definition found" error
observed.
#include <stdio.h>
int main(void) { printf("hello world"); return 0; }
<==
[1/3] Compiling
^[[32mbin/.conf_check_79f1972132b1b06dc8dfdcac62686566/test.c^[[0m
['arm-marvell-linux-gnueabi-gcc', '-MMD',
'-I/home/balaram/MOXA/talloc-2.3.1/buildtools/wafsamba', '-I.', '-I../..',
'-I.', '-I../..', '../../test.c', '-c',
'-o/home/balaram/MOXA/talloc-2.3.1/bin/.conf_check_79f1972132b1b06dc8dfdcac62686566/testbuild/default/test.c.1.o',
'-I/projects/cpss4.2.2019.2/Marvell_toolchain_201201/armv7-marvell-linux-gnueabi-softfp_i686/arm-marvell-linux-gnueabi/libc/usr/include/']
[2/3] Linking
^[[33mbin/.conf_check_79f1972132b1b06dc8dfdcac62686566/testbuild/default/testprog^[[0m
['arm-marvell-linux-gnueabi-gcc', 'test.c.1.o', '-o',
'/home/balaram/MOXA/talloc-2.3.1/bin/.conf_check_79f1972132b1b06dc8dfdcac62686566/testbuild/default/testprog',
'-Wl,-Bstatic', '-Wl,-Bdynamic']
[3/3] Processing
^[[35mbin/.conf_check_79f1972132b1b06dc8dfdcac62686566/testbuild/default/testprog^[[0m
['/home/balaram/MOXA/talloc-2.3.1/bin/.conf_check_79f1972132b1b06dc8dfdcac62686566/testbuild/default/testprog',
'--cross-execute', 'arm-marvell-linux-gnueabi-gcc']
err:
/home/balaram/MOXA/talloc-2.3.1/bin/.conf_check_79f1972132b1b06dc8dfdcac62686566/testbuild/default/testprog:
In function `_fini':
crtstuff.c:(.fini+0x0): multiple definition of `_fini'
/home/balaram/MOXA/le/armv7_latest/bin/../arm-marvell-linux-gnueabi/libc/usr/lib/crti.o:(.fini+0x0):
first defined here
/home/balaram/MOXA/talloc-2.3.1/bin/.conf_check_79f1972132b1b06dc8dfdcac62686566/testbuild/default/testprog:
In function `__data_start':
crtstuff.c:(.data+0x0): multiple definition of `__data_start'
/home/balaram/MOXA/le/armv7_latest/bin/../arm-marvell-linux-gnueabi/libc/usr/lib/crt1.o:init.c:(.data+0x0):
first defined here
/home/balaram/MOXA/talloc-2.3.1/bin/.conf_check_79f1972132b1b06dc8dfdcac62686566/testbuild/default/testprog:
In function `__data_start':
crtstuff.c:(.data+0x4): multiple definition of `__dso_handle'
/home/balaram/MOXA/le/armv7_latest/bin/../lib/gcc/arm-marvell-linux-gnueabi/4.6.4/crtbegin.o:(.data+0x0):
first defined here
/home/balaram/MOXA/talloc-2.3.1/bin/.conf_check_79f1972132b1b06dc8dfdcac62686566/testbuild/default/testprog:(.rodata+0x0):
multiple definition of `_IO_stdin_used'
/home/balaram/MOXA/le/armv7_latest/bin/../arm-marvell-linux-gnueabi/libc/usr/lib/crt1.o:(.rodata.cst4+0x0):
first defined here
/home/balaram/MOXA/talloc-2.3.1/bin/.conf_check_79f1972132b1b06dc8dfdcac62686566/testbuild/default/testprog:
In function `_start':
crtstuff.c:(.text+0x0): multiple definition of `_start'
/home/balaram/MOXA/le/armv7_latest/bin/../arm-marvell-linux-gnueabi/libc/usr/lib/crt1.o:init.c:(.text+0x0):
first defined here
/home/balaram/MOXA/talloc-2.3.1/bin/.conf_check_79f1972132b1b06dc8dfdcac62686566/testbuild/default/testprog:
In function `_init':
crtstuff.c:(.init+0x0): multiple definition of `_init'
/home/balaram/MOXA/le/armv7_latest/bin/../arm-marvell-linux-gnueabi/libc/usr/lib/crti.o:(.init+0x0):
first defined here
collect2: ld returned 1 exit status
from /home/balaram/MOXA/talloc-2.3.1/buildtools/wafsamba: The configuration
failed False
not found
Requesting your help in resolving the issue.
--
Thanks and Regards,
Balaram
More information about the samba
mailing list