Re: error installing 6.0.0 RPMs

Jeff Potter <[email protected]> Sat, 14 Jul 2007 12:34:12 -0400
Newsgroups gmane.mail.ezmlm
Message-ID <[email protected]>
>> For the fun of it, I did a symlink:
>>> ln -s /usr/lib/ezmlm/sub-mysql.so /usr/lib/ezmlm/sub-sql.so
>
> That's not just fun, it's documented in the UPGRADE.idx file  
> (although I
> see I have a slight typo there too).  Preferred would have been:
>
> 	ln -s sub-mysql.so /usr/lib/ezmlm/sub-sql.so

Would it be possible for the rpm to generate that symlink if it  
doesn't exist? That would feel so much... cleaner.  Both pgsql and  
mysql rpms could do this, and if the link exists and points  
elsewhere, could issue a warning say "warning -- sub-sql.so points at  
different sql implementation."



>> which then changed the error message to:
>>> ezmlm-list: fatal: Could not load plugin /usr/lib/ezmlm/sub-
>>> sql.so: /usr/lib/ezmlm/sub-sql.so: undefined symbol: mysql_fetch_row
>>
>> My guess is that it's not finding the mysql libs  (under /usr/lib/
>> mysql/ on CentOS). Suggestions?
>
> That certainly sounds correct.  In that case you will either need to
> rebuild the SRPM on CentOS, or add /usr/lib/mysql into /etc/ld.so.conf

Thanks. I gave this a try, but I'm not familiar enough with those  
bits of unix.

	echo "/usr/lib/mysql" >> /etc/ld.so.conf
	ldconfig
	ldconfig -v | grep mysql
	ldconfig: Path `/usr/lib/mysql' given more than once
	/usr/lib/mysql:
	        libmysqlclient.so.14 -> libmysqlclient.so.14.0.0
	        libmysqlclient_r.so.14 -> libmysqlclient_r.so.14.0.0

Removing the newly added line from ld.so.conf and re-running ldconfig  
still yields the two .so listings, either way, I still see the same  
problem: Running
	echo "test" | mail somelist-subscribe- 
[email protected]
results in an error (under /var/log/maillog):
	ezmlm-get: fatal: Could not load plugin /usr/lib/ezmlm/sub-sql.so: / 
usr/lib/ezmlm/sub-sql.so: undefined symbol: mysql_fetch_row


Here's what's in /usr/lib/mysql (*.so, *.so.14 are symlinks to *.so. 
14.0.0)

	libdbug.a    libmyisammrg.a       libmysqlclient_r.so.14       
libmysqlclient.so.14.0.0  libvio.a
	libheap.a    libmysqlclient.a     libmysqlclient_r.so.14.0.0   
libmystrings.a            mysqlbug
	libmerge.a   libmysqlclient_r.a   libmysqlclient.so            
libmysys.a                mysql_config
	libmyisam.a  libmysqlclient_r.so  libmysqlclient.so.14         
libnisam.a

Is this a case of needing another symlink?


Thanks, of course, for the help!

best,
Jeff