Discussion:
Candidate for most silly question, but here it goes:
Harry Schmalzbauer
2021-05-04 07:40:10 UTC
Permalink
Hi!

#> file /usr/lib/libc.so
/usr/lib/libc.so: ASCII text


#> cat /usr/lib/libc.so
/* $FreeBSD$ */
GROUP ( /lib/libc.so.7 /usr/lib/libc_nonshared.a )


Does this make sense in any way?

Accidentally stumbled across while trying out thunderbird, which claims:
JavaScript error: resource:///modules/CLib.jsm, line 46: Error: couldn't
open library libc.so: /usr/lib/libc.so: invalid file format


Thanks for hints (I have some brief knwoledge about dynamically linked
binaries, but I'm not aware of linker hints - which is what I see to my
understanding).

-harry
doug
2021-05-04 15:10:53 UTC
Permalink
Post by Harry Schmalzbauer
Hi!
#> file /usr/lib/libc.so
/usr/lib/libc.so: ASCII text
#> cat /usr/lib/libc.so
/* $FreeBSD$ */
GROUP ( /lib/libc.so.7 /usr/lib/libc_nonshared.a )
Does this make sense in any way?
JavaScript error: resource:///modules/CLib.jsm, line 46: Error: couldn't open
library libc.so: /usr/lib/libc.so: invalid file format
Thanks for hints (I have some brief knwoledge about dynamically linked
binaries, but I'm not aware of linker hints - which is what I see to my
understanding).
-harry
I'm pretty sure you arn't the only. At least I'm in the running with you.
That said on my 12.2-RELEASE-p4 system I get:

cat /usr/lib/libc.so
/* $FreeBSD: releng/12.2/lib/libc/libc.ldscript 258283 2013-11-17 22:52:17Z peter $ */
GROUP ( /lib/libc.so.7 /usr/lib/libc_nonshared.a
/usr/lib/libssp_nonshared.a )

My guess is that is a way of telling various flavors of firefox which
dynamic lib to use. In any case that's whats there
Valeri Galtsev
2021-05-04 15:35:11 UTC
Permalink
Post by doug
Post by Harry Schmalzbauer
Hi!
#> file /usr/lib/libc.so
/usr/lib/libc.so: ASCII text
#> cat /usr/lib/libc.so
/* $FreeBSD$ */
GROUP ( /lib/libc.so.7 /usr/lib/libc_nonshared.a )
Does this make sense in any way?
couldn't open library libc.so: /usr/lib/libc.so: invalid file format
Thanks for hints (I have some brief knwoledge about dynamically linked
binaries, but I'm not aware of linker hints - which is what I see to
my understanding).
-harry
I'm pretty sure you arn't the only. At least I'm in the running with
cat /usr/lib/libc.so
/* $FreeBSD: releng/12.2/lib/libc/libc.ldscript 258283 2013-11-17 22:52:17Z peter $ */
GROUP ( /lib/libc.so.7 /usr/lib/libc_nonshared.a
/usr/lib/libssp_nonshared.a )
For over a decade I was so happy running FreeBSD on my servers... And
today learning all this made a big hole in my feelings. Like discovering
nonsense, and where: in the base system... The feeling is pretty much
the same as I had when I started to look where to flee my servers from
Linux ("lindoze" one of my friends called it then) over a decade ago.

Anybody knows UNIX [descendant] not polluted with files of unexpected
type for given file extension (found in usual for them place)?

Valeri
Post by doug
My guess is that is a way of telling various flavors of firefox which
dynamic lib to use. In any case that's whats there
_______________________________________________
https://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
--
++++++++++++++++++++++++++++++++++++++++
Valeri Galtsev
Sr System Administrator
Department of Astronomy and Astrophysics
Kavli Institute for Cosmological Physics
University of Chicago
Phone: 773-702-4247
++++++++++++++++++++++++++++++++++++++++
Arthur Chance
2021-05-04 15:56:41 UTC
Permalink
Post by Harry Schmalzbauer
Hi!
#> file /usr/lib/libc.so
/usr/lib/libc.so: ASCII text
#> cat /usr/lib/libc.so
/* $FreeBSD$ */
GROUP ( /lib/libc.so.7 /usr/lib/libc_nonshared.a )
Does this make sense in any way?
JavaScript error: resource:///modules/CLib.jsm, line 46: Error: couldn't
open library libc.so: /usr/lib/libc.so: invalid file format
Thanks for hints (I have some brief knwoledge about dynamically linked
binaries, but I'm not aware of linker hints - which is what I see to my
understanding).
I have no idea about /usr/lib/libc.so but libc is actually in /lib. On
my 12.2-REL system

***@nas:0# file /lib/libc.so*
/lib/libc.so.7: ELF 64-bit LSB shared object, x86-64, version 1
(FreeBSD), dynamically linked, stripped
--
Lebowskisort, aka dudesort, an O(1) sorting algorithm:

"Man, the array is cool as it is. Let's go bowling."
Fernando ApesteguĂ­a
2021-05-04 16:09:44 UTC
Permalink
Post by Arthur Chance
Post by Harry Schmalzbauer
Hi!
#> file /usr/lib/libc.so
/usr/lib/libc.so: ASCII text
#> cat /usr/lib/libc.so
/* $FreeBSD$ */
GROUP ( /lib/libc.so.7 /usr/lib/libc_nonshared.a )
Does this make sense in any way?
It looks like a GNU ld linker script:
https://ftp.gnu.org/old-gnu/Manuals/ld-2.9.1/html_chapter/ld_3.html
Post by Arthur Chance
Post by Harry Schmalzbauer
JavaScript error: resource:///modules/CLib.jsm, line 46: Error: couldn't
open library libc.so: /usr/lib/libc.so: invalid file format
Thanks for hints (I have some brief knwoledge about dynamically linked
binaries, but I'm not aware of linker hints - which is what I see to my
understanding).
I have no idea about /usr/lib/libc.so but libc is actually in /lib. On
my 12.2-REL system
/lib/libc.so.7: ELF 64-bit LSB shared object, x86-64, version 1
(FreeBSD), dynamically linked, stripped
--
"Man, the array is cool as it is. Let's go bowling."
_______________________________________________
https://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "
Continue reading on narkive:
Loading...