Notes |
(0003554)
carmelo73
01-29-08 05:10
|
The problem is caused by the index() macro. You need to disable UCLIBC_SUSV3_LEAGCY_MACRO |
| |
(0003559)
asif
01-29-08 05:24
|
hi carmelo,
there are 2 macro in /gcc-4.1.2-uclibc/include/string.h file, should i diable both these options?
# ifdef __UCLIBC_SUSV3_LEGACY__
# ifdef __UCLIBC_SUSV3_LEGACY_MACROS__
thanks |
| |
(0003564)
carmelo73
01-29-08 06:10
|
__UCLIBC_SUSV3_LEGACY_MACROS__ is sufficient, but you need to do this
at configuration time, do not change string.h directly. |
| |
(0003569)
asif
01-29-08 06:34
|
thanks!
i make changes in string.h and try rebuild, same error, im using below statement to undefine said macro
#undef __UCLIBC_SUSV3_LEGACY_MACROS__
as u told earlier, that this change must be done in configuration file, can u plz tell me how can i do this. Actually i get this cross toolchain from 3rd party. |
| |
(0003574)
carmelo73
01-29-08 08:42
|
If you cannot rebuild your uclibc, then ad this into your header BufferedFile.hpp
#ifdef index
#undef index
#endif |
| |
(0003614)
carmelo73
01-30-08 10:11
|
Reminder sent to: asif Hello asif,
have you tried with my latest suggestion ?
|
| |
(0003619)
asif
01-30-08 10:46
|
hi carmelo,
sorry for the delay, yes i tried that out, it works but the build was not successful and fails at linking stage. below are the details..
linking ../bin/cldc_vm ...
/opt/gcc-4.1.2-uclibc/bin/g++ -o ../bin/cldc_vm jvmspi.o Main_linux.o NativesTable.o ROMImage.o ../bin/libcldc_vmx.a ../bin/libcldc_vmtest.a ../bin/libcldc_vm.a \
/home/asif/output/mr2/arm/pcsl/linux_arm/lib/libpcsl_memory.a /home/asif/output/mr2/arm/pcsl/linux_arm/lib/libpcsl_print.a /home/asif/output/mr2/arm/pcsl/linux_arm/lib/libpcsl_network.a /home/asif/output/mr2/arm/pcsl/linux_arm/lib/libpcsl_string.a /home/asif/output/mr2/arm/pcsl/linux_arm/lib/libpcsl_file.a -Xlinker --no-warn-mismatch -lpthread
/opt/gcc-4.1.2-uclibc/bin/../lib/gcc/arm-linux-uclibc/4.1.2/../../../../arm-linux-uclibc/bin/ld: cannot find /opt/usr/local/arm/gcc-4.1.2-uclibc/lib/libc.so.0
collect2: ld returned 1 exit status
actually it is trying to get libc.so.s0 from a wrong path, i copied the files at that particular file path but it fails at some next stage giving the error details below...
/opt/atmel/gcc-4.1.2-uclibc/bin/../lib/gcc/arm-linux-uclibc/4.1.2/../../../../arm-linux-uclibc/lib/libstdc++.so: undefined reference to `__towupper_l'
/opt/atmel/gcc-4.1.2-uclibc/bin/../lib/gcc/arm-linux-uclibc/4.1.2/../../../../arm-linux-uclibc/lib/libstdc++.so: undefined reference to `__strtold_l'
/opt/atmel/gcc-4.1.2-uclibc/bin/../lib/gcc/arm-linux-uclibc/4.1.2/../../../../arm-linux-uclibc/lib/libstdc++.so: undefined reference to `__strftime_l'
/opt/atmel/gcc-4.1.2-uclibc/bin/../lib/gcc/arm-linux-uclibc/4.1.2/../../../../arm-linux-uclibc/lib/libstdc++.so: undefined reference to `__nl_langinfo_l'
/opt/atmel/gcc-4.1.2-uclibc/bin/../lib/gcc/arm-linux-uclibc/4.1.2/../../../../arm-linux-uclibc/lib/libstdc++.so: undefined reference to `__newlocale'
/opt/atmel/gcc-4.1.2-uclibc/bin/../lib/gcc/arm-linux-uclibc/4.1.2/../../../../arm-linux-uclibc/lib/libstdc++.so: undefined reference to `__freelocale'
/opt/atmel/gcc-4.1.2-uclibc/bin/../lib/gcc/arm-linux-uclibc/4.1.2/../../../../arm-linux-uclibc/lib/libstdc++.so: undefined reference to `__wcsxfrm_l'
/opt/atmel/gcc-4.1.2-uclibc/bin/../lib/gcc/arm-linux-uclibc/4.1.2/../../../../arm-linux-uclibc/lib/libstdc++.so: undefined reference to `__iswctype_l'
/opt/atmel/gcc-4.1.2-uclibc/bin/../lib/gcc/arm-linux-uclibc/4.1.2/../../../../arm-linux-uclibc/lib/libstdc++.so: undefined reference to `__towlower_l'
/opt/atmel/gcc-4.1.2-uclibc/bin/../lib/gcc/arm-linux-uclibc/4.1.2/../../../../arm-linux-uclibc/lib/libstdc++.so: undefined reference to `__strtod_l'
/opt/atmel/gcc-4.1.2-uclibc/bin/../lib/gcc/arm-linux-uclibc/4.1.2/../../../../arm-linux-uclibc/lib/libstdc++.so: undefined reference to `__uselocale'
/opt/atmel/gcc-4.1.2-uclibc/bin/../lib/gcc/arm-linux-uclibc/4.1.2/../../../../arm-linux-uclibc/lib/libstdc++.so: undefined reference to `__strcoll_l'
/opt/atmel/gcc-4.1.2-uclibc/bin/../lib/gcc/arm-linux-uclibc/4.1.2/../../../../arm-linux-uclibc/lib/libstdc++.so: undefined reference to `__wctype_l'
/opt/atmel/gcc-4.1.2-uclibc/bin/../lib/gcc/arm-linux-uclibc/4.1.2/../../../../arm-linux-uclibc/lib/libstdc++.so: undefined reference to `__strxfrm_l'
/opt/atmel/gcc-4.1.2-uclibc/bin/../lib/gcc/arm-linux-uclibc/4.1.2/../../../../arm-linux-uclibc/lib/libstdc++.so: undefined reference to `__wcsftime_l'
/opt/atmel/gcc-4.1.2-uclibc/bin/../lib/gcc/arm-linux-uclibc/4.1.2/../../../../arm-linux-uclibc/lib/libstdc++.so: undefined reference to `__strtof_l'
/opt/atmel/gcc-4.1.2-uclibc/bin/../lib/gcc/arm-linux-uclibc/4.1.2/../../../../arm-linux-uclibc/lib/libstdc++.so: undefined reference to `__wcscoll_l'
/opt/atmel/gcc-4.1.2-uclibc/bin/../lib/gcc/arm-linux-uclibc/4.1.2/../../../../arm-linux-uclibc/lib/libstdc++.so: undefined reference to `__duplocale'
please guide me how can i fix this issue and the possible reason,
thanks alot
asif |
| |
(0003629)
carmelo73
01-30-08 22:50
|
I'm closing this bug once the suggested work-around solved your issue.
The error you are now seeing is due to some missing symbols into your uClibc libraries: it seems that the uClibc has been configured without LOCALE support.
Further I think you need X_LOCALE support enabled too.
Now I've not understood if you have uClibc source and you can rebuild them
(if so, that's fine), or you have only binaries.
If the latter, you should ask for a freshen uClibc libraries built with the [X]LOCALE support. |
| |