DaemonForums  

Go Back   DaemonForums > NetBSD > NetBSD Package System (pkgsrc)

NetBSD Package System (pkgsrc) Installation and upgrading of packages on NetBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 7th January 2016
DaBSD DaBSD is offline
Shell Scout
 
Join Date: Jan 2013
Location: Russia/Iceland
Posts: 99
Default Problem with 32bit Linux emul on a 64bit OS

I'm running NetBSD 7.0 (amd64). Having installed lots of different packages I noticed that some of them brought in 32 bit linux emulation (suse32-* packages). It prevents programs that require Linux layer, compiled from pkgsrc or pkgsrc-wip (like Skype) from counteracting with 64bit libraries, found otherwise in the system. I corrected respective record in /etc/fstab

Code:
procfs		/usr/pkg/emul/linux32/proc
to
Code:
procfs		/usr/pkg/emul/linux/proc
but it didn't help. When I f.ex. run Skype, I get the following error, which is clearly signaling discrepancy between 32 and 64 binaries:

Code:
bash-4.3$ skype
/usr/pkg/share/skype/skype: error while loading shared libraries: libgstapp-0.10.so.0: wrong ELF class: ELFCLASS64
How can I get rid of that 32bit emulation (and how did I get it at all, installing everything 64 bit)?
Reply With Quote
  #2   (View Single Post)  
Old 7th January 2016
shep shep is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,049
Default

Depending on how well the NetBSD package manager works you could remove one of the core suse32 packages and then run # pkgin autoremove to delete the orphaned dependencies.

The other thing to try is to search your installed packages for "bin"s (binary).
$ pkgin list | grep bin should parse out linux binary packages.

libreoffice4-bin will pull in linux emulation.
Reply With Quote
  #3   (View Single Post)  
Old 7th January 2016
pygope pygope is offline
Port Guard
 
Join Date: Apr 2015
Posts: 32
Default emulation linux 32

Skype needs linux 32 emulation. See
HTML Code:
http://pkgsrc.se/wip/skype4
At least you need suse_131_32_gstreamer, which provides libgstapp-0.10.so.0. And maybe several more suse 32 emulation packages.

I am not sure, but why cannot the two procfs lines you posted be together in /etc/fstab?

The fact that you are running an amd64 system doesn't mean that you don't need linux 32 emulation for an specific application.
Reply With Quote
  #4   (View Single Post)  
Old 9th January 2016
DaBSD DaBSD is offline
Shell Scout
 
Join Date: Jan 2013
Location: Russia/Iceland
Posts: 99
Default

Quote:
Originally Posted by pygope View Post
Skype needs linux 32 emulation. See
HTML Code:
http://pkgsrc.se/wip/skype4
At least you need suse_131_32_gstreamer, which provides libgstapp-0.10.so.0. And maybe several more suse 32 emulation packages.
Yes, I do have the whole bunch of suse_32 packages, but I still get that error. I don't have "suse_131_32_gstreamer" but I have "suse32_gstreamer-13.1nb2" it refers to. Seems that this 32 vs. 64 thing is not very well working for that package.
Reply With Quote
  #5   (View Single Post)  
Old 9th January 2016
DaBSD DaBSD is offline
Shell Scout
 
Join Date: Jan 2013
Location: Russia/Iceland
Posts: 99
Default

P.S. The library file libgstapp-0.10.so.0 was 64bit indeed. I replaced it with a 32 bit one from pkgsrc directory and the load process went on. However, it stopped at this stage:

Gtk-Message: Failed to load module "canberra-gtk-module"
Gtk-Message: Failed to load module "gnomebreakpad"

... but that's already another story...
Reply With Quote
  #6   (View Single Post)  
Old 9th January 2016
pygope pygope is offline
Port Guard
 
Join Date: Apr 2015
Posts: 32
Default

Could you tell me the result of running:
Code:
pkgfind -P libgstapp
Reply With Quote
  #7   (View Single Post)  
Old 9th January 2016
DaBSD DaBSD is offline
Shell Scout
 
Join Date: Jan 2013
Location: Russia/Iceland
Posts: 99
Default

Code:
bash-4.3# pkgfind -P libgstapp
multimedia/gst-plugins0.10-base: Base plugins
multimedia/gst-plugins1-base: Base plugins
Reply With Quote
  #8   (View Single Post)  
Old 10th January 2016
kamil kamil is offline
Fdisk Soldier
 
Join Date: Mar 2015
Posts: 52
Default

Skype won't work as it is. You need to upgrade the futex subsystem in linux_compat(8).

Upgrde = do devel work.
__________________
the dogs bark, but the caravan goes on
Reply With Quote
  #9   (View Single Post)  
Old 11th January 2016
DaBSD DaBSD is offline
Shell Scout
 
Join Date: Jan 2013
Location: Russia/Iceland
Posts: 99
Default

OK, I've already put up with the fact that Skype won't be working, it always starts with a crash. Upgrading the futex subsystem is something beyond my skills, but would love to read more about it.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
sysctl: third level name kern.emul.linux in kern.emul is invalid daemonfowl OpenBSD General 6 7th October 2013 04:22 PM
Updating /emul/linux after fedora_base daemonfowl OpenBSD Installation and Upgrading 2 15th January 2013 02:55 PM
FreeBSD 32bit vs 64bit on machine with 2GB memory J65nko FreeBSD General 5 21st February 2012 10:47 AM
[Solved] 64bit COMPAT_LINUX not enabled? xchris OpenBSD General 2 7th December 2011 12:52 PM
Installing 64bit from scratch on a 32bit live system an0r0c FreeBSD Installation and Upgrading 1 11th May 2008 04:16 AM


All times are GMT. The time now is 04:57 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick