[syslog-ng] compiling problems --enable-mongodb --enable-json --enable-redis

Gergely Nagy algernon at balabit.hu
Tue Jul 22 14:22:06 CEST 2014


<jrhendri at roadrunner.com> writes:

> RHEL 5:
> I have installed json-c & redis-stable which provides these libraries:
>
> ./redis-stable/deps/hiredis/hiredis.h
> ./redis-stable/deps/hiredis/libhiredis.a
>
> and created links here to try and get around issues:
> /usr/lib/hiredis
> /usr/lib/hiredis/libhiredis.a
> /usr/include/hiredis
> /usr/include/hiredis/hiredis.h
>
[...]
> Make fails here:
>
>   CC       modules/redis/modules_redis_libredis_la-redis-grammar.lo
>   CC       modules/redis/modules_redis_libredis_la-redis.lo
>   CC       modules/redis/modules_redis_libredis_la-redis-parser.lo
>   CCLD     modules/redis/libredis.la
> /usr/bin/ld: cannot find -lhiredis
> collect2: ld returned 1 exit status
> make[2]: *** [modules/redis/libredis.la] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
> [n0142566 at VDDP13E-F1A47ED syslog-ng-3.5.4.1]$ 

Can you run make with a V=1 parameter? That will tell us all the
parameters it passes to gcc when compiling and linking. The problem is
likely that the library is not on the search path, and for some reason,
we don't put it there either.

Running with V=1 should reveal what the issue is, more clearly.

-- 
|8]


More information about the syslog-ng mailing list