Try placing the -L/adb/apps/pkg/mysql/3.23.56/lib somewhere near the end
of the command line for the link step.
And why is your mysql placed in that wierd location? You should have used
the RPM that comes pre built by redhat. It would be easier to maintain
your box that way.
On Wed, 25 Jun 2003, Ako Ito wrote:
> thanks for the quick response.. my configure parameter is shown below.
>
> CPPFLAGS="-I/adb/apps/pkg/mysql/3.23.53/include -I/usr/include"
> LDFLAGS="-L/adb/apps/pkg/mysql/3.23.56/lib -L/usr/lib -L/lib"
> ./configure --prefix=/adb/apps/pkg/nagios/1.1 --datadir=/adb/data/nagios/1.1
> /share --sbindir=/adb/data/nagios/1.1/sbin --localstatedir=/adb/log/nagios/1
> .1/var --with-nagios-user=nagios --with-nagios-grp=nagios --with-htmlurl=/ -
> -with-cgiurl=/cgi-bin --with-mysql-lib=/adb/apps/pkg/mysql/4.0.13/lib --with
> -mysql-inc=/adb/apps/pkg/mysql/4.0.13/include --with-mysql-status --with-mys
> ql-comments --with-mysql-extinfo --with-mysql-retention --with-mysql-downtim
> e --with-mysql-xdata --enable-embedded-perl --with-perlcache
>
> but still produces errors... btw i am using redhat 7.3 and nagios 1.1.
>
> thanks,
> allan
>
> ----- Original Message -----
> From: "ian sison (mailing list)" <[EMAIL PROTECTED]>
> To: "Philippine Linux Users Group Mailing List" <[EMAIL PROTECTED]>
> Sent: Wednesday, June 25, 2003 5:04 PM
> Subject: Re: [plug] nagios+mysql
>
>
> >
> > RTFM the build instructions. Your're supposed to put the following in the
> > configure command line:
> >
> > --with-mysql-comments \
> > --with-mysql-downtime \
> > --with-mysql-extinfo \
> > --with-mysql-inc=%{_includedir}/mysql \
> > --with-mysql-lib=%{_libdir} \
> > --with-mysql-retention \
> > --with-mysql-status \
> > --with-mysql-xdata \
> >
> >
> > On Wed, 25 Jun 2003, Ako Ito wrote:
> >
> > > hello guys,
> > > anyone who has successfully integrate nagios with mysql.. i am having
> > > dificulty compiling them... any suggestions and ideas on how i can
> compile
> > > it w/o errors.
> > >
> > > thanks,
> > > allan
> > >
> > >
> gcc -g -O2 -I/adb/apps/pkg/mysql/3.23.53/include -fno-strict-aliasing -I/us
> > >
> r/local/include -I/usr/lib/perl5/5.6.1/i386-linux/CORE -DHAVE_CONFIG_H -DN
> > >
> SCORE -L/adb/apps/pkg/mysql/3.23.56/lib -L/usr/lib -L/lib -L/adb/apps/pkg/my
> > > sql/3.23.53/lib nagios.c checks.o config.o commands.o flapping.o
> logging.o
> > > notifications.o sehandlers.o utils.o sretention.o ../xdata/xrddb.c
> > > ../common/comments.c ../xdata/xcddb.c ../common/objects.c
> > > ../xdata/xodtemplate.c ../common/statusdata.c ../xdata/xsddb.c
> perfdata.o
> > > ../xdata/xpddefault.c ../common/downtime.c
> > > ./xdata/xdddb.c -rdynamic -L/usr/local/lib
> > >
> /usr/lib/perl5/5.6.1/i386-linux/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl
> > > 5/5.6.1/i386-linux/CORE -lperl -lnsl -ldl -lm -lc -lcrypt -lutil -lm -o
> > > nagios
> > > /tmp/ccvx8I8E.o: In function `xrddb_initialize':
> > > /home/allan/Nagios/nagios-1.1/base/../xdata/xrddb.c:215: undefined
> reference
> > > to `mysql_init'
> > > /tmp/ccvx8I8E.o: In function `xrddb_connect':
> > > /home/allan/Nagios/nagios-1.1/base/../xdata/xrddb.c:252: undefined
> reference
> > > to `mysql_real_connect'
> > > /home/allan/Nagios/nagios-1.1/base/../xdata/xrddb.c:254: undefined
> reference
> > > to `mysql_close'
> > > /tmp/ccvx8I8E.o: In function `xrddb_disconnect':
> > > /home/allan/Nagios/nagios-1.1/base/../xdata/xrddb.c:299: undefined
> reference
> > > to `mysql_close'
> > > /tmp/ccvx8I8E.o: In function `xrddb_query':
> > > /home/allan/Nagios/nagios-1.1/base/../xdata/xrddb.c:329: undefined
> reference
> > > to `mysql_query'
> > > /tmp/ccvx8I8E.o: In function `xrddb_read_program_information':
> > > /home/allan/Nagios/nagios-1.1/base/../xdata/xrddb.c:850: undefined
> reference
> > > to `mysql_store_result'
> > > /home/allan/Nagios/nagios-1.1/base/../xdata/xrddb.c:854: undefined
> reference
> > > to `mysql_fetch_row'
> > > /home/allan/Nagios/nagios-1.1/base/../xdata/xrddb.c:867: undefined
> reference
> > > to `mysql_free_result'
> > > /tmp/ccvx8I8E.o: In function `xrddb_read_host_information':
> > > /home/allan/Nagios/nagios-1.1/base/../xdata/xrddb.c:951: undefined
> reference
> > > to `mysql_store_result'
> > > /home/allan/Nagios/nagios-1.1/base/../xdata/xrddb.c:1001: undefined
> > > reference to `mysql_fetch_row'
> > > /home/allan/Nagios/nagios-1.1/base/../xdata/xrddb.c:1004: undefined
> > > reference to `mysql_free_result'
> > > /tmp/ccvx8I8E.o: In function `xrddb_read_service_information':
> > > /home/allan/Nagios/nagios-1.1/base/../xdata/xrddb.c:1129: undefined
> > > reference to `mysql_store_result'
> > > /home/allan/Nagios/nagios-1.1/base/../xdata/xrddb.c:1192: undefined
> > > reference to `mysql_fetch_row'
> > > /home/allan/Nagios/nagios-1.1/base/../xdata/xrddb.c:1195: undefined
> > > reference to `mysql_free_result'
> > > /tmp/cc0bpyMa.o: In function `xcddb_initialize':
> > > /home/allan/Nagios/nagios-1.1/base/../xdata/xcddb.c:234: undefined
> reference
> > > to `mysql_init'
> > > /tmp/cc0bpyMa.o: In function `xcddb_connect':
> > > /home/allan/Nagios/nagios-1.1/base/../xdata/xcddb.c:259: undefined
> reference
> > > to `mysql_real_connect'
> > > /home/allan/Nagios/nagios-1.1/base/../xdata/xcddb.c:261: undefined
> reference
> > > to `mysql_close'
> > > /tmp/cc0bpyMa.o: In function `xcddb_disconnect':
> > > /home/allan/Nagios/nagios-1.1/base/../xdata/xcddb.c:303: undefined
> reference
> > > to `mysql_close'
> > > /tmp/cc0bpyMa.o: In function `xcddb_query':
> > > /home/allan/Nagios/nagios-1.1/base/../xdata/xcddb.c:329: undefined
> reference
> > > to `mysql_query'
> > > /tmp/cc0bpyMa.o: In function `xcddb_validate_host_comments':
> > >
> > > --
> > > Philippine Linux Users' Group (PLUG) Mailing List
> > > [EMAIL PROTECTED] (#PLUG @ irc.free.net.ph)
> > > Official Website: http://plug.linux.org.ph
> > > Searchable Archives: http://marc.free.net.ph
> > > .
> > > To leave, go to http://lists.q-linux.com/mailman/listinfo/plug
> > > .
> > > Are you a Linux newbie? To join the newbie list, go to
> > > http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie
> > >
> > >
> >
> > --
> > Philippine Linux Users' Group (PLUG) Mailing List
> > [EMAIL PROTECTED] (#PLUG @ irc.free.net.ph)
> > Official Website: http://plug.linux.org.ph
> > Searchable Archives: http://marc.free.net.ph
> > .
> > To leave, go to http://lists.q-linux.com/mailman/listinfo/plug
> > .
> > Are you a Linux newbie? To join the newbie list, go to
> > http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie
>
> --
> Philippine Linux Users' Group (PLUG) Mailing List
> [EMAIL PROTECTED] (#PLUG @ irc.free.net.ph)
> Official Website: http://plug.linux.org.ph
> Searchable Archives: http://marc.free.net.ph
> .
> To leave, go to http://lists.q-linux.com/mailman/listinfo/plug
> .
> Are you a Linux newbie? To join the newbie list, go to
> http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie
>
>
--
Philippine Linux Users' Group (PLUG) Mailing List
[EMAIL PROTECTED] (#PLUG @ irc.free.net.ph)
Official Website: http://plug.linux.org.ph
Searchable Archives: http://marc.free.net.ph
.
To leave, go to http://lists.q-linux.com/mailman/listinfo/plug
.
Are you a Linux newbie? To join the newbie list, go to
http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie