Martin, I removed -ldl and it compiled and linked with libdbi. I am almost on my way to test the actual functionality of this.
Maybe someone should let the person maintaining the FreeBSD port know of the "LIBS="$LIBS -ldbi" fix. Thank you very much for your assistance. Regards, Johan On Tue, Jul 27, 2010 at 11:38 AM, Martin Sperl <[email protected]> wrote: > probably just ommit the "-ldl" option would help... > > Patch to configure (as of 1.4.4) looks like this: > --- configure.orig 2010-07-27 09:31:32.000000000 +0000 > +++ configure 2010-07-27 09:33:15.000000000 +0000 > @@ -22419,7 +22419,7 @@ > else > > XXX=$LIBS > - LIBS="$LIBS -ldbi -ldl" > + LIBS="$LIBS -ldbi" > { $as_echo "$as_me:$LINENO: checking for libdbi" >&5 > $as_echo_n "checking for libdbi... " >&6; } > cat >conftest.$ac_ext <<_ACEOF > > Please try this and see if it is configuring now - there may be other issues > down the road... > > Ciao, > Martin > > > > On 27.07.2010 10:55, Johan Simpson wrote: >> >> Martin, >> >> I just checked my dbi version: >> >> [r...@dms ~]# pkg_info | grep dbi >> libdbi-0.8.3 Database Independent Abstraction Layer for C >> >> >> And tested your code: >> >> [r...@dms ~]# gcc test.c -ldbi -ldl >> test.c: In function 'main': >> test.c:2: warning: return type of 'main' is not 'int' >> /usr/bin/ld: cannot find -ldl >> >> I am using the latest FreeBSD portsnap, so i think the freebsd port >> might need a patch or two. >> >> I am going to try and resolve this error now, meanwhile if you know >> the solution let me know. >> >> >> Thank you very much for your help. >> >> Looking forward to implement RRDTool ontop of our MySQL databases. >> >> Regards, >> Johan Simpson >> >> >> >> >> On Mon, Jul 26, 2010 at 4:31 PM, Martin Sperl<[email protected]> >> wrote: >> >>> >>> What version is libDBI? >>> It should be 0.8.X? >>> >>> Possibly you have an earlier version, which is not supported... >>> >>> You can also try to compile this code: >>> #include<dbi/dbi.h> >>> void main() { dbi_initialize(NULL);} >>> with "gcc test.c -ldbi -ldl" >>> If it does not compile, then investigate why. >>> >>> This is the code that configure is testing the availability of libdbi >>> with. >>> >>> Ciao, >>> Martin >>> >>> >>> On 26.07.2010, at 16:16, Johan Simpson wrote: >>> >>> >>>> >>>> Just copied the dbi headers into /usr/include and the actual lib dbi >>>> binaries into /usr/lib also ( they were all in /usr/local/lib and >>>> /usr/local/include) >>>> >>>> ./configure doesnt seem to find lib dbi. >>>> >>>> any more advice would be appreciated, as i would really like to >>>> implement this solution. >>>> >>>> >>>> Regards, >>>> Johan >>>> >>>> On Mon, Jul 26, 2010 at 3:54 PM, Johan Simpson<[email protected]> >>>> wrote: >>>> >>>>> >>>>> I am using FreeBSD 8.0, yes its saying "checking for libdbi... no" >>>>> >>>>> I did install libdbi from the ports... >>>>> >>>>> Any advice to get lib dbi working? >>>>> >>>>> Regards, >>>>> Johan >>>>> >>>>> On Mon, Jul 26, 2010 at 3:07 PM, Martin Sperl<[email protected]> >>>>> wrote: >>>>> >>>>>> >>>>>> Two questions: >>>>>> 1) what does ./configure 2>/dev/null | grep dbi print? I assume >>>>>> "checking for libdbi... no" >>>>>> 2) where do the libdbi include files sit - Especially: dbi/dbi.h? >>>>>> 3) is the dbi directory in the default include path? >>>>>> >>>>>> One Idea: >>>>>> 1) If you have got a libdbi installed via rpm or deb, then maybe you >>>>>> have not installed the libdbi-devel packet, that includes the >>>>>> >>>>>> Thanks, >>>>>> Martin >>>>>> >>>>>> >>>>>> >>>>>> On 26.07.2010, at 11:16, Johan Simpson wrote: >>>>>> >>>>>> >>>>>>> >>>>>>> Hi all, i have tried to compile the latest rrdtool with libdbi >>>>>>> support, but no luck at all. >>>>>>> >>>>>>> looking at librrdtoo.so with ldd just doesnt show libdbi, which is >>>>>>> installed on my system.. >>>>>>> >>>>>>> Is there a guide how to force a compile with libdbi? >>>>>>> >>>>>>> Regards, >>>>>>> Johan Simpson >>>>>>> >>>>>>> _______________________________________________ >>>>>>> rrd-users mailing list >>>>>>> [email protected] >>>>>>> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users >>>>>>> >>>>>> >>>>>> >>>>> >>>>> >>> >>> > > _______________________________________________ rrd-users mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
