BSD Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsBSD Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!
  #1  
Old August 15th, 2003, 08:30 PM
redmyrlin's Avatar
redmyrlin redmyrlin is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Scotland
Posts: 3 redmyrlin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 25 sec
Reputation Power: 0
Upgrade problems and Shared Libraries

I'm running the exim-mysql package on FreeBSD 4.7 and using the deprecated exiscan patch for virus scanning.

I am now trying to upgrade my exim installation from exim-mysql-4.20_1 to the latest exim-mysql-4.21_1, so as to use the new exiscan-acl patch and make use of the new exim 4.21 features.

I am using the command "portupgrade -v exim-mysql" to perform the upgrade but get the following error:

======
/usr/local/lib/mysql/libmysqlclient.so: undefined reference to `uncompress'
/usr/local/lib/mysql/libmysqlclient.so: undefined reference to `compress'
*** Error code 1

Stop in /usr/ports/mail/exim-mysql/work/exim-4.21/build-FreeBSD-i386.
*** Error code 1

Stop in /usr/ports/mail/exim-mysql/work/exim-4.21.
*** Error code 1

Stop in /usr/ports/mail/exim-mysql.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade15850.0 mak
e
** Fix the problem and try again.
======

Following further research it seems that libmysqlclient needs the functions provided by -lz but I don't know how to
get that flag into the make file.

So I tried reinstalling mysql323-client and noticed the following warning:

*** Warning: This library needs some functionality provided by -lz.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have.

*** Warning: This library needs some functionality provided by -lcrypt.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have.

*** Warning: This library needs some functionality provided by -lm.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have.
*** The inter-library dependencies that have been dropped here will be
*** automatically added whenever a program is linked with this library
*** or is declared to -dlopen it.

So if I had the shared versions of the libraries would that overcome my exim-mysql upgrade problems?

If so how or where do I get the shared library versions?

TIA
Graeme

Last edited by redmyrlin : August 15th, 2003 at 08:37 PM.

Reply With Quote
  #2  
Old August 16th, 2003, 05:37 PM
munkfish's Avatar
munkfish munkfish is offline
funky munky
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2001
Location: UK
Posts: 1,446 munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 18 h 33 m
Reputation Power: 10
You posted this on freebsd-questions didn't you?

I started to research this problem as I was upgrading a server with exim-mysql anyway - however I didn't have any problems with the upgrade. Have you tried removing the mysql-client port and reinstalling it?

Reply With Quote
  #3  
Old August 16th, 2003, 06:48 PM
redmyrlin's Avatar
redmyrlin redmyrlin is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Scotland
Posts: 3 redmyrlin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 25 sec
Reputation Power: 0
Quote:
Originally posted by munkfish
You posted this on freebsd-questions didn't you?

I started to research this problem as I was upgrading a server with exim-mysql anyway - however I didn't have any problems with the upgrade. Have you tried removing the mysql-client port and reinstalling it?
Thanks for your reply. Yes I have looked for help elsewhere, including freebsd-questions. I'm getting near the end of my tether with this one and not sure where to go next. I'm very tempted just to give up on FreeBSD and try Debian.

I have tried reinstalling libtool from the ports as I believe libtool has something to do with shared libraries. It installs OK but I get this warning during the install process
======
*** Warning: the command libtool uses to detect shared libraries,
*** /usr/bin/file, produces output that libtool cannot recognize.
*** The result is that libtool may fail to recognize shared libraries
*** as such. This will affect the creation of libtool libraries that
*** depend on shared libraries, but programs linked with such libtool
*** libraries will work regardless of this problem. Nevertheless, you
*** may want to report the problem to your system manager and/or to
*** URL
=======
Now this may or may not be the root of my problem, but if it is what is the solution? I'm completely at a loss!

You say you had no problems with your upgrade. What FreeBSD version are you running and what libtool version is installed?

Reply With Quote
  #4  
Old August 16th, 2003, 09:13 PM
munkfish's Avatar
munkfish munkfish is offline
funky munky
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2001
Location: UK
Posts: 1,446 munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 18 h 33 m
Reputation Power: 10
>>What FreeBSD version are you running and what libtool version is installed?
I'm running 4.8-STABLE but libtool isn't required for mysql-client or exim and there are no other dependencies those ports rely on, so I don't know why you have these error messages.

Concentrate on installing mysql-client cleanly first, remove it completely and clean the working directory:

cd /usr/ports/databases/mysql323-client
make deinstall clean

then start over:
make install

Once you know mysql-client is installed cleanly Exim with mysql support should be trivial.

Last edited by munkfish : August 16th, 2003 at 09:18 PM.

Reply With Quote
  #5  
Old August 18th, 2003, 03:13 AM
redmyrlin's Avatar
redmyrlin redmyrlin is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Scotland
Posts: 3 redmyrlin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 25 sec
Reputation Power: 0
Thanks munkFish, that seems to have worked like a dream!
The only difference I can see from what I was doing is in the *clean* process before installing. Now all I need to do is to work out how to use exiscan-acl in place of exiscan!
Thanks again for your help - really appreciated.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsBSD Help > Upfgrade problems ans Shared Libraries


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway