Error while compiling with MySQL database support
Freddy Frouin
freddy.frouin at fluxus.net
Thu Oct 10 14:48:57 CEST 2002
I do not see in the detail you've submit if it is a problem of
compilation or at the binary dynamic linking stage ??
yet there is 2 possibility:
- gcc could not find mysql include
- ld could not find mysql lib
yet... I see that in the submited output you provide to us:
collect2: ld returned 1 exit status
so, it is probably the second case. Yet maybe you've the both
problems... ???
please post the last line with any error during compilation.
what OS are you using to compile this ?
On Thu, 10 Oct 2002 13:40:13 +0200
Nicole Hähnel <Nicole.Haehnel at epost.de> wrote:
> Hi,
>
> I want to compile Nagios with MySQL database support,
> but I get the following error:
>
> /tmp/cc1ybAd3.o: In function `xdddb_read_service_downtime':
> /usr/src/nagios-1.0b6/base/../xdata/xdddb.c:1238: undefined reference to `mysql_store_result'
> /usr/src/nagios-1.0b6/base/../xdata/xdddb.c:1238: undefined reference to `mysql_fetch_row'
> /usr/src/nagios-1.0b6/base/../xdata/xdddb.c:1247: undefined reference to `mysql_free_result'
> /usr/src/nagios-1.0b6/base/../xdata/xdddb.c:1280: undefined reference to `mysql_free_result'
> collect2: ld returned 1 exit status
> make[1]: *** [nagios] Fehler 1
> make[1]: Verlassen des Verzeichnisses Verzeichnis »/usr/src/nagios-1.0b6/base«
> make: *** [all] Fehler 2
>
>
> Can anybody help me?
>
>
> Thanks!
>
> Nicole
>
--
Freddy Frouin
Responsable Supervision
Fluxus - British Telecom
30, rue du Château des Rentiers
75013 Paris
Tél: +33 (0)1 44 97 70 00
Fax: +33 (0)1 44 97 70 07
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
More information about the Users
mailing list