[squid-users] Editing Makefile.am to include static libraries

Priya Agarwal priya_agarwal at students.iitmandi.ac.in
Wed Mar 25 10:26:05 UTC 2015


I could link the libraries. The problem was that libraries were C and thus
g++ wasn't creating right symbols.

I have another question.
what part of the source code handles shutdown or exiting (ctrl+c).
Thanks.

On Mon, Mar 16, 2015 at 11:37 AM, Amos Jeffries <squid3 at treenet.co.nz>
wrote:

> On 16/03/2015 6:36 p.m., Priya Agarwal wrote:
> > Hi,
> >
> > I am now linking the libraries during ./configure with LDFLAGS, LIBS and
> > CXXFLAGS options (Makefile.am is same as it was)  Compile is failing
> > presently.
> >
> > main.o: In function `of_init':
> >
> /media/NewVolume/yocto/build_t4240qds_release/tmp/sysroots/t4240qds/usr/include/usdpaa/of.h:52:
> > undefined reference to `of_init_path(char const*)'
> > collect2: error: ld returned 1 exit status
> > powerpc-fsl_networking-linux-libtool: link: rm -f ".libs/squidS.o"
> >
> > Does it mean I haven't linked the the library that has of_init() [But I
> > think I have done that as ./configure passed and libraries are even
> visible
> > in log]
> > Or I need to link something else?
>
> Close. It means that the libraries listed on the command line after the
> main.o object do not define that symbol.
>
> Its possible the library was linked first or via the wrong variable. Or
> that the C++ symbol mangling is different between what is wanted and
> what the library defines.
>
>
> >
> > Here are the flags passed to ./configure:
> > EXTRA_OECONF_append = "    LDFLAGS="-L=/usr/lib/" \
> >             LIBS="-lusdpaa_dma -lusdpaa_dma_mem -lusdpaa_of -lusdpaa_fman
> > -lusdpaa_qbman -lusdpaa_syscfg" \
> >             CXXFLAGS="-I=/usr/include/""
> >
>
> I see 12 separate command line arguments there. Not the 3 that should
> exist.
>
> Hint: shell expansion is applied to " symbols on the ./configure command
> line.
>
> Amos
>
> _______________________________________________
> squid-users mailing list
> squid-users at lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20150325/6278e1d1/attachment.html>


More information about the squid-users mailing list