Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Changed openssl ABI: OpenSSL version mismatch.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
schmittlauch
n00b
n00b


Joined: 12 Sep 2014
Posts: 23

PostPosted: Tue Jan 27, 2015 8:21 am    Post subject: [SOLVED] Changed openssl ABI: OpenSSL version mismatch. Reply with quote

I changed the useflag of openssl to -bindist which changed the ABI of it. Now many programs gave the following error message:
Code:
OpenSSL version mismatch. Built against 10002003, you have 100010bf

e.g
Code:
$ ssh foo@bar
OpenSSL version mismatch. Built against 10002003, you have 100010bf


I already tried revdep-rebuild, but it didn't find any packages to reemerge. Furthermore I tried manually reemerging ssh which also didn't help. How can I rebuild the programs relying on openssl to use the new ABI?

regards


Last edited by schmittlauch on Wed Jan 28, 2015 10:18 pm; edited 1 time in total
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3922
Location: Hamburg

PostPosted: Tue Jan 27, 2015 10:40 am    Post subject: Reply with quote

Code:
emerge --changed-use
you should look for
Back to top
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8708
Location: ~Brussels - Belgique

PostPosted: Tue Jan 27, 2015 10:46 am    Post subject: Reply with quote

and
Code:
emerge @preserved-rebuild


If there are still problems, find the openssl "clients" with equery.
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Tue Jan 27, 2015 12:36 pm    Post subject: Reply with quote

toralf wrote:
Code:
emerge --changed-use

toralf ... that will only find those packages with the 'bindist' use change, not those packages built against openssl requiring a rebuild.

xaviermiller wrote:
Code:
emerge @preserved-rebuild

@xaviermiller ... I'm not sure that will pick up anything because the soname will be the same.

xaviermiller wrote:
If there are still problems, find the openssl "clients" with equery.

ummm ... the following should cover those packages with an explict +ssl. Though I'm confused, because the poster stated that openssh had been rebuilt but still recieved the warning, so ...

Code:
# emerge --ask --oneshot $(for p in $(equery -q hasuse ssl); do echo $p: $(equery -q uses $p) ; done | awk '/+ssl/{gsub(/:/,"") ; print "="$1}')

best ... khay

edit: fixed


Last edited by khayyam on Tue Jan 27, 2015 1:06 pm; edited 1 time in total
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3922
Location: Hamburg

PostPosted: Tue Jan 27, 2015 1:05 pm    Post subject: Reply with quote

khayyam wrote:
toralf wrote:
Code:
emerge --changed-use

toralf ... that will only find those packages with the 'bindist' use change, not those packages built against openssl requiring a rebuild.
best ... khay
*head smack* you're right
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 2158
Location: Berlin, Germany

PostPosted: Tue Jan 27, 2015 3:43 pm    Post subject: Reply with quote

You can use revdep-rebuild to fix this, but it will find only broken dynamic links by default and not ABI problems. So you have to explicitly pass the library that broke.
Code:
# revdep-rebuild --library libcrypto.so.1.0.0
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Wed Jan 28, 2015 9:19 pm    Post subject: Reply with quote

I don't know what got me thinking of using equery for the above, the following is probably far better:

Code:
# emerge --ask --oneshot $(eix '-I*' --installed-with-use ssl --format '=<installedversions:NAMEVERSION>')

Though chithanh's use of '--library' is probably the simplest, and cleanest, method.

best ... khay
Back to top
View user's profile Send private message
schmittlauch
n00b
n00b


Joined: 12 Sep 2014
Posts: 23

PostPosted: Wed Jan 28, 2015 9:50 pm    Post subject: Reply with quote

chithanh's idea worked. It rebuilt many packages, but now they're properly linked together. Thanks to everybody who gave me an advice.

Is there anything I have to do? Thank chithanh for his answer/give him credit, close the topic?
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Wed Jan 28, 2015 10:13 pm    Post subject: Reply with quote

schmittlauch wrote:
Is there anything I have to do? Thank chithanh for his answer/give him credit, close the topic?

schmittlauch ... generally you would add "[SOLVED]" to the subject (edit the first post). Other than that nothing need be done, you've stated things are now fixed, thanked people, etc ... mark as [SOLVED] and we're done.

best ... khay
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum