Subject: help with shared objects and crontab
To: None <netbsd-help@netbsd.org>
From: Heron Gallegos <gallegos@csxxi.sepc.edu.mx>
List: netbsd-help
Date: 01/11/2001 13:25:29
Hello:

I dont know what am i doing wrong:

My program uses the API of mysql and when I compile and run it, it works fine.

cc -c -I/usr/pkg/include main.c -o main.o
cc main.o -ggdb -o uvp -L/usr/pkg/lib/mysql -lmysqlclient -lm

But when I add it to the crontab file, it doesnt run
and a mail message is generated:

My entry in /var/cron/tabs/root:
*/15	*	*	*	* /usr/local/bin/uvp

My /etc/ld.so.conf
libm.so.0	machdep.fpu_present	1:libm387.so.0,libm.so.0
/usr/pkg/lib

The mail message:
From daemon Thu Jan 11 12:20:00 2001
	Thu, 11 Jan 2001 12:20:00 -0600 (CST)
Date: Thu, 11 Jan 2001 12:20:00 -0600 (CST)
Message-Id: <200101111820.f0BIK0L00207@galileo.csxxi.sepc.edu.mx>
From: root (Cron Daemon)
To: root
Subject: Cron <root@galileo> /usr/local/bin/uvp

Shared object "libmysqlclient.so.6" not found

My box is i386, NetBSD-1.5, mysql-client-3.22.32

What am I doing wrong?

Thanks in advance

Heron Gallegos
Saltillo, Coahuila, Mexico