<div dir="ltr"><div><div><div>I tried what you advised. Getting the same error for both methods (./configure LDFLAGS=-L<../tmp/../lib CXXFLAGS=-I<.../tmp../include or editing Makefile.am appropriately). autoreconf is failing.<br></div>And also I am getting many such warnings:<br><br>| src/Common.am:16: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')<br>| compat/Makefile.am:5:   'src/Common.am' included from here<br>| src/Common.am:16: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')<br>| helpers/basic_auth/DB/Makefile.am:1:   'src/Common.am' included from here<br>| src/Common.am:16: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')<br>| helpers/basic_auth/LDAP/Makefile.am:1:   'src/Common.am' included from here<br>| src/Common.am:16: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')<br>| helpers/basic_auth/MSNT-multi-domain/Makefile.am:1:   'src/Common.am' included from here<br>| src/Common.am:16: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')<br><br></div>Final error:<br>| autoreconf: automake failed with exit status: 1<br>| ERROR: autoreconf execution failed.<br><br></div><div>So is something wrong with the path?<br></div><div><br></div>I have attached the logfile as well which shows the detailed output.<br><div><br><div><div><br><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 13, 2015 at 3:24 PM, 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 13/03/2015 10:19 p.m., Priya Agarwal wrote:<br>
> Hi,<br>
><br>
> I wanted to link certain static libraries and use them in squid source<br>
> code. I added the following lines in Makefile.am of the 'src' directory.<br>
<br>
</span>Please be aware if you do that your new code and anything built from the<br>
Squid Makefile MUST be GPLv2 compliant.<br>
<span class=""><br>
<br>
><br>
> squid_LDFLAGS =<br>
> -L/media/NewVolume/yocto/build_t4240qds_release/tmp/work/ppce6500-fsl_networking-linux/usdpaa/git-r5/lib_powerpc/<br>
><br>
> squid_LDLIBS = -lusdpaa_dma -lusdpaa_dpa_offload -lusdpaa_of -lusdpaa_ppac<br>
> -lusdpaa_qbman -lusdpaa_rmu -lusdpaa_srio -lusdpaa_dma_mem -lusdpaa_fman<br>
> -lusdpaa_pme \<br>
>                -lusdpaa_process -lusdpaa_rman -lusdpaa_sec -lusdpaa_syscfg<br>
><br>
> squid_CPPFLAGS =<br>
> -I/media/NewVolume/yocto/build_t4240qds_release/tmp/work/ppce6500-fsl_networking-linux/usdpaa/git-r5/include/<br>
><br>
> But I think this wrong as libraries aren't getting linked. I am getting<br>
> "undefined reference to" errors.<br>
> So what variables should I add/change.<br>
<br>
</span>Those options are auto-generated by the autotools build chain.<br>
<br>
The -L flag should be passed by the ./configure LDFLAGS= parameter or<br>
coded into Makefile.am variable as a relative path. Its unlikely the<br>
exact absolute path will remain the same even within your build<br>
machines. I see you are using some path under ".../tmp" for example.<br>
<br>
<br>
Libraries are added to squid_LDADD variable. That takes the form:<br>
<br>
 squid_LDADD += -lusdpaa_dma<br>
or<br>
 squid_LDADD += -L$(top_srcdir)/../usdpaa/ -lusdpaa_dma<br>
<br>
<br>
which assumes the squid and usdpaa library code checkouts are sitting<br>
next to each other.<br>
<br>
<br>
Same deal for the -I value in the ./configure CXXFLAGS= parameter, or in<br>
the Makefile.am as a relative path:<br>
<br>
 AM_CPPFLAGS += -I$(top_srcdir)/../usdpaa/include/<br>
<br>
<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>
</blockquote></div><br></div>