Me to need an arm EABI version 4 libxml2.so library file
I also I have this result in my compilation, I tried to fixed this error by multiple ways, but specifically I'm using gcc-4.1.1-glibc-2.4-nptl-sf-1 for IPCam, because for the other card (ADS i.mx27) use the gcc-4.1.2-blibc-2.5-nptl-3, I did not have problem for compile and execute this code on the board ADS im27.
[augusto@augusto-HP lectura_xml_lcd_IPCam]$ make
rm -f XMLLCD XMLLCD.exe
/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-sf-1/arm-926ejs-linux/arm-926ejs-linux/bin/gcc -c xml_lcd.c `xml2-config --cflags`
/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-sf-1/arm-926ejs-linux/arm-926ejs-linux/bin/gcc -O3 -Wall -I/home/augusto/IPCam/kernel/linux-2.6.19.2/include -s -o XMLLCD `xml2-config --libs` xml_lcd.o # -L/home/augusto/IPCam/ltib-imx27ads-20070522/rootfs/usr/lib
/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-sf-1/arm-926ejs-linux/lib/gcc/arm-926ejs-linux/4.1.1/../../../../arm-926ejs-linux/bin/ld: ERROR: Source object /opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-sf-1/arm-926ejs-linux/lib/gcc/arm-926ejs-linux/4.1.1/../../../../arm-926ejs-linux/lib/libxml2.so has EABI version 0, but target XMLLCD has EABI version 4
/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-sf-1/arm-926ejs-linux/lib/gcc/arm-926ejs-linux/4.1.1/../../../../arm-926ejs-linux/bin/ld: failed to merge target specific data of file /opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-sf-1/arm-926ejs-linux/lib/gcc/arm-926ejs-linux/4.1.1/../../../../arm-926ejs-linux/lib/libxml2.so
/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-sf-1/arm-926ejs-linux/lib/gcc/arm-926ejs-linux/4.1.1/../../../../arm-926ejs-linux/bin/ld: ERROR: Source object xml_lcd.o has EABI version 0, but target XMLLCD has EABI version 4
/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-sf-1/arm-926ejs-linux/lib/gcc/arm-926ejs-linux/4.1.1/../../../../arm-926ejs-linux/bin/ld: failed to merge target specific data of file xml_lcd.o
/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-sf-1/arm-926ejs-linux/lib/gcc/arm-926ejs-linux/4.1.1/../../../../arm-926ejs-linux/bin/ld: ERROR: Source object /opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-sf-1/arm-926ejs-linux/lib/gcc/arm-926ejs-linux/4.1.1/../../../../arm-926ejs-linux/lib/libc.so.6 has EABI version 0, but target XMLLCD has EABI version 4
/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-sf-1/arm-926ejs-linux/lib/gcc/arm-926ejs-linux/4.1.1/../../../../arm-926ejs-linux/bin/ld: failed to merge target specific data of file /opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-sf-1/arm-926ejs-linux/lib/gcc/arm-926ejs-linux/4.1.1/../../../../arm-926ejs-linux/lib/libc.so.6
/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-sf-1/arm-926ejs-linux/lib/gcc/arm-926ejs-linux/4.1.1/../../../../arm-926ejs-linux/bin/ld: ERROR: Source object /opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-sf-1/arm-926ejs-linux/lib/gcc/arm-926ejs-linux/4.1.1/../../../../arm-926ejs-linux/lib/libc_nonshared.a(elf-init.oS) has EABI version 0, but target XMLLCD has EABI version 4
/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-sf-1/arm-926ejs-linux/lib/gcc/arm-926ejs-linux/4.1.1/../../../../arm-926ejs-linux/bin/ld: failed to merge target specific data of file /opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-sf-1/arm-926ejs-linux/lib/gcc/arm-926ejs-linux/4.1.1/../../../../arm-926ejs-linux/lib/libc_nonshared.a(elf-init.oS)
/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-sf-1/arm-926ejs-linux/lib/gcc/arm-926ejs-linux/4.1.1/../../../../arm-926ejs-linux/bin/ld: ERROR: Source object /opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-sf-1/arm-926ejs-linux/lib/gcc/arm-926ejs-linux/4.1.1/../../../../arm-926ejs-linux/lib/ld-linux.so.2 has EABI version 0, but target XMLLCD has EABI version 4
/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-sf-1/arm-926ejs-linux/lib/gcc/arm-926ejs-linux/4.1.1/../../../../arm-926ejs-linux/bin/ld: failed to merge target specific data of file /opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-sf-1/arm-926ejs-linux/lib/gcc/arm-926ejs-linux/4.1.1/../../../../arm-926ejs-linux/lib/ld-linux.so.2
/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-sf-1/arm-926ejs-linux/lib/gcc/arm-926ejs-linux/4.1.1/../../../../arm-926ejs-linux/bin/ld: ERROR: Source object /opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-sf-1/arm-926ejs-linux/lib/gcc/arm-926ejs-linux/4.1.1/../../../../arm-926ejs-linux/lib/crtn.o has EABI version 0, but target XMLLCD has EABI version 4
/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-sf-1/arm-926ejs-linux/lib/gcc/arm-926ejs-linux/4.1.1/../../../../arm-926ejs-linux/bin/ld: failed to merge target specific data of file /opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-sf-1/arm-926ejs-linux/lib/gcc/arm-926ejs-linux/4.1.1/../../../../arm-926ejs-linux/lib/crtn.o
/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-sf-1/arm-926ejs-linux/lib/gcc/arm-926ejs-linux/4.1.1/../../../../arm-926ejs-linux/lib/libz.so: undefined reference to `fclose@GLIBC_2.4'
/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-sf-1/arm-926ejs-linux/lib/gcc/arm-926ejs-linux/4.1.1/../../../../arm-926ejs-linux/lib/libz.so: undefined reference to `malloc@GLIBC_2.4'
/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-sf-1/arm-926ejs-linux/lib/gcc/arm-926ejs-linux/4.1.1/../../../../arm-926ejs-linux/lib/libz.so: undefined reference to `fread@GLIBC_2.4'
/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-sf-1/arm-926ejs-linux/lib/gcc/arm-926ejs-linux/4.1.1/../../../../arm-926ejs-linux/lib/libz.so: undefined reference to `__errno_location@GLIBC_2.4'
/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-sf-1/arm-926ejs-linux/lib/gcc/arm-926ejs-linux/4.1.1/../../../../arm-926ejs-linux/lib/libz.so: undefined reference to `fwrite@GLIBC_2.4'
/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-sf-1/arm-926ejs-linux/lib/gcc/arm-926ejs-linux/4.1.1/../../../../arm-926ejs-linux/lib/libz.so: undefined reference to `vsprintf@GLIBC_2.4'
/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-sf-1/arm-926ejs-linux/lib/gcc/arm-926ejs-linux/4.1.1/../../../../arm-926ejs-linux/lib/libz.so: undefined reference to `sprintf@GLIBC_2.4'
/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-sf-1/arm-926ejs-linux/lib/gcc/arm-926ejs-linux/4.1.1/../../../../arm-926ejs-linux/lib/libz.so: undefined reference to `ftell@GLIBC_2.4'
/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-sf-1/arm-926ejs-linux/lib/gcc/arm-926ejs-linux/4.1.1/../../../../arm-926ejs-linux/lib/libz.so: undefined reference to `fseek@GLIBC_2.4'
/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-sf-1/arm-926ejs-linux/lib/gcc/arm-926ejs-linux/4.1.1/../../../../arm-926ejs-linux/lib/libz.so: undefined reference to `fdopen@GLIBC_2.4'
/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-sf-1/arm-926ejs-linux/lib/gcc/arm-926ejs-linux/4.1.1/../../../../arm-926ejs-linux/lib/libz.so: undefined reference to `strcpy@GLIBC_2.4'
/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-sf-1/arm-926ejs-linux/lib/gcc/arm-926ejs-linux/4.1.1/../../../../arm-926ejs-linux/lib/libz.so: undefined reference to `strcat@GLIBC_2.4'
/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-sf-1/arm-926ejs-linux/lib/gcc/arm-926ejs-linux/4.1.1/../../../../arm-926ejs-linux/lib/libz.so: undefined reference to `memcpy@GLIBC_2.4'
/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-sf-1/arm-926ejs-linux/lib/gcc/arm-926ejs-linux/4.1.1/../../../../arm-926ejs-linux/lib/libz.so: undefined reference to `free@GLIBC_2.4'
/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-sf-1/arm-926ejs-linux/lib/gcc/arm-926ejs-linux/4.1.1/../../../../arm-926ejs-linux/lib/libz.so: undefined reference to `strlen@GLIBC_2.4'
/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-sf-1/arm-926ejs-linux/lib/gcc/arm-926ejs-linux/4.1.1/../../../../arm-926ejs-linux/lib/libz.so: undefined reference to `fopen@GLIBC_2.4'
/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-sf-1/arm-926ejs-linux/lib/gcc/arm-926ejs-linux/4.1.1/../../../../arm-926ejs-linux/lib/libz.so: undefined reference to `fflush@GLIBC_2.4'
/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-sf-1/arm-926ejs-linux/lib/gcc/arm-926ejs-linux/4.1.1/../../../../arm-926ejs-linux/lib/libz.so: undefined reference to `ferror@GLIBC_2.4'
/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-sf-1/arm-926ejs-linux/lib/gcc/arm-926ejs-linux/4.1.1/../../../../arm-926ejs-linux/lib/libz.so: undefined reference to `fputc@GLIBC_2.4'
/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-sf-1/arm-926ejs-linux/lib/gcc/arm-926ejs-linux/4.1.1/../../../../arm-926ejs-linux/lib/libz.so: undefined reference to `memset@GLIBC_2.4'
/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-sf-1/arm-926ejs-linux/lib/gcc/arm-926ejs-linux/4.1.1/../../../../arm-926ejs-linux/lib/libz.so: undefined reference to `calloc@GLIBC_2.4'
/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-sf-1/arm-926ejs-linux/lib/gcc/arm-926ejs-linux/4.1.1/../../../../arm-926ejs-linux/lib/libz.so: undefined reference to `rewind@GLIBC_2.4'
/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-sf-1/arm-926ejs-linux/lib/gcc/arm-926ejs-linux/4.1.1/../../../../arm-926ejs-linux/lib/libz.so: undefined reference to `fprintf@GLIBC_2.4'
collect2: ld returned 1 exit status
make: *** [all] Error 1
[augusto@augusto-HP lectura_xml_lcd_IPCam]$
Please if anyone has resolve this bug, tell me how you resolved it
Best regards
Last edited by rasobrevilla; 07-11-2012 at 01:31 PM.
|