Error while cross-compiling for net-snmp

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Error while cross-compiling for net-snmp

424 Views
dibyarekha
Contributor IV

Hi All,

I am working with LS1043ardb. I am cross-compilig my application using cross-compiler toolchain /opt/fslqoriq/3.1.

My application uses net-snmp. While cross-compiling I am getting the following error. I think somewhere its library linking error. 

/opt/fsl-qoriq/3.1/sysroots/x86_64-fslsdk-linux/usr/libexec/aarch64-fsl-linux/gcc/aarch64-fsl-linux/9.3.0/real-ld: warning: library search path "/usr/lib" is unsafe for cross-compilation
/opt/fsl-qoriq/3.1/sysroots/x86_64-fslsdk-linux/usr/libexec/aarch64-fsl-linux/gcc/aarch64-fsl-linux/9.3.0/real-ld: /opt/fsl-qoriq/3.1/sysroots/aarch64-fsl-linux/usr/lib/libcrypto.so.3: undefined reference to `dladdr@GLIBC_2.34'
/opt/fsl-qoriq/3.1/sysroots/x86_64-fslsdk-linux/usr/libexec/aarch64-fsl-linux/gcc/aarch64-fsl-linux/9.3.0/real-ld: /opt/fsl-qoriq/3.1/sysroots/aarch64-fsl-linux/usr/lib/libcrypto.so.3: undefined reference to `dlclose@GLIBC_2.34'
/opt/fsl-qoriq/3.1/sysroots/x86_64-fslsdk-linux/usr/libexec/aarch64-fsl-linux/gcc/aarch64-fsl-linux/9.3.0/real-ld: /opt/fsl-qoriq/3.1/sysroots/aarch64-fsl-linux/usr/lib/libnetsnmp.so: undefined reference to `fstat@GLIBC_2.33'
/opt/fsl-qoriq/3.1/sysroots/x86_64-fslsdk-linux/usr/libexec/aarch64-fsl-linux/gcc/aarch64-fsl-linux/9.3.0/real-ld: /opt/fsl-qoriq/3.1/sysroots/aarch64-fsl-linux/usr/lib/libcrypto.so.3: undefined reference to `dlerror@GLIBC_2.34'
/opt/fsl-qoriq/3.1/sysroots/x86_64-fslsdk-linux/usr/libexec/aarch64-fsl-linux/gcc/aarch64-fsl-linux/9.3.0/real-ld: /opt/fsl-qoriq/3.1/sysroots/aarch64-fsl-linux/usr/lib/libcrypto.so.3: undefined reference to `pthread_key_create@GLIBC_2.34'
/opt/fsl-qoriq/3.1/sysroots/x86_64-fslsdk-linux/usr/libexec/aarch64-fsl-linux/gcc/aarch64-fsl-linux/9.3.0/real-ld: /opt/fsl-qoriq/3.1/sysroots/aarch64-fsl-linux/usr/lib/libcrypto.so.3: undefined reference to `pthread_rwlock_unlock@GLIBC_2.34'
/opt/fsl-qoriq/3.1/sysroots/x86_64-fslsdk-linux/usr/libexec/aarch64-fsl-linux/gcc/aarch64-fsl-linux/9.3.0/real-ld: /opt/fsl-qoriq/3.1/sysroots/aarch64-fsl-linux/usr/lib/libcrypto.so.3: undefined reference to `pthread_setspecific@GLIBC_2.34'
/opt/fsl-qoriq/3.1/sysroots/x86_64-fslsdk-linux/usr/libexec/aarch64-fsl-linux/gcc/aarch64-fsl-linux/9.3.0/real-ld: /opt/fsl-qoriq/3.1/sysroots/aarch64-fsl-linux/usr/lib/libcrypto.so.3: undefined reference to `pthread_rwlock_destroy@GLIBC_2.34'
/opt/fsl-qoriq/3.1/sysroots/x86_64-fslsdk-linux/usr/libexec/aarch64-fsl-linux/gcc/aarch64-fsl-linux/9.3.0/real-ld: /opt/fsl-qoriq/3.1/sysroots/aarch64-fsl-linux/usr/lib/libcrypto.so.3: undefined reference to `pthread_rwlock_wrlock@GLIBC_2.34'
/opt/fsl-qoriq/3.1/sysroots/x86_64-fslsdk-linux/usr/libexec/aarch64-fsl-linux/gcc/aarch64-fsl-linux/9.3.0/real-ld: /opt/fsl-qoriq/3.1/sysroots/aarch64-fsl-linux/usr/lib/libcrypto.so.3: undefined reference to `dlsym@GLIBC_2.34'
/opt/fsl-qoriq/3.1/sysroots/x86_64-fslsdk-linux/usr/libexec/aarch64-fsl-linux/gcc/aarch64-fsl-linux/9.3.0/real-ld: /opt/fsl-qoriq/3.1/sysroots/aarch64-fsl-linux/usr/lib/libcrypto.so.3: undefined reference to `pthread_getspecific@GLIBC_2.34'
/opt/fsl-qoriq/3.1/sysroots/x86_64-fslsdk-linux/usr/libexec/aarch64-fsl-linux/gcc/aarch64-fsl-linux/9.3.0/real-ld: /opt/fsl-qoriq/3.1/sysroots/aarch64-fsl-linux/usr/lib/libcrypto.so.3: undefined reference to `pthread_key_delete@GLIBC_2.34'
/opt/fsl-qoriq/3.1/sysroots/x86_64-fslsdk-linux/usr/libexec/aarch64-fsl-linux/gcc/aarch64-fsl-linux/9.3.0/real-ld: /opt/fsl-qoriq/3.1/sysroots/aarch64-fsl-linux/usr/lib/libcrypto.so.3: undefined reference to `pthread_rwlock_init@GLIBC_2.34'
/opt/fsl-qoriq/3.1/sysroots/x86_64-fslsdk-linux/usr/libexec/aarch64-fsl-linux/gcc/aarch64-fsl-linux/9.3.0/real-ld: /opt/fsl-qoriq/3.1/sysroots/aarch64-fsl-linux/usr/lib/libnetsnmp.so: undefined reference to `stat@GLIBC_2.33'
/opt/fsl-qoriq/3.1/sysroots/x86_64-fslsdk-linux/usr/libexec/aarch64-fsl-linux/gcc/aarch64-fsl-linux/9.3.0/real-ld: /opt/fsl-qoriq/3.1/sysroots/aarch64-fsl-linux/usr/lib/libcrypto.so.3: undefined reference to `dlopen@GLIBC_2.34'
/opt/fsl-qoriq/3.1/sysroots/x86_64-fslsdk-linux/usr/libexec/aarch64-fsl-linux/gcc/aarch64-fsl-linux/9.3.0/real-ld: /opt/fsl-qoriq/3.1/sysroots/aarch64-fsl-linux/usr/lib/libcrypto.so.3: undefined reference to `pthread_once@GLIBC_2.34'
/opt/fsl-qoriq/3.1/sysroots/x86_64-fslsdk-linux/usr/libexec/aarch64-fsl-linux/gcc/aarch64-fsl-linux/9.3.0/real-ld: /opt/fsl-qoriq/3.1/sysroots/aarch64-fsl-linux/usr/lib/libcrypto.so.3: undefined reference to `pthread_rwlock_rdlock@GLIBC_2.34'
collect2: error: ld returned 1 exit status
make: *** [Makefile:38: main] Error 1

 

Please help me in solving the error

0 Kudos
Reply
0 Replies