Discussion:
current: cd /lib ; ln -s libncurses.so.9 libncurses.so.8 xterm & ffox
(too old to reply)
Julian H. Stacey
2020-04-01 00:22:18 UTC
Permalink
Hi ports@
A libcurses version problem:

Running 13.0-CURRENT with
/usr/src
cat .svn_revision 359319
cat .ctm_status src-cur 14430
/usr/ports
cat .svn_revision 529842
cat .ctm_status ports-cur 13423

After
pkg upgrade
pkg autoremove
xterm & firefox failed with
ld-elf.so.1: Shared object "libncurses.so.8" not found, required by "xterm"

Fixed temporarily with:
cd /lib ; ln -s libncurses.so.9 libncurses.so.8 ; ldconfig -R

It's 6.1 in ports:
cd /usr/ports/devel/ncurses ; make ; find . -name \*libncurses.so\* | sort
./work/ncurses-6.1-20190525/build.nowidec/lib/libncurses.so
./work/ncurses-6.1-20190525/build.nowidec/lib/libncurses.so.6
./work/ncurses-6.1-20190525/build.nowidec/lib/libncurses.so.6.1
./work/stage/usr/local/lib/libncurses.so
./work/stage/usr/local/lib/libncurses.so.6
./work/stage/usr/local/lib/libncurses.so.6.1

cd /usr/src; find . -name \*libncurses\* # Nothing

ls -l /lib
lrwxr-xr-x 1 root wheel 15 Mar 31 23:27 libncurses.so.8@ -> libncurses.so.9
-r--r--r-- 1 root wheel 399240 Mar 31 13:45 libncurses.so.9
-r--r--r-- 1 root wheel 457528 Mar 31 13:45 libncursesw.so.9

ls -l /usr/local/lib/*libncurses*
-rw-r--r-- 1 root wheel 161144 Mar 31 23:31 libncurses++.a
-rw-r--r-- 1 root wheel 161160 Mar 31 23:31 libncurses++w.a
-rw-r--r-- 1 root wheel 318044 Mar 31 23:31 libncurses.a
-rw-r--r-- 1 root wheel 44 Mar 31 23:31 libncurses.so
lrwxr-xr-x 1 root wheel 17 Mar 31 23:31 libncurses.so.6@ -> libncurses.so.6.1
-rwxr-xr-x 1 root wheel 164896 Mar 31 23:31 libncurses.so.6.1*
-rw-r--r-- 1 root wheel 421732 Mar 31 23:31 libncursesw.a
-rw-r--r-- 1 root wheel 46 Mar 31 23:31 libncursesw.so
lrwxr-xr-x 1 root wheel 18 Mar 31 23:31 libncursesw.so.6@ -> libncursesw.so.6.1
-rwxr-xr-x 1 root wheel 222096 Mar 31 23:31 libncursesw.so.6.1*

Next to look at /usr/src/
ObsoleteFiles.inc
# 20200220: Upgrade of ncurses, shlib bumped to version 9
OLD_LIBS+=lib/libncurses.so.8
lib/ncurses
contrib/ncurses

Cheers
--
Julian Stacey, Consultant Systems Engineer, BSD Linux http://berklix.com/jhs/
UK stole 750,000 votes from EU Brits: http://stolenvotes.uk
http://petition.parliament.uk/petitions/300059 http://berklix.uk/brexit/#russia
Limit Corona: http://berklix.eu/corona/ Delay Brexit deals to fight Corona.
_______________________________________________
freebsd-***@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-***@freebsd.org"

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Lorenzo Salvadore via freebsd-ports
2020-04-01 09:56:27 UTC
Permalink
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
Post by Julian H. Stacey
Running 13.0-CURRENT with
/usr/src
cat .svn_revision 359319
cat .ctm_status src-cur 14430
/usr/ports
cat .svn_revision 529842
cat .ctm_status ports-cur 13423
After
pkg upgrade
pkg autoremove
xterm & firefox failed with
ld-elf.so.1: Shared object "libncurses.so.8" not found, required by "xterm"
cd /lib ; ln -s libncurses.so.9 libncurses.so.8 ; ldconfig -R
I think the recommended fix is to install misc/compat12x. I was suggested to
do that in another context and it worked for me. I gave the same suggestion
to someone else with the same problem and it also worked.

Cheers,
Lorenzo Salvadore
Julian H. Stacey
2020-04-01 14:34:12 UTC
Permalink
Date: Wed, 01 Apr 2020 09:56:27 +0000
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
Post by Julian H. Stacey
Running 13.0-CURRENT with
/usr/src
cat .svn_revision 359319
cat .ctm_status src-cur 14430
/usr/ports
cat .svn_revision 529842
cat .ctm_status ports-cur 13423
After
pkg upgrade
pkg autoremove
xterm & firefox failed with
ld-elf.so.1: Shared object "libncurses.so.8" not found, required by "xterm"
cd /lib ; ln -s libncurses.so.9 libncurses.so.8 ; ldconfig -R
I think the recommended fix is to install misc/compat12x. I was suggested to
do that in another context and it worked for me. I gave the same suggestion
to someone else with the same problem and it also worked.
Cheers,
Lorenzo Salvadore
Thanks Lorenzo that worked, confirmed by
cd /lib ; mv libncurses.so.8 libncurses.so.8.jhs
cd /usr/ports/misc/compat12x ; make install ; reboot

To identify package name for others:
make package
produces
/usr/ports/packages/All/compat12x-amd64-12.1.1201000.20200220.txz
however no
ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-current/All
& I dont see
"man pkg-info"
has an option to list what's available on repository
(Eventualy I found
http://pkg.freebsd.org/FreeBSD:13:amd64/latest/All/
with
compat12x-amd64-12.1.1201000.20200220.txz
pkg install compat12x-amd64-12.1.1201000.20200220
The most recent versions of packages are already installed
Which confirms the pkg name.)

Suggestion: to man pkg-info we should add to SEE ALSO http://pkg.freebsd.org

Cheers
--
Julian Stacey, Consultant Systems Engineer, BSD Linux http://berklix.com/jhs/
UK stole 750,000 votes from EU Brits: http://stolenvotes.uk
http://petition.parliament.uk/petitions/300059 http://berklix.uk/brexit/#russia
http://berklix.eu/corona/#brexit Delay Brexit 31 Dec 2020 better fight Corona.
Lorenzo Salvadore via freebsd-ports
2020-04-01 15:28:20 UTC
Permalink
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
Post by Julian H. Stacey
Date: Wed, 01 Apr 2020 09:56:27 +0000
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
Post by Julian H. Stacey
Running 13.0-CURRENT with
/usr/src
cat .svn_revision 359319
cat .ctm_status src-cur 14430
/usr/ports
cat .svn_revision 529842
cat .ctm_status ports-cur 13423
After
pkg upgrade
pkg autoremove
xterm & firefox failed with
ld-elf.so.1: Shared object "libncurses.so.8" not found, required by "xterm"
cd /lib ; ln -s libncurses.so.9 libncurses.so.8 ; ldconfig -R
I think the recommended fix is to install misc/compat12x. I was suggested to
do that in another context and it worked for me. I gave the same suggestion
to someone else with the same problem and it also worked.
Cheers,
Lorenzo Salvadore
Thanks Lorenzo that worked, confirmed by
cd /lib ; mv libncurses.so.8 libncurses.so.8.jhs
cd /usr/ports/misc/compat12x ; make install ; reboot
make package
produces
/usr/ports/packages/All/compat12x-amd64-12.1.1201000.20200220.txz
however no
ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-current/All
& I dont see
"man pkg-info"
has an option to list what's available on repository
(Eventualy I found
http://pkg.freebsd.org/FreeBSD:13:amd64/latest/All/
with
compat12x-amd64-12.1.1201000.20200220.txz
pkg install compat12x-amd64-12.1.1201000.20200220
The most recent versions of packages are already installed
Which confirms the pkg name.)
Please note however that in most cases you should not need compat12x.
What is normally needed is to rebuild all the ports that depend on ncurses
on your system. When this is not possible, for example because instead of using
ports you use an out of date package repository that you cannot update or
because you install a port that needs "hand made" packages (such as
i386-wine or i386-wine-devel), then you need compat12x.

It seems xterm and firefox are up to date in the official repository:
http://pkg.freebsd.org/FreeBSD:13:amd64/latest/All/ . I do not know how the
ports are built, it might be that they use some "hand made" packages.

Lorenzo Salvadore
Dimitry Andric
2020-04-01 18:01:35 UTC
Permalink
Post by Julian H. Stacey
Running 13.0-CURRENT with
/usr/src
cat .svn_revision 359319
cat .ctm_status src-cur 14430
/usr/ports
cat .svn_revision 529842
cat .ctm_status ports-cur 13423
After
pkg upgrade
pkg autoremove
xterm & firefox failed with
ld-elf.so.1: Shared object "libncurses.so.8" not found, required by "xterm"
...
Post by Julian H. Stacey
Next to look at /usr/src/
ObsoleteFiles.inc
# 20200220: Upgrade of ncurses, shlib bumped to version 9
OLD_LIBS+=lib/libncurses.so.8
Yeah, this ncurses bump was handled pretty badly, as it breaks almost
all installed ports (and a bunch of base programs too, if you are
unlucky). Isn't there any compat package for it yet?

-Dimitry
_______________________________________________
freebsd-***@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-***@freebsd.org"

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Steve Kargl
2020-04-02 06:38:26 UTC
Permalink
Yeah, this ncurses bump was handled pretty badly, as it breaks almost all
installed ports (and a bunch of base programs too, if you are unlucky).
Isn't there any compat package for it yet?
% cat /etc/libmap.conf
...
libncurses.so.8 libncurses.so.9
libncursesw.so.8 libncursesw.so.9

HTH
--
Steve
_______________________________________________
freebsd-***@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-***@freebsd.org"

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Baptiste Daroussin
2020-04-02 07:59:54 UTC
Permalink
Post by Julian H. Stacey
Running 13.0-CURRENT with
/usr/src
cat .svn_revision 359319
cat .ctm_status src-cur 14430
/usr/ports
cat .svn_revision 529842
cat .ctm_status ports-cur 13423
After
pkg upgrade
pkg autoremove
xterm & firefox failed with
ld-elf.so.1: Shared object "libncurses.so.8" not found, required by "xterm"
...
Post by Julian H. Stacey
Next to look at /usr/src/
ObsoleteFiles.inc
# 20200220: Upgrade of ncurses, shlib bumped to version 9
OLD_LIBS+=lib/libncurses.so.8
Yeah, this ncurses bump was handled pretty badly, as it breaks almost all
installed ports (and a bunch of base programs too, if you are unlucky).
Isn't there any compat package for it yet?
-Dimitry
??

When the bump occured a month ago, an UPDATING entry was added as usual to warn
everyone, a compat12x package has been created immediatly and all the packages
have been rebuilt. What else could have been done? Can you explain me what I
have badly done here?

Best regards,
Bapt
Dimitry Andric
2020-04-02 18:57:11 UTC
Permalink
Post by Baptiste Daroussin
Post by Julian H. Stacey
Running 13.0-CURRENT with
/usr/src
cat .svn_revision 359319
cat .ctm_status src-cur 14430
/usr/ports
cat .svn_revision 529842
cat .ctm_status ports-cur 13423
After
pkg upgrade
pkg autoremove
xterm & firefox failed with
ld-elf.so.1: Shared object "libncurses.so.8" not found, required by "xterm"
...
Post by Julian H. Stacey
Next to look at /usr/src/
ObsoleteFiles.inc
# 20200220: Upgrade of ncurses, shlib bumped to version 9
OLD_LIBS+=lib/libncurses.so.8
Yeah, this ncurses bump was handled pretty badly, as it breaks almost all
installed ports (and a bunch of base programs too, if you are unlucky).
Isn't there any compat package for it yet?
-Dimitry
??
When the bump occured a month ago, an UPDATING entry was added as usual to warn
everyone, a compat12x package has been created immediatly and all the packages
have been rebuilt. What else could have been done? Can you explain me what I
have badly done here?
Sorry about that, I realized that I was totally off-base here. At that
time I was simply annoyed that I had to rebuild all my ports againn, as
I mostly don't use packages. And I wasn't aware ncurses was added to
the compat12 package, I simply backed up my old ncurses.so.8
everywhere...

-Dimitry

Loading...