Hi Rainer,
I think I know why it fails in my case.
I'll check how to remedy this in autoconf. However, to make it work for
everybody I'll need to check how they configured jemalloc and based on that
do the same check, but with more -l{libname} behind -ljemalloc, which is
exactly what I needed, because I added libunwind so just compiling with
-ljemalloc fails because of unresolved symbols that are present in
libunwind.
Didn't have time today, but I should be able to do it Friday or during the
weekend. Thanks,
Reinoud.
On Sep 4, 2014 3:50 AM, "Rainer Gerhards" <[email protected]> wrote:
> On Thu, Sep 4, 2014 at 2:33 AM, Reinoud Koornstra <
> [email protected]> wrote:
>
> > Hi Everyone,
> >
> > I configuredl ike this:
> >
> > ./configure \
> > --enable-autogen \
> > --prefix=/usr/local \
> > --with-jemalloc-prefix="" \
> > --with-private-namespace="" \
> > --enable-prof \
> > --enable-prof-libunwind \
> > --with-static-libunwind=/usr/lib/x86_64-linux-gnu/libunwind-x86_64.a \
> > --enable-dss \
> > --enable-xmalloc
> >
> > compiling an own program with malloc_stats_print works fine.
> >
> > However, upon configuring rsyslog i get:
> >
> > checking for malloc_stats_print in -ljemalloc... no
> > configure: error: in `/home/reinoud/rsyslog-8.4.0':
> > configure: error: jemalloc library is missing
> >
> >
> I use AC_CHECK_LIB to test for it:
>
> https://github.com/rsyslog/rsyslog/blob/master/configure.ac#L392
>
> If there is anything wrong with that check, let me know a correction and
> I'll add it.
>
> Thanks,
> Rainer
> _______________________________________________
> rsyslog mailing list
> http://lists.adiscon.net/mailman/listinfo/rsyslog
> http://www.rsyslog.com/professional-services/
> What's up with rsyslog? Follow https://twitter.com/rgerhards
> NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad
> of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you
> DON'T LIKE THAT.
>
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE
THAT.