You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Markus Eskola <li...@eskola.nu> on 2007/01/07 13:07:02 UTC

Problem uppgrading on Solaris 8

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
Hi!

I am running SA 3.1.1 on Solaris 8 (SPARC) today and have tried
upgrading to later versions.

Today I had another go trying to upgrade to SA 3.1.7

So, I downloaded the source, ran make, make test and make install and
restarted qmail (incl SA)

But My logs starts pouring this out:
@4000000045a0d27e0836c2a4 [24611] error: Can't load
'/usr/local/lib/perl5/site_perl/5.8.6/sun4-solaris/auto/DBD/mysql/mysql.so'
for module DBD::mysql: ld.so.1: spamd: fatal: libgcc_s.so.1: open
failed: No such file or directory at
/usr/local/lib/perl5/5.8.6/sun4-solaris/DynaLoader.pm line 230.
@4000000045a0d27e0839666c [24611] error:  at (eval 201) line 3
@4000000045a0d27e084247dc [24611] error: Can't load
'/usr/local/lib/perl5/site_perl/5.8.6/sun4-solaris/auto/DBD/mysql/mysql.so'
for module DBD::mysql: ld.so.1: spamd: fatal: libgcc_s.so.1: open
failed: No such file or directory at
/usr/local/lib/perl5/5.8.6/sun4-solaris/DynaLoader.pm line 230.
@4000000045a0d27e084418b4 [24611] error:  at (eval 201) line 3
@4000000045a0d27e0844ff2c [24611] error: Compilation failed in require
at (eval 201) line 3.
@4000000045a0d27e0876d4fc [24611] error: install_driver(mysql) failed:
Can't load
'/usr/local/lib/perl5/site_perl/5.8.6/sun4-solaris/auto/DBD/mysql/mysql.so'
for module DBD::mysql: ld.so.1: spamd: fatal: libgcc_s.so.1: open
failed: No such file or directory at
/usr/local/lib/perl5/5.8.6/sun4-solaris/DynaLoader.pm line 230.

My DBD::mysql is up to date and working (DBD-mysql-4.00), make test
for SA doesn't complain.

Can anyone help me in the right direction for troubleshooting this? As
it works fine under 3.1.1 but not with any other version after
that..... always with the same error.
Can it have anything to do with PATHs, or LD_PATHs for the spamd user?


Kind regards
Markus Eskola




-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
iD8DBQFFoOJla7TLhj30WOQRAsGiAJ9W52ptSjPaYksU6kB9o+8vWI8yTgCcCbD5
Cck8JiK0/G0F0IzCfzZDa/k=
=qkKh
-----END PGP SIGNATURE-----


Re: Problem uppgrading on Solaris 8

Posted by René Berber <r....@computer.org>.
Markus Eskola wrote:
[snip]
> Ok, checked that too, and it also looks ok. Gcc can find
> libgcc_s.so.1, but if it didn't, wouldn't I get an error during
> compilation?

No, libgcc is different than libgcc_s.

> I checked mysql.so aswell using ldd and all the depending libraries
> are referenced to the correct place.

Now that is almost strange... it probably means that you are running the new
spamassassin under a different user, and that user has LDPATH (or LD_RUN_PATH)
set to something different than the crle path (or the other way around depending
on what is defined or not).  Probably what you suspected from the start, spamd's
user does have a path set or not set, try `su - spamd` or whatever the name of
the user and repeat the ldd test.
-- 
René Berber


Re: Problem uppgrading on Solaris 8

Posted by Markus Eskola <li...@eskola.nu>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
René Berber skrev:
>>
>>
>>> Is there somehow I can check that all the other files are in place;
>>> libgcc_s.so.1, ld.so.1 and mysql.so (well I know they are there, I
>>> checked, but whether the linking was done to the right files etc)?
>> Yes, `perl -V` will show what compiler is used, `ldd ...` on the shared
>> libraries will show their dependencies (and missing deps. too).
>>
>> The interesting library is
>>
/usr/local/lib/perl5/site_perl/5.8.6/sun4-solaris/auto/DBD/mysql/mysql.so;
it
>> does depend on libgcc_s.so.1, is it shown as missing? what does `gcc gcc
>> -print-file-name=libgcc_s.so.1` show? (if it's only the name with no
path, then
>> gcc didn't find it).
>
> Correction `gcc -print-file-name=libgcc_s.so.1`
Ok, checked that too, and it also looks ok. Gcc can find
libgcc_s.so.1, but if it didn't, wouldn't I get an error during
compilation?

I checked mysql.so aswell using ldd and all the depending libraries
are referenced to the correct place.

Wonder how I got 3.1.1 working in the first place... ;)

/markus
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
iD8DBQFFo7uKa7TLhj30WOQRAmKJAJ9D9wp8dMC1J0D4CLpwUuAYQgtVlQCfb+MN
hb6LkdcZL86eSYozoxg5vu8=
=1Wv3
-----END PGP SIGNATURE-----


Re: Problem uppgrading on Solaris 8

Posted by René Berber <r....@computer.org>.
René Berber wrote:
> Markus Eskola wrote:
> [snip]
>> dbg: diag: perl platform: 5.008006 solaris
>>
> [snip]
>> cpan> m DBD::mysql
> ...
>>     INST_VERSION 4.00
> 
> Both look alright.
> 
>> Is there somehow I can check that all the other files are in place;
>> libgcc_s.so.1, ld.so.1 and mysql.so (well I know they are there, I
>> checked, but whether the linking was done to the right files etc)?
> 
> Yes, `perl -V` will show what compiler is used, `ldd ...` on the shared
> libraries will show their dependencies (and missing deps. too).
> 
> The interesting library is
> /usr/local/lib/perl5/site_perl/5.8.6/sun4-solaris/auto/DBD/mysql/mysql.so; it
> does depend on libgcc_s.so.1, is it shown as missing? what does `gcc gcc
> -print-file-name=libgcc_s.so.1` show? (if it's only the name with no path, then
> gcc didn't find it).

Correction `gcc -print-file-name=libgcc_s.so.1`
-- 
René Berber


Re: Problem uppgrading on Solaris 8

Posted by René Berber <r....@computer.org>.
Markus Eskola wrote:
[snip]
> dbg: diag: perl platform: 5.008006 solaris
> 
[snip]
> cpan> m DBD::mysql
...
>     INST_VERSION 4.00

Both look alright.

> Is there somehow I can check that all the other files are in place;
> libgcc_s.so.1, ld.so.1 and mysql.so (well I know they are there, I
> checked, but whether the linking was done to the right files etc)?

Yes, `perl -V` will show what compiler is used, `ldd ...` on the shared
libraries will show their dependencies (and missing deps. too).

The interesting library is
/usr/local/lib/perl5/site_perl/5.8.6/sun4-solaris/auto/DBD/mysql/mysql.so; it
does depend on libgcc_s.so.1, is it shown as missing? what does `gcc gcc
-print-file-name=libgcc_s.so.1` show? (if it's only the name with no path, then
gcc didn't find it).
-- 
René Berber


Re: Problem uppgrading on Solaris 8

Posted by Markus Eskola <li...@eskola.nu>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
René Berber skrev:
>
>
> OK, try `spamassassin --lint -D` and look for a line similar to
> this one (near the top, around line 30 in my test):
>
> [2324] dbg: diag: perl platform: 5.008007
>
Ok, done that, and as I suspected:
dbg: diag: perl platform: 5.008006 solaris

> That will show the perl version SA is using, if it is 5.8.6 then
> just double check that the module is installed (the last line of
> the output below):
>
> $ cpan ... cpan> m DBD::mysql ...
And cpan tells me I am allright... :)
  Database was generated on Sat, 06 Jan 2007 22:24:18 GMT
Module id = DBD::mysql
    DESCRIPTION  MySQL driver for DBI
    CPAN_USERID  CAPTTOFU (Patrick Galbraith <pa...@patg.net>)
    CPAN_VERSION 4.00
    CPAN_FILE    C/CA/CAPTTOFU/DBD-mysql-4.00.tar.gz
    UPLOAD_DATE  2006-12-24
    DSLIP_STATUS RmcO? (released,mailing-list,C,object-oriented,)
    MANPAGE      DBD::mysql - MySQL driver for the Perl5 Database
Interface (DBI)
    INST_FILE
/usr/local/lib/perl5/site_perl/5.8.6/sun4-solaris/DBD/mysql.pm
    INST_VERSION 4.00

But sadly still no cigar...

Aah, well I'll have to figure something out. But not tonight, I'll
have to postpone the upgrade for another quite evening.

Is there somehow I can check that all the other files are in place;
libgcc_s.so.1, ld.so.1 and mysql.so (well I know they are there, I
checked, but whether the linking was done to the right files etc)?

/markus
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
iD8DBQFFoWALa7TLhj30WOQRAuBLAJwNYYUFtdUqggFO6rFJU0zEXTtk9ACfR2c0
ym/Rg8CB6ppAIZmW8619yRY=
=Dz4V
-----END PGP SIGNATURE-----


Re: Problem uppgrading on Solaris 8

Posted by René Berber <r....@computer.org>.
Markus Eskola wrote:

> René Berber skrev:
>> You are probably using two different perl versions, in one you have
> DBD::mysql,
>> in the other (perl 5.8.6) you don't.
> 
> Yes, there are two versions of perl installed but only 5.8.6 is used
> (atleast in a SA perspective and CPAN/DBD) since I only use
> /usr/locla/bin/perl (which is the 5.8.6 binary).

OK, try `spamassassin --lint -D` and look for a line similar to this one (near
the top, around line 30 in my test):

[2324] dbg: diag: perl platform: 5.008007

That will show the perl version SA is using, if it is 5.8.6 then just double
check that the module is installed (the last line of the output below):

$ cpan
...
cpan> m DBD::mysql
...
-- 
René Berber


Re: Problem uppgrading on Solaris 8

Posted by Markus Eskola <li...@eskola.nu>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
René Berber skrev:
> You are probably using two different perl versions, in one you have
DBD::mysql,
> in the other (perl 5.8.6) you don't.
>
Yes, there are two versions of perl installed but only 5.8.6 is used
(atleast in a SA perspective and CPAN/DBD) since I only use
/usr/locla/bin/perl (which is the 5.8.6 binary).

>> Can anyone help me in the right direction for troubleshooting this? As
>> it works fine under 3.1.1 but not with any other version after
>> that..... always with the same error.
>
> And the problem started when you installed perl 5.8.6 perhaps?
>
Perl hasn't been touched after the first SA install, 3.1.1 that is,
except for the odd CPAN module added.

>> Can it have anything to do with PATHs, or LD_PATHs for the spamd user?
>
> Yes, if perl is found using the PATH the one that comes first wins.

And it's /usr/local/bin/perl in all cases.

I am getting somewhat frustrated since I feel that there has happened
a fair bit since 3.1.1 to 3.1.7 in SA, and would like to upgrade... :-P
I am probably overlooking something stupid...

/markus

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
iD4DBQFFoVLda7TLhj30WOQRAiIMAJ4m41x4AbFKyU4mQrjV3i0RL1vowACY+QIg
z9V2nEoAQMwPhsDSepD00A==
=xTVQ
-----END PGP SIGNATURE-----


Re: Problem uppgrading on Solaris 8

Posted by René Berber <r....@computer.org>.
Markus Eskola wrote:

> I am running SA 3.1.1 on Solaris 8 (SPARC) today and have tried
> upgrading to later versions.
> 
> Today I had another go trying to upgrade to SA 3.1.7
> 
> So, I downloaded the source, ran make, make test and make install and
> restarted qmail (incl SA)
> 
> But My logs starts pouring this out:
> @4000000045a0d27e0836c2a4 [24611] error: Can't load
> '/usr/local/lib/perl5/site_perl/5.8.6/sun4-solaris/auto/DBD/mysql/mysql.so'
--------------------------------------------------------------------^^^^^^^^

> for module DBD::mysql: ld.so.1: spamd: fatal: libgcc_s.so.1: open
> failed: No such file or directory at
[snip]
> My DBD::mysql is up to date and working (DBD-mysql-4.00), make test
> for SA doesn't complain.

You are probably using two different perl versions, in one you have DBD::mysql,
in the other (perl 5.8.6) you don't.

> Can anyone help me in the right direction for troubleshooting this? As
> it works fine under 3.1.1 but not with any other version after
> that..... always with the same error.

And the problem started when you installed perl 5.8.6 perhaps?

> Can it have anything to do with PATHs, or LD_PATHs for the spamd user?

Yes, if perl is found using the PATH the one that comes first wins.
-- 
René Berber