[squid-users] Editing Makefile.am to include static libraries
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).
On Mon, Mar 16, 2015 at 11:37 AM, Amos Jeffries <squid3 at treenet.co.nz>
> 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':
> > 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
> > 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
> Hint: shell expansion is applied to " symbols on the ./configure command
> squid-users mailing list
> squid-users at lists.squid-cache.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the squid-users