Re: Library Problem

2012-11-29 Thread Gary Palmer
On Wed, Nov 28, 2012 at 10:46:51PM -0800, Doug Hardie wrote:
 
 On 28 November 2012, at 20:01, Devin Teske wrote:
 
  
  On Nov 28, 2012, at 7:36 PM, Doug Hardie wrote:
  
  I have installed 4 systems from the same FreeBSD 9.1-RC3 disk.  Three of 
  them worked just fine.  The last one is causing a problem.  It will not 
  look in /usr/local/lib/ for shared libraries.  I did the standard install, 
  moved in some source, compiled it and tried to run it.  The library is 
  there.  On the working systems ktrace shows:
  
  2259 introCALL  access(0x28066000,0F_OK)
  2259 introNAMI  /lib/libsermons.so
  2259 introRET   access -1 errno 2 No such file or directory
  2259 introCALL  access(0x28066000,0F_OK)
  2259 introNAMI  /usr/lib/libsermons.so
  2259 introRET   access -1 errno 2 No such file or directory
  2259 introCALL  access(0x28066000,0F_OK)
  2259 introNAMI  /usr/lib/compat/libsermons.so
  2259 introRET   access -1 errno 2 No such file or directory
  2259 introCALL  access(0x28066000,0F_OK)
  2259 introNAMI  /usr/local/lib/libsermons.so
  2259 introRET   access 0
  
  
  On the failing system ktrace shows:
  
  6746 introNAMI  /lib/libsermons.so
  6746 introRET   access -1 errno 2 No such file or directory
  6746 introCALL  access(0x28066000,0F_OK)
  6746 introNAMI  /usr/lib/libsermons.so
  6746 introRET   access -1 errno 2 No such file or directory
  6746 introCALL  access(0x28066000,0F_OK)
  6746 introNAMI  /usr/lib/compat/libsermons.so
  6746 introRET   access -1 errno 2 No such file or directory
  6746 introCALL  access(0x28066000,0F_OK)
  6746 introNAMI  /lib/libsermons.so
  6746 introRET   access -1 errno 2 No such file or directory
  6746 introCALL  access(0x28066000,0F_OK)
  6746 introNAMI  /usr/lib/libsermons.so
  6746 introRET   access -1 errno 2 No such file or directory
  6746 introCALL  write(0x2,0x28060080,0x3c)
  6746 introGIO   fd 2 wrote 60 bytes
   Shared object libsermons.so not found, required by intro
  
  
  It never attempts to check /usr/local/lib.  I can't find any configuration 
  item that affects that.  How can this be fixed?
  
  
  What's the value of ldconfig_paths in rc.conf(5)?
  
  That includes:
  /etc/rc.conf
  /etc/rc.conf.local (if it exists)
  /etc/defaults/rc.conf
  
  Here on my 9.0-R system it has the following in /etc/defaults/rc.conf:
  /usr/lib/compat /usr/local/lib /usr/local/lib/compat/pkg
 
 
 /etc/defaults/rc.conf has:
 
 ldconfig_paths=/usr/lib/compat /usr/local/lib /usr/local/lib/compat/pkg
 
 
 /etc/rc.conf has nothing for ldconfig_paths.

Check that /usr/local/lib doesn't have group or other write perms.
ldconfig ignores directories that are group/world writable.

To fix:

chmod go-w /usr/local/lib
sh /etc/rc.d/ldconfig start

Gary
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: Library Problem

2012-11-29 Thread Doug Hardie

On 29 November 2012, at 06:01, Gary Palmer wrote:

 On Wed, Nov 28, 2012 at 10:46:51PM -0800, Doug Hardie wrote:
 
 On 28 November 2012, at 20:01, Devin Teske wrote:
 
 
 On Nov 28, 2012, at 7:36 PM, Doug Hardie wrote:
 
 I have installed 4 systems from the same FreeBSD 9.1-RC3 disk.  Three of 
 them worked just fine.  The last one is causing a problem.  It will not 
 look in /usr/local/lib/ for shared libraries.  I did the standard install, 
 moved in some source, compiled it and tried to run it.  The library is 
 there.  On the working systems ktrace shows:
 
 2259 introCALL  access(0x28066000,0F_OK)
 2259 introNAMI  /lib/libsermons.so
 2259 introRET   access -1 errno 2 No such file or directory
 2259 introCALL  access(0x28066000,0F_OK)
 2259 introNAMI  /usr/lib/libsermons.so
 2259 introRET   access -1 errno 2 No such file or directory
 2259 introCALL  access(0x28066000,0F_OK)
 2259 introNAMI  /usr/lib/compat/libsermons.so
 2259 introRET   access -1 errno 2 No such file or directory
 2259 introCALL  access(0x28066000,0F_OK)
 2259 introNAMI  /usr/local/lib/libsermons.so
 2259 introRET   access 0
 
 
 On the failing system ktrace shows:
 
 6746 introNAMI  /lib/libsermons.so
 6746 introRET   access -1 errno 2 No such file or directory
 6746 introCALL  access(0x28066000,0F_OK)
 6746 introNAMI  /usr/lib/libsermons.so
 6746 introRET   access -1 errno 2 No such file or directory
 6746 introCALL  access(0x28066000,0F_OK)
 6746 introNAMI  /usr/lib/compat/libsermons.so
 6746 introRET   access -1 errno 2 No such file or directory
 6746 introCALL  access(0x28066000,0F_OK)
 6746 introNAMI  /lib/libsermons.so
 6746 introRET   access -1 errno 2 No such file or directory
 6746 introCALL  access(0x28066000,0F_OK)
 6746 introNAMI  /usr/lib/libsermons.so
 6746 introRET   access -1 errno 2 No such file or directory
 6746 introCALL  write(0x2,0x28060080,0x3c)
 6746 introGIO   fd 2 wrote 60 bytes
 Shared object libsermons.so not found, required by intro
 
 
 It never attempts to check /usr/local/lib.  I can't find any configuration 
 item that affects that.  How can this be fixed?
 
 
 What's the value of ldconfig_paths in rc.conf(5)?
 
 That includes:
 /etc/rc.conf
 /etc/rc.conf.local (if it exists)
 /etc/defaults/rc.conf
 
 Here on my 9.0-R system it has the following in /etc/defaults/rc.conf:
 /usr/lib/compat /usr/local/lib /usr/local/lib/compat/pkg
 
 
 /etc/defaults/rc.conf has:
 
 ldconfig_paths=/usr/lib/compat /usr/local/lib /usr/local/lib/compat/pkg
 
 
 /etc/rc.conf has nothing for ldconfig_paths.
 
 Check that /usr/local/lib doesn't have group or other write perms.
 ldconfig ignores directories that are group/world writable.
 
 To fix:
 
 chmod go-w /usr/local/lib
 sh /etc/rc.d/ldconfig start

sermons# ll -d /usr/local/lib
drwxr-xr-x  4 root  wheel  512 Nov 28 19:07 /usr/local/lib


I think I found the cause of the problem.  A reboot corrected the issue.  
Apparently when ldconfig was run /usr/local/lib didn't exist.  Apparently it 
doesn't check for that except for in ldconfig.  I was not aware of ldconfig 
before.  That explains why the reboot worked.  Thanks to all who provided 
information.

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: Library Problem

2012-11-29 Thread Ian Lepore
On Thu, 2012-11-29 at 13:33 -0800, Doug Hardie wrote:
 On 29 November 2012, at 06:01, Gary Palmer wrote:
 
  On Wed, Nov 28, 2012 at 10:46:51PM -0800, Doug Hardie wrote:
  
  On 28 November 2012, at 20:01, Devin Teske wrote:
  
  
  On Nov 28, 2012, at 7:36 PM, Doug Hardie wrote:
  
  I have installed 4 systems from the same FreeBSD 9.1-RC3 disk.  Three of 
  them worked just fine.  The last one is causing a problem.  It will not 
  look in /usr/local/lib/ for shared libraries.  I did the standard 
  install, moved in some source, compiled it and tried to run it.  The 
  library is there.  On the working systems ktrace shows:
  
  2259 introCALL  access(0x28066000,0F_OK)
  2259 introNAMI  /lib/libsermons.so
  2259 introRET   access -1 errno 2 No such file or directory
  2259 introCALL  access(0x28066000,0F_OK)
  2259 introNAMI  /usr/lib/libsermons.so
  2259 introRET   access -1 errno 2 No such file or directory
  2259 introCALL  access(0x28066000,0F_OK)
  2259 introNAMI  /usr/lib/compat/libsermons.so
  2259 introRET   access -1 errno 2 No such file or directory
  2259 introCALL  access(0x28066000,0F_OK)
  2259 introNAMI  /usr/local/lib/libsermons.so
  2259 introRET   access 0
  
  
  On the failing system ktrace shows:
  
  6746 introNAMI  /lib/libsermons.so
  6746 introRET   access -1 errno 2 No such file or directory
  6746 introCALL  access(0x28066000,0F_OK)
  6746 introNAMI  /usr/lib/libsermons.so
  6746 introRET   access -1 errno 2 No such file or directory
  6746 introCALL  access(0x28066000,0F_OK)
  6746 introNAMI  /usr/lib/compat/libsermons.so
  6746 introRET   access -1 errno 2 No such file or directory
  6746 introCALL  access(0x28066000,0F_OK)
  6746 introNAMI  /lib/libsermons.so
  6746 introRET   access -1 errno 2 No such file or directory
  6746 introCALL  access(0x28066000,0F_OK)
  6746 introNAMI  /usr/lib/libsermons.so
  6746 introRET   access -1 errno 2 No such file or directory
  6746 introCALL  write(0x2,0x28060080,0x3c)
  6746 introGIO   fd 2 wrote 60 bytes
  Shared object libsermons.so not found, required by intro
  
  
  It never attempts to check /usr/local/lib.  I can't find any 
  configuration item that affects that.  How can this be fixed?
  
  
  What's the value of ldconfig_paths in rc.conf(5)?
  
  That includes:
  /etc/rc.conf
  /etc/rc.conf.local (if it exists)
  /etc/defaults/rc.conf
  
  Here on my 9.0-R system it has the following in /etc/defaults/rc.conf:
  /usr/lib/compat /usr/local/lib /usr/local/lib/compat/pkg
  
  
  /etc/defaults/rc.conf has:
  
  ldconfig_paths=/usr/lib/compat /usr/local/lib /usr/local/lib/compat/pkg
  
  
  /etc/rc.conf has nothing for ldconfig_paths.
  
  Check that /usr/local/lib doesn't have group or other write perms.
  ldconfig ignores directories that are group/world writable.
  
  To fix:
  
  chmod go-w /usr/local/lib
  sh /etc/rc.d/ldconfig start
 
 sermons# ll -d /usr/local/lib
 drwxr-xr-x  4 root  wheel  512 Nov 28 19:07 /usr/local/lib
 
 
 I think I found the cause of the problem.  A reboot corrected the issue.  
 Apparently when ldconfig was run /usr/local/lib didn't exist.  Apparently it 
 doesn't check for that except for in ldconfig.  I was not aware of ldconfig 
 before.  That explains why the reboot worked.  Thanks to all who provided 
 information.

Oh.  Hmm, in that case, service ldconfig restart probably would have
fixed it.  (Seems sorta strange to restart a service that just
builds a table and exits.)

-- Ian


___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: Library Problem

2012-11-29 Thread Doug Hardie

On 29 November 2012, at 13:44, Ian Lepore wrote:

 On Thu, 2012-11-29 at 13:33 -0800, Doug Hardie wrote:
 On 29 November 2012, at 06:01, Gary Palmer wrote:
 
 On Wed, Nov 28, 2012 at 10:46:51PM -0800, Doug Hardie wrote:
 
 On 28 November 2012, at 20:01, Devin Teske wrote:
 
 
 On Nov 28, 2012, at 7:36 PM, Doug Hardie wrote:
 
 I have installed 4 systems from the same FreeBSD 9.1-RC3 disk.  Three of 
 them worked just fine.  The last one is causing a problem.  It will not 
 look in /usr/local/lib/ for shared libraries.  I did the standard 
 install, moved in some source, compiled it and tried to run it.  The 
 library is there.  On the working systems ktrace shows:
 
 2259 introCALL  access(0x28066000,0F_OK)
 2259 introNAMI  /lib/libsermons.so
 2259 introRET   access -1 errno 2 No such file or directory
 2259 introCALL  access(0x28066000,0F_OK)
 2259 introNAMI  /usr/lib/libsermons.so
 2259 introRET   access -1 errno 2 No such file or directory
 2259 introCALL  access(0x28066000,0F_OK)
 2259 introNAMI  /usr/lib/compat/libsermons.so
 2259 introRET   access -1 errno 2 No such file or directory
 2259 introCALL  access(0x28066000,0F_OK)
 2259 introNAMI  /usr/local/lib/libsermons.so
 2259 introRET   access 0
 
 
 On the failing system ktrace shows:
 
 6746 introNAMI  /lib/libsermons.so
 6746 introRET   access -1 errno 2 No such file or directory
 6746 introCALL  access(0x28066000,0F_OK)
 6746 introNAMI  /usr/lib/libsermons.so
 6746 introRET   access -1 errno 2 No such file or directory
 6746 introCALL  access(0x28066000,0F_OK)
 6746 introNAMI  /usr/lib/compat/libsermons.so
 6746 introRET   access -1 errno 2 No such file or directory
 6746 introCALL  access(0x28066000,0F_OK)
 6746 introNAMI  /lib/libsermons.so
 6746 introRET   access -1 errno 2 No such file or directory
 6746 introCALL  access(0x28066000,0F_OK)
 6746 introNAMI  /usr/lib/libsermons.so
 6746 introRET   access -1 errno 2 No such file or directory
 6746 introCALL  write(0x2,0x28060080,0x3c)
 6746 introGIO   fd 2 wrote 60 bytes
Shared object libsermons.so not found, required by intro
 
 
 It never attempts to check /usr/local/lib.  I can't find any 
 configuration item that affects that.  How can this be fixed?
 
 
 What's the value of ldconfig_paths in rc.conf(5)?
 
 That includes:
 /etc/rc.conf
 /etc/rc.conf.local (if it exists)
 /etc/defaults/rc.conf
 
 Here on my 9.0-R system it has the following in /etc/defaults/rc.conf:
 /usr/lib/compat /usr/local/lib /usr/local/lib/compat/pkg
 
 
 /etc/defaults/rc.conf has:
 
 ldconfig_paths=/usr/lib/compat /usr/local/lib /usr/local/lib/compat/pkg
 
 
 /etc/rc.conf has nothing for ldconfig_paths.
 
 Check that /usr/local/lib doesn't have group or other write perms.
 ldconfig ignores directories that are group/world writable.
 
 To fix:
 
 chmod go-w /usr/local/lib
 sh /etc/rc.d/ldconfig start
 
 sermons# ll -d /usr/local/lib
 drwxr-xr-x  4 root  wheel  512 Nov 28 19:07 /usr/local/lib
 
 
 I think I found the cause of the problem.  A reboot corrected the issue.  
 Apparently when ldconfig was run /usr/local/lib didn't exist.  Apparently it 
 doesn't check for that except for in ldconfig.  I was not aware of ldconfig 
 before.  That explains why the reboot worked.  Thanks to all who provided 
 information.
 
 Oh.  Hmm, in that case, service ldconfig restart probably would have
 fixed it.  (Seems sorta strange to restart a service that just
 builds a table and exits.)

I am sure it would have.  I suspect there are more unexpected services like 
that.  There are too many services to remember, let alone understand.  A Google 
search turned up nothing usable for me.  If I could have hit on ldconfig, then 
the man page would have been perfectly clear… 

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Library Problem

2012-11-28 Thread Doug Hardie
I have installed 4 systems from the same FreeBSD 9.1-RC3 disk.  Three of them 
worked just fine.  The last one is causing a problem.  It will not look in 
/usr/local/lib/ for shared libraries.  I did the standard install, moved in 
some source, compiled it and tried to run it.  The library is there.  On the 
working systems ktrace shows:

  2259 introCALL  access(0x28066000,0F_OK)
  2259 introNAMI  /lib/libsermons.so
  2259 introRET   access -1 errno 2 No such file or directory
  2259 introCALL  access(0x28066000,0F_OK)
  2259 introNAMI  /usr/lib/libsermons.so
  2259 introRET   access -1 errno 2 No such file or directory
  2259 introCALL  access(0x28066000,0F_OK)
  2259 introNAMI  /usr/lib/compat/libsermons.so
  2259 introRET   access -1 errno 2 No such file or directory
  2259 introCALL  access(0x28066000,0F_OK)
  2259 introNAMI  /usr/local/lib/libsermons.so
  2259 introRET   access 0


On the failing system ktrace shows:

  6746 introNAMI  /lib/libsermons.so
  6746 introRET   access -1 errno 2 No such file or directory
  6746 introCALL  access(0x28066000,0F_OK)
  6746 introNAMI  /usr/lib/libsermons.so
  6746 introRET   access -1 errno 2 No such file or directory
  6746 introCALL  access(0x28066000,0F_OK)
  6746 introNAMI  /usr/lib/compat/libsermons.so
  6746 introRET   access -1 errno 2 No such file or directory
  6746 introCALL  access(0x28066000,0F_OK)
  6746 introNAMI  /lib/libsermons.so
  6746 introRET   access -1 errno 2 No such file or directory
  6746 introCALL  access(0x28066000,0F_OK)
  6746 introNAMI  /usr/lib/libsermons.so
  6746 introRET   access -1 errno 2 No such file or directory
  6746 introCALL  write(0x2,0x28060080,0x3c)
  6746 introGIO   fd 2 wrote 60 bytes
   Shared object libsermons.so not found, required by intro


It never attempts to check /usr/local/lib.  I can't find any configuration item 
that affects that.  How can this be fixed?

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: Library Problem

2012-11-28 Thread Devin Teske

On Nov 28, 2012, at 7:36 PM, Doug Hardie wrote:

 I have installed 4 systems from the same FreeBSD 9.1-RC3 disk.  Three of them 
 worked just fine.  The last one is causing a problem.  It will not look in 
 /usr/local/lib/ for shared libraries.  I did the standard install, moved in 
 some source, compiled it and tried to run it.  The library is there.  On the 
 working systems ktrace shows:
 
  2259 introCALL  access(0x28066000,0F_OK)
  2259 introNAMI  /lib/libsermons.so
  2259 introRET   access -1 errno 2 No such file or directory
  2259 introCALL  access(0x28066000,0F_OK)
  2259 introNAMI  /usr/lib/libsermons.so
  2259 introRET   access -1 errno 2 No such file or directory
  2259 introCALL  access(0x28066000,0F_OK)
  2259 introNAMI  /usr/lib/compat/libsermons.so
  2259 introRET   access -1 errno 2 No such file or directory
  2259 introCALL  access(0x28066000,0F_OK)
  2259 introNAMI  /usr/local/lib/libsermons.so
  2259 introRET   access 0
 
 
 On the failing system ktrace shows:
 
  6746 introNAMI  /lib/libsermons.so
  6746 introRET   access -1 errno 2 No such file or directory
  6746 introCALL  access(0x28066000,0F_OK)
  6746 introNAMI  /usr/lib/libsermons.so
  6746 introRET   access -1 errno 2 No such file or directory
  6746 introCALL  access(0x28066000,0F_OK)
  6746 introNAMI  /usr/lib/compat/libsermons.so
  6746 introRET   access -1 errno 2 No such file or directory
  6746 introCALL  access(0x28066000,0F_OK)
  6746 introNAMI  /lib/libsermons.so
  6746 introRET   access -1 errno 2 No such file or directory
  6746 introCALL  access(0x28066000,0F_OK)
  6746 introNAMI  /usr/lib/libsermons.so
  6746 introRET   access -1 errno 2 No such file or directory
  6746 introCALL  write(0x2,0x28060080,0x3c)
  6746 introGIO   fd 2 wrote 60 bytes
   Shared object libsermons.so not found, required by intro
 
 
 It never attempts to check /usr/local/lib.  I can't find any configuration 
 item that affects that.  How can this be fixed?
 

What's the value of ldconfig_paths in rc.conf(5)?

That includes:
/etc/rc.conf
/etc/rc.conf.local (if it exists)
/etc/defaults/rc.conf

Here on my 9.0-R system it has the following in /etc/defaults/rc.conf:
/usr/lib/compat /usr/local/lib /usr/local/lib/compat/pkg
-- 
Devin

_
The information contained in this message is proprietary and/or confidential. 
If you are not the intended recipient, please: (i) delete the message and all 
copies; (ii) do not disclose, distribute or use the message in any manner; and 
(iii) notify the sender immediately. In addition, please be aware that any 
message addressed to our domain is subject to archiving and review by persons 
other than the intended recipient. Thank you.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: Library Problem

2012-11-28 Thread Doug Hardie

On 28 November 2012, at 20:01, Devin Teske wrote:

 
 On Nov 28, 2012, at 7:36 PM, Doug Hardie wrote:
 
 I have installed 4 systems from the same FreeBSD 9.1-RC3 disk.  Three of 
 them worked just fine.  The last one is causing a problem.  It will not look 
 in /usr/local/lib/ for shared libraries.  I did the standard install, moved 
 in some source, compiled it and tried to run it.  The library is there.  On 
 the working systems ktrace shows:
 
 2259 introCALL  access(0x28066000,0F_OK)
 2259 introNAMI  /lib/libsermons.so
 2259 introRET   access -1 errno 2 No such file or directory
 2259 introCALL  access(0x28066000,0F_OK)
 2259 introNAMI  /usr/lib/libsermons.so
 2259 introRET   access -1 errno 2 No such file or directory
 2259 introCALL  access(0x28066000,0F_OK)
 2259 introNAMI  /usr/lib/compat/libsermons.so
 2259 introRET   access -1 errno 2 No such file or directory
 2259 introCALL  access(0x28066000,0F_OK)
 2259 introNAMI  /usr/local/lib/libsermons.so
 2259 introRET   access 0
 
 
 On the failing system ktrace shows:
 
 6746 introNAMI  /lib/libsermons.so
 6746 introRET   access -1 errno 2 No such file or directory
 6746 introCALL  access(0x28066000,0F_OK)
 6746 introNAMI  /usr/lib/libsermons.so
 6746 introRET   access -1 errno 2 No such file or directory
 6746 introCALL  access(0x28066000,0F_OK)
 6746 introNAMI  /usr/lib/compat/libsermons.so
 6746 introRET   access -1 errno 2 No such file or directory
 6746 introCALL  access(0x28066000,0F_OK)
 6746 introNAMI  /lib/libsermons.so
 6746 introRET   access -1 errno 2 No such file or directory
 6746 introCALL  access(0x28066000,0F_OK)
 6746 introNAMI  /usr/lib/libsermons.so
 6746 introRET   access -1 errno 2 No such file or directory
 6746 introCALL  write(0x2,0x28060080,0x3c)
 6746 introGIO   fd 2 wrote 60 bytes
  Shared object libsermons.so not found, required by intro
 
 
 It never attempts to check /usr/local/lib.  I can't find any configuration 
 item that affects that.  How can this be fixed?
 
 
 What's the value of ldconfig_paths in rc.conf(5)?
 
 That includes:
 /etc/rc.conf
 /etc/rc.conf.local (if it exists)
 /etc/defaults/rc.conf
 
 Here on my 9.0-R system it has the following in /etc/defaults/rc.conf:
 /usr/lib/compat /usr/local/lib /usr/local/lib/compat/pkg


/etc/defaults/rc.conf has:

ldconfig_paths=/usr/lib/compat /usr/local/lib /usr/local/lib/compat/pkg


/etc/rc.conf has nothing for ldconfig_paths.


___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: Library Problem

2012-11-28 Thread Scot Hetzel
On Thu, Nov 29, 2012 at 12:46 AM, Doug Hardie bc...@lafn.org wrote:

 On 28 November 2012, at 20:01, Devin Teske wrote:


 On Nov 28, 2012, at 7:36 PM, Doug Hardie wrote:

 I have installed 4 systems from the same FreeBSD 9.1-RC3 disk.  Three of 
 them worked just fine.  The last one is causing a problem.  It will not 
 look in /usr/local/lib/ for shared libraries.  I did the standard install, 
 moved in some source, compiled it and tried to run it.  The library is 
 there.  On the working systems ktrace shows:

 2259 introCALL  access(0x28066000,0F_OK)
 2259 introNAMI  /lib/libsermons.so
 2259 introRET   access -1 errno 2 No such file or directory
 2259 introCALL  access(0x28066000,0F_OK)
 2259 introNAMI  /usr/lib/libsermons.so
 2259 introRET   access -1 errno 2 No such file or directory
 2259 introCALL  access(0x28066000,0F_OK)
 2259 introNAMI  /usr/lib/compat/libsermons.so
 2259 introRET   access -1 errno 2 No such file or directory
 2259 introCALL  access(0x28066000,0F_OK)
 2259 introNAMI  /usr/local/lib/libsermons.so
 2259 introRET   access 0


 On the failing system ktrace shows:

 6746 introNAMI  /lib/libsermons.so
 6746 introRET   access -1 errno 2 No such file or directory
 6746 introCALL  access(0x28066000,0F_OK)
 6746 introNAMI  /usr/lib/libsermons.so
 6746 introRET   access -1 errno 2 No such file or directory
 6746 introCALL  access(0x28066000,0F_OK)
 6746 introNAMI  /usr/lib/compat/libsermons.so
 6746 introRET   access -1 errno 2 No such file or directory
 6746 introCALL  access(0x28066000,0F_OK)
 6746 introNAMI  /lib/libsermons.so
 6746 introRET   access -1 errno 2 No such file or directory
 6746 introCALL  access(0x28066000,0F_OK)
 6746 introNAMI  /usr/lib/libsermons.so
 6746 introRET   access -1 errno 2 No such file or directory
 6746 introCALL  write(0x2,0x28060080,0x3c)
 6746 introGIO   fd 2 wrote 60 bytes
  Shared object libsermons.so not found, required by intro


 It never attempts to check /usr/local/lib.  I can't find any configuration 
 item that affects that.  How can this be fixed?


 What's the value of ldconfig_paths in rc.conf(5)?

 That includes:
 /etc/rc.conf
 /etc/rc.conf.local (if it exists)
 /etc/defaults/rc.conf

 Here on my 9.0-R system it has the following in /etc/defaults/rc.conf:
 /usr/lib/compat /usr/local/lib /usr/local/lib/compat/pkg


 /etc/defaults/rc.conf has:

 ldconfig_paths=/usr/lib/compat /usr/local/lib /usr/local/lib/compat/pkg


 /etc/rc.conf has nothing for ldconfig_paths.


What does ldconfig -r show?  It should show which paths it is
configured to scan.

Is LD_LIBRARY_PATH set?

Scot
-- 
DISCLAIMER:

No electrons were mamed while sending this message. Only slightly bruised.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


C Library problem stable on Alpha

2002-11-06 Thread Ted Lindgreen

Hi

Having just installed an up-to-date (as of Wed Nov  6 16:28:37 CET
2002) version of stable on alpha, I now have a problem compiling
the XFree86-4-libraries.

The make bails out shortly after:

/usr/lib/libc_r.so: undefined reference to `__sys_sigaltstack'

Indeed, there is an unresolved referens to __sys_sigaltstack:
 setjmp.o:
 0100 T __longjmp
  U __sys_sigaltstack
  U __sys_sigprocmask

Looking at /usr/src/lib/libc/alpha/gen/setjmp.S there is:
  PCALL(sigaltstack)
which indeed translates to a call to __sys_sigaltstack.

Looking for references in the CVS rlog's I found:
 RCS file: pthread_private.h,v
 
 revision 1.75
 date: 2002/10/22 17:13:32;  author: fjoe;  state: Exp;  lines: +0 -1
 remove unused __sys_sigaltstack() declaration

It looks futher that sigaltstack is carefully removed everywhere
except from setjmp in the alpha port.

-- ted


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-stable in the body of the message