atefsaeed2010 / datacard

Automatically exported from code.google.com/p/datacard
Other
0 stars 1 forks source link

chan_datacard for Broadcom BCM63XX ... error #71

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello!

I'm trying to compile chan_datacard for Broadcom BCM63XX platform using the 
latest makefile but I'm getting this error:

mips-openwrt-linux-uclibc-gcc 
-L/home/felix/trunk/staging_dir/target-mips_uClibc-0.9.32/usr/lib 
-L/home/felix/trunk/staging_dir/target-mips_uClibc-0.9.32/lib 
-L/home/felix/trunk/staging_dir/toolchain-mips_gcc-linaro_uClibc-0.9.32/usr/lib 
-L/home/felix/trunk/staging_dir/toolchain-mips_gcc-linaro_uClibc-0.9.32/lib 
-shared -Xlinker -x -o chan_datacard.so app.o at_command.o at_parse.o 
at_queue.o at_read.o at_response.o chan_datacard.o channel.o char_conv.o cli.o 
helpers.o manager.o memmem.o ringbuffer.o cpvt.o dc_config.o pdu.o mixbuffer.o 
pdiscovery.o 
/home/felix/trunk/staging_dir/toolchain-mips_gcc-linaro_uClibc-0.9.32/lib/gcc/mi
ps-openwrt-linux-uclibc/4.5.2/../../../../mips-openwrt-linux-uclibc/bin/ld: 
app.o: relocation R_MIPS_26 against `a local symbol' can not be used when 
making a shared object; recompile with -fPIC
app.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[3]: *** [chan_datacard.so] Error 1
make[3]: Leaving directory 
`/home/felix/trunk/build_dir/target-mips_uClibc-0.9.32/chan_datacard-1.0.r310'
make[2]: *** 
[/home/felix/trunk/build_dir/target-mips_uClibc-0.9.32/chan_datacard-1.0.r310/.b
uilt] Error 2
make[2]: Leaving directory `/home/felix/trunk/package/chan_datacard'
make[1]: *** [package/chan_datacard/compile] Error 2
make[1]: Leaving directory `/home/felix/trunk'
make: *** [package/chan_datacard-compile] Error 2

Any suggestion?

Original issue reported on code.google.com by fpal...@gmail.com on 21 Mar 2011 at 2:10

GoogleCodeExporter commented 9 years ago
Forgot to say I got the error in OpenWRT ...

Original comment by fpal...@gmail.com on 21 Mar 2011 at 2:49

GoogleCodeExporter commented 9 years ago
Changing into this:

MAKE_ARGS:= \
    CC="$(TARGET_CC)" \
    LD="$(TARGET_CC)" \
    CFLAGS="$(TARGET_CFLAGS) -DLOW_MEMORY $(TARGET_CPPFLAGS) -I$(STAGING_DIR)/usr/lib/libiconv-full/include -I$(BUILD_DIR)/$(WITH_ASTERISK)/include -DHAVE_CONFIG_H -I. -fPIC" \

it compiles. I just didn't test the package with a Huawei card ...

Original comment by fpal...@gmail.com on 21 Mar 2011 at 3:41

GoogleCodeExporter commented 9 years ago
please, use forum for this

Original comment by pag...@gmail.com on 21 Mar 2011 at 7:15

GoogleCodeExporter commented 9 years ago

Original comment by bg_...@mail.ru on 22 Mar 2011 at 7:13