Hi all,
I'm trying to compile Software (389 Server).
I spent a lot of hours on several days (nothing special - i know) and I (think) that i fixed/handled a lot of errors so far. But now i feel, that I'm stuck.
ld tells me it doesn't find libjson-c. But:
- I installed it with pkgin.
- I find it
- I set LD_LIBRARY_PATH to the Path.
But ld stubbornly says that it cant find it. Any suggestions?
`
ld: cannot find -ljson-c
*** Error code 1
Stop.
make[1]: stopped in /usr/src_projects/389_directory_server/389-ds-base-3.0.1
*** Error code 1
Stop.
make: stopped in /usr/src_projects/389_directory_server/389-ds-base-3.0.1
nbsdfc1# echo $LD_LIBRARY_PATH
/usr/pkg/lib
nbsdfc1# find /usr | grep libjson
/usr/pkg/lib/libjson-c.a
/usr/pkg/lib/libjson-c.so
/usr/pkg/lib/libjson-c.so.5
/usr/pkg/lib/libjson-c.so.5.3.0
/usr/pkgsrc/emulators/suse131_32_libjson
/usr/pkgsrc/emulators/suse131_32_libjson/CVS
/usr/pkgsrc/emulators/suse131_32_libjson/CVS/Root
/usr/pkgsrc/emulators/suse131_32_libjson/CVS/Repository
/usr/pkgsrc/emulators/suse131_32_libjson/CVS/Entries
/usr/pkgsrc/emulators/suse131_32_libjson/CVS/Tag
/usr/pkgsrc/emulators/suse131_32_libjson/Makefile
/usr/pkgsrc/emulators/suse131_libjson
/usr/pkgsrc/emulators/suse131_libjson/CVS
/usr/pkgsrc/emulators/suse131_libjson/CVS/Root
/usr/pkgsrc/emulators/suse131_libjson/CVS/Repository
/usr/pkgsrc/emulators/suse131_libjson/CVS/Entries
/usr/pkgsrc/emulators/suse131_libjson/CVS/Tag
/usr/pkgsrc/emulators/suse131_libjson/Makefile
/usr/pkgsrc/emulators/suse131_libjson/DESCR
/usr/pkgsrc/emulators/suse131_libjson/distinfo
`
I looked on the filesystem level:
nbsdfc1# ls -lah libjson*
-rw-r--r-- 1 root wheel 151K Mar 23 10:36 libjson-c.a
lrwxr-xr-x 1 root wheel 14B May 15 22:09 libjson-c.so -> libjson-c.so.5
lrwxr-xr-x 1 root wheel 18B Mar 23 10:36 libjson-c.so.5 -> libjson-c.so.5.3.0
-rwxr-xr-x 1 root wheel 63K Mar 23 10:36 libjson-c.so.5.3.0
In earlier errors symlinks worked.
I made a try with a direct link to libjson-c.so.5.3.0 with the same result. So I switched back to the original pkgin-setup.
If i'm just blind, sorry in advandce!