<div dir="ltr"><div><div>I could link the libraries. The problem was that libraries were C and thus g++ wasn't creating right symbols.<br><br></div>I have another question.<br></div><div>what part of the source code handles shutdown or exiting (ctrl+c).<br></div><div>Thanks.<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 16, 2015 at 11:37 AM, Amos Jeffries <span dir="ltr"><<a href="mailto:squid3@treenet.co.nz" target="_blank">squid3@treenet.co.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 16/03/2015 6:36 p.m., Priya Agarwal wrote:<br>
> Hi,<br>
><br>
> I am now linking the libraries during ./configure with LDFLAGS, LIBS and<br>
> CXXFLAGS options (Makefile.am is same as it was)  Compile is failing<br>
> presently.<br>
><br>
> main.o: In function `of_init':<br>
> /media/NewVolume/yocto/build_t4240qds_release/tmp/sysroots/t4240qds/usr/include/usdpaa/of.h:52:<br>
> undefined reference to `of_init_path(char const*)'<br>
> collect2: error: ld returned 1 exit status<br>
> powerpc-fsl_networking-linux-libtool: link: rm -f ".libs/squidS.o"<br>
><br>
> Does it mean I haven't linked the the library that has of_init() [But I<br>
> think I have done that as ./configure passed and libraries are even visible<br>
> in log]<br>
> Or I need to link something else?<br>
<br>
</span>Close. It means that the libraries listed on the command line after the<br>
main.o object do not define that symbol.<br>
<br>
Its possible the library was linked first or via the wrong variable. Or<br>
that the C++ symbol mangling is different between what is wanted and<br>
what the library defines.<br>
<span class=""><br>
<br>
><br>
> Here are the flags passed to ./configure:<br>
> EXTRA_OECONF_append = "    LDFLAGS="-L=/usr/lib/" \<br>
>             LIBS="-lusdpaa_dma -lusdpaa_dma_mem -lusdpaa_of -lusdpaa_fman<br>
> -lusdpaa_qbman -lusdpaa_syscfg" \<br>
>             CXXFLAGS="-I=/usr/include/""<br>
><br>
<br>
</span>I see 12 separate command line arguments there. Not the 3 that should exist.<br>
<br>
Hint: shell expansion is applied to " symbols on the ./configure command<br>
line.<br>
<div class="HOEnZb"><div class="h5"><br>
Amos<br>
<br>
_______________________________________________<br>
squid-users mailing list<br>
<a href="mailto:squid-users@lists.squid-cache.org">squid-users@lists.squid-cache.org</a><br>
<a href="http://lists.squid-cache.org/listinfo/squid-users" target="_blank">http://lists.squid-cache.org/listinfo/squid-users</a><br>
</div></div></blockquote></div><br></div>