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

Reply via email to