Re: libc version

2012-06-18 Thread Sergio de Almeida Lenzi
Ok thank you for your answer...

the "problem"  is in the postgres code and not
in a compile switch or something like that...

I will upgrade all my 8.2 to 8.3... systems

to do this, I build an 8.3 from ground zero,
and than do a rsync from this one to the others,
directories: /usr/obj /usr/src
than... on each target, a make installworld installkernel should do the
upgrade...

Any comments??

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


Re: libc version

2012-06-18 Thread Robert Bonomi
> From owner-freebsd-questi...@freebsd.org  Mon Jun 18 08:21:38 2012
> From: Sergio de Almeida Lenzi 
> To: freebsd-questions@freebsd.org
> Date: Mon, 18 Jun 2012 10:20:09 -0300
> Subject: libc version
>
> Hello...
>
> I upgrade the server from version 8.2 to 8.3, and rebuild all packages..
> it all works...
>
> Then I installed a binary package (8.3) in an old 8.2 ...
> every package works... gnome, nautilus, wget about 800 of them
> the only one that does not work is postgesql84-server
> when I try to run it it I got the message:
> /libexec/ld-elf.so.1: /lib/libc.so.7: version FBSD_1.3 required
> by /usr/local/bin/postgres not found
>
> seems that only postgres is check for the libc version???

INCORRECT.  Postgres is jjust the only one of those programs that
_requires_ a 'minimum' version level that is newer than the one
installed.

> is there a compile switch to check for that???

No.

> Of course, if I compile postgres in the 8.2 or upgrade to 8.3 it
> works...

Naturally. "do it right and it will work'.  

The required _minimum_ version of a runtime library is specified in the 
program source code -- because it uses features that did not exist in
any version prior to that one.

There is *NO* way to tell _at_compile_time_ what version of a runtome
library will be present when the program is executed.

The 'compiled on 8.3' Postgres binary requires a newer version of libc
than exists in 8.2.   Compile on 8.2 and it builds using diferent code
that does not require the newer libc feature.  hence the 8.2-compiled
code works on 8.2.

The solution to your problem, as you found, is to _not_ use 'more current'
binaries in 'down-rev' environments.  "upward compatibility" is almost
always present in a package.  "backward compatibility" is *always* a
crap-shoot.





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


Re: libc regex word-boundary support fallen-off?

2012-03-08 Thread Carl Johnson
RW  writes:

> I've noticed for some time that claws-mail and less (which I think use
> libc's regex(3)) don't support word boundaries in searches. I might be
> delusional, but I think I've used \b in the past in both of those
> applications in FreeBSD.  
>
> According to regex(3) it's an implementation POSIX.2, so the feature
> needn't be supported, but at the bottom of the page it says
> "word-boundary matching is a bit of a kludge", so presumably it has
> been.
>
> Does anyone know what's going on?
>
>
> I switched from i386 to amd64 last year so it might be something to do
> with that. I'm currently using 8.2p6.

The only way I have found to do it is [[:<:]] and [[:>:]].  That is very
awkward, so I't love to hear of a shorter way.  I found them in the
re_format(7) manpage.
-- 
Carl Johnsonca...@peak.org

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


Re: libc or OpenSSL patches break ssh?

2009-04-22 Thread Mel Flynn
On Wednesday 22 April 2009 20:11:09 Jake Evans wrote:
> Am running 6.4-PRERELEASE.
>
> Received FreeBSD-SA-09:07.libc / FreeBSD-SA-09:08.openssl notifications
> today, applied applicable patches correctly.
>
> However, now when anyone attempts to connect to my server via SSH, the
> connection is closed after they enter their login & password.
>
> /var/log/messages says the following when they try to login:
>
> Apr 22 12:53:12 x sshd[75505]: fatal: openpty returns device for which
> ttyname fails.
> Apr 22 12:53:12 x sshd[75505]: error: chown  0 0 failed: No such file or
> directory
> Apr 22 12:53:12 x sshd[75505]: error: chmod  0666 failed: No such file or
> directory

You did a full buildworld and restarted sshd, or just updated openssl?
-- 
Mel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: libc or OpenSSL patches break ssh?

2009-04-22 Thread Jake Evans

Figured it out.

The libc patch instructions don't tell you to rebuild libutil. You need to 
do that.



On Wed, 22 Apr 2009, Jake Evans wrote:


Am running 6.4-PRERELEASE.

Received FreeBSD-SA-09:07.libc / FreeBSD-SA-09:08.openssl notifications 
today, applied applicable patches correctly.


However, now when anyone attempts to connect to my server via SSH, the 
connection is closed after they enter their login & password.


/var/log/messages says the following when they try to login:

Apr 22 12:53:12 x sshd[75505]: fatal: openpty returns device for which 
ttyname fails.
Apr 22 12:53:12 x sshd[75505]: error: chown  0 0 failed: No such file or 
directory
Apr 22 12:53:12 x sshd[75505]: error: chmod  0666 failed: No such file or 
directory

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


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


Re: libc documentation

2007-12-20 Thread Dan Nelson
In the last episode (Dec 20), Robe said:
> I need to know where I can find the full documentation of the last
> libc library.

Most of the libc documentation should be in /usr/src/lib/libc/ .  Any
file ending in .2 or .3 is a manpage.  They are also installed in
/usr/share/man and are available using the "man" command.  Run "man 3
printf", for example. 

-- 
Dan Nelson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: libc

2005-06-23 Thread Kris Kennaway
On Thu, Jun 23, 2005 at 12:39:11PM +0200, Chris Knipe wrote:
> Lo all,
> 
> Is there anywhere that I can see what has changed from FreeBSD 4.11 to 
> FreeBSD 5.x, in regards to libc ?

The CVS logs are public, e.g. http://cvsweb.freebsd.org/, but there
are literally thousands of changes.

Kris


pgprIGyEfnh9P.pgp
Description: PGP signature


Re: libc (?)

2003-07-02 Thread Kenneth Culver
> No you can't - it relies on the 5.1 kernel.

OK, well I wasn't sure how much things had changed as far as the ABI goes,
so I didn't want to rule it out.

Ken
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: libc (?)

2003-07-02 Thread Kris Kennaway
On Thu, Jul 03, 2003 at 12:16:59AM +0930, james wrote:
> G'day
> 
> Probably a really stupid question - but is there a compatability port of some 
> sort for 4.x systems so we can run things compiled for 5.x ? :-)

Why do you think you need this?  The same packages are provided for 4.x systems.

Kris


pgp0.pgp
Description: PGP signature


Re: libc (?)

2003-07-02 Thread Kris Kennaway
On Wed, Jul 02, 2003 at 10:51:40AM -0400, Kenneth Culver wrote:
> > Probably a really stupid question - but is there a compatability port of
> > some sort for 4.x systems so we can run things compiled for 5.x ? :-)
> 
> No, but you can go the other way around. You MIGHT be able to use the 5.x
> libc directly on 4.x, but I wouldn't recommend it.

No you can't - it relies on the 5.1 kernel.

Kris


pgp0.pgp
Description: PGP signature


Re: libc (?)

2003-07-02 Thread Miguel Mendez
On Thu, 3 Jul 2003 00:16:59 +0930
"james" <[EMAIL PROTECTED]> wrote:

Hi,
 
> Probably a really stupid question - but is there a compatability port
> of some sort for 4.x systems so we can run things compiled for 5.x ?
> :-)

I fail to see how that could be useful, even if it worked. You can build
ports on your 4.x system, and you can use packages on it too. I
recommend you installing portupgrade if you haven't already. The you can
use cvsup and portupgrade with the -Pp options to use packages if you
don't feel compiling stuff yourself. Note that there's not a specific
4.x or 5.x ports tree, ports are ports are ports.

Cheers,
-- 
Miguel Mendez - [EMAIL PROTECTED]
EnergyHQ :: http://www.energyhq.tk
Tired of Spam? -> http://www.trustic.com


pgp0.pgp
Description: PGP signature


Re: libc (?)

2003-07-02 Thread Kenneth Culver
> Probably a really stupid question - but is there a compatability port of
> some sort for 4.x systems so we can run things compiled for 5.x ? :-)

No, but you can go the other way around. You MIGHT be able to use the 5.x
libc directly on 4.x, but I wouldn't recommend it.

Ken
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: libc (?)

2003-07-02 Thread james
G'day

Probably a really stupid question - but is there a compatability port of some 
sort for 4.x systems so we can run things compiled for 5.x ? :-)

regards
james

On Wed, 2 Jul 2003 16:40:30 +0200, Miguel Mendez wrote
> On Wed, 2 Jul 2003 23:46:16 +0930
> "james" <[EMAIL PROTECTED]> wrote:
> 
> Hi,
> 
> > [EMAIL PROTECTED]:~]
> > /usr/libexec/ld-elf.so.1: Shared object "libc.so.5" not found
> > 
> > How would I fix this? - what do I compile etc that will remove this
> > error message?
> 
> Sounds like you've installed a 5.x package on a 4.x system. You cannot
> do that.
>  
> > I did a buildworld a while ago to 4.8 stable, and ever since then I've
> > received this error message (ie, amavis doesn't work anymore :-(
> 
> Are you installing packages for -CURRENT? Using ports? If a program is
> asking for libc.so.5 it means it was compiled for 5.x.
>  
> Cheers,
> -- 
> Miguel Mendez - [EMAIL PROTECTED]
> EnergyHQ :: http://www.energyhq.tk
> Tired of Spam? -> http://www.trustic.com



--
Open WebMail Project (http://openwebmail.org)

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: libc (?)

2003-07-02 Thread Miguel Mendez
On Wed, 2 Jul 2003 23:46:16 +0930
"james" <[EMAIL PROTECTED]> wrote:

Hi,

> [EMAIL PROTECTED]:~]
> /usr/libexec/ld-elf.so.1: Shared object "libc.so.5" not found
> 
> How would I fix this? - what do I compile etc that will remove this
> error message?

Sounds like you've installed a 5.x package on a 4.x system. You cannot
do that.
 
> I did a buildworld a while ago to 4.8 stable, and ever since then I've
> received this error message (ie, amavis doesn't work anymore :-(

Are you installing packages for -CURRENT? Using ports? If a program is
asking for libc.so.5 it means it was compiled for 5.x.
 
Cheers,
-- 
Miguel Mendez - [EMAIL PROTECTED]
EnergyHQ :: http://www.energyhq.tk
Tired of Spam? -> http://www.trustic.com


pgp0.pgp
Description: PGP signature


Re: libc tests

2003-03-07 Thread Kris Kennaway
On Thu, Mar 06, 2003 at 02:12:06PM -0700, Quinlan, Gerald F wrote:
> We are looking to acquire or develop the capability to test for proper or
> expected results for each LIBC function.  Your help is appreciated.

FreeBSD doesn't include anything comprehensive, except for a few
regression tests for miscellaneous parts of the system in
/usr/src/tools/regression/.

The nearest thing to what you're asking for would be a compliance
testing suite for one of the UNIX standards (except FreeBSD may not
pass every test).

Good luck,

Kris


pgp0.pgp
Description: PGP signature


RE: libc tests

2003-03-06 Thread Quinlan, Gerald F
We are looking to acquire or develop the capability to test for proper or
expected results for each LIBC function.  Your help is appreciated.

Gerry Quinlan  
SNL Department 9224 Scalable Systems Integration
Phone 505-844-6568
Fax 505-845-7442 



-Original Message-
From: Kris Kennaway [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 06, 2003 12:01 PM
To: Quinlan, Gerald F
Cc: '[EMAIL PROTECTED]'; Kelly, Suzanne M
Subject: Re: libc tests


On Thu, Mar 06, 2003 at 10:50:32AM -0700, Quinlan, Gerald F wrote:
> 
> We have acquired a  copy of Version 4.7 of freeBSD on CD-ROM and are
> searching for a way to test the libc functions.  The LSB-VSX test suite
from
> The Open Group does not appear to meet our needs.  Do you have any other
> suggestions?  Thanks for your help.

What kind of tests are you hoping to perform?

Kris


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


Re: libc tests

2003-03-06 Thread Kris Kennaway
On Thu, Mar 06, 2003 at 10:50:32AM -0700, Quinlan, Gerald F wrote:
> 
> We have acquired a  copy of Version 4.7 of freeBSD on CD-ROM and are
> searching for a way to test the libc functions.  The LSB-VSX test suite from
> The Open Group does not appear to meet our needs.  Do you have any other
> suggestions?  Thanks for your help.

What kind of tests are you hoping to perform?

Kris


pgp0.pgp
Description: PGP signature