Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Rainer Weikusat Newsgroups: comp.os.linux.development.apps Subject: Re: Error while cross compiling libcurl library Date: Tue, 15 Apr 2014 15:37:09 +0100 Lines: 21 Message-ID: <87sipefylm.fsf@sable.mobileactivedefense.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: individual.net RVoC69pQNhdbLeuIin2AwwFBtUgaM3gN+vQmNLNt4Eo4prjV8= Cancel-Lock: sha1:5g38p9ahCisJsT4Ca0Xl/DRiRTs= sha1:biDdGcItW4nRJeq7H4BfrMQXJ2o= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Xref: csiph.com comp.os.linux.development.apps:689 innolab123@gmail.com writes: > Hi, > I am using openwrt white russian SDK to cross compile my c code.The code uses curl library so I added libcurl.so in the lib folder of the SDK. > > I think this is a problem of version mismatch. Because I read in one of group posts that '' represents hidden dependencies in linux and here for example I an also getting > undefined reference to `abort@GLIBC_2.0' > > Now when I cross compile the c code it gives error > > > /home/inovationlab/test2/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/bin/../lib/gcc/mipsel-linux-uclibc/3.4.4/../../../../mipsel-linux-uclibc/lib/libcurl.so: undefined reference to `getenv@GLIBC_2.0' > /home/inovationlab/test2/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/bin/../lib/gcc/mipsel-linux-uclibc/3.4.4/../../../../mipsel-linux-uclibc/lib/libcurl.so: undefined reference to `strcpy@GLIBC_2.0' > /home/inovationlab/test2/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/bin/../lib/gcc/mipsel-linux-uclibc/3.4.4/../../../../mipsel-linux-uclibc/lib/libcurl.so: undefined reference to `strchr@GLIBC_2.0' [and so on] These are all 'standard' C library functions. This suggests that the curl library was linked with another C library than the one you're trying to use for this case ("somewhat educated guess").