You are not logged in.

#1 2009-07-12 02:35:11

climatewarrior
Member
Registered: 2009-04-23
Posts: 23

32 bit aoss, alsa-oss, problem in arch 64

I need the 32 bit version of alsa-oss to be able to use it with wine because I can't use 32 bit binaries with 32 bit wine. I found this and outdated package for it on aur http://aur.archlinux.org/packages.php?ID=12815 and updated it. This was my attempt at  putting it up to date.

# Contributor: vogo <vogo@seznam.cz>                                                              
# Contributor: imachine <m.jedrasik@gmail.com>                                                    
pkgname=lib32-alsa-oss                                                                            
pkgname32=alsa-oss                                                                                
pkgver=1.0.17                                                                                     
pkgrel=1                                                                                          
pkgrel32=1                                                                                        
pkgdesc="OSS compatibility library"                                                               
arch=('x86_64')                                                                                   
url="http://www.alsa-project.org"                                                                 
license=('GPL')                                                                                   
depends=('lib32-glibc' 'lib32-alsa-lib>=1.0.14')                                                  
install=()                                                                                        
source=("ftp://ftp.archlinux.org/extra/os/i686/$pkgname32-$pkgver-$pkgrel32-i686.pkg.tar.gz" )
#md5sums=('4b63d464af386183ce1c2816f5a3f1b6'
#         '3392be901ee57b568508d5c9c224e3ef')
#sha1sums=('ec92f7ffa52c99e7d8263f2427fe937809dc6495'
#          '3ac023471cc527c40b5f395d1548d86084a856be')


build() {
  mkdir -p $startdir/pkg/opt/lib32/usr/lib
  cp -rPfp $startdir/src/usr/lib $startdir/pkg/opt/lib32/usr
  install -Dm755 $startdir/src/usr/bin/aoss $startdir/pkg/usr/bin/aoss32
}

Then I went ahead and built it and installed it. It put the libaoss.so in the right place, /opt/lib32/usr/lib/libaoss.so. Then I set LD_PRELOAD to that path but I'm getting this error.

ERROR: ld.so: object '/opt/lib32/usr/lib/libaoss.so' from LD_PRELOAD cannot be preloaded: ignored

sad This problem has drained many hours from me. I'm starting to be tempted to just use that evil proprietary operating system on virtual box. But it would be much better if I could run this app on wine. Any help or tips are appreciated. Thanks in advence smile

Offline

#2 2009-07-12 07:36:53

djszapi
Member
From: Cambridge, United Kingdom
Registered: 2009-06-14
Posts: 1,439
Website

Re: 32 bit aoss, alsa-oss, problem in arch 64

Can it work in 'native'environment ? If you try with /usr/lib instead of opt ?

A bit cleaner PKGBUILD for it.

# Contributor: vogo <vogo@seznam.cz>                                                              
# Contributor: imachine <m.jedrasik@gmail.com>                                                    
pkgname=lib32-alsa-oss                                                                            
pkgname32=alsa-oss                                                                                
pkgver=1.0.17                                                                                     
pkgrel=1                                                                                          
pkgrel32=1                                                                                        
pkgdesc="OSS compatibility library"                                                               
arch=('x86_64')                                                                                   
url="http://www.alsa-project.org"                                                                 
license=('GPL')                                                                                   
depends=('lib32-glibc' 'lib32-alsa-lib>=1.0.14')                                                  
install=()                                                                                        
source=(ftp://ftp.archlinux.org/extra/os/i686/$pkgname32-$pkgver-$pkgrel32-i686.pkg.tar.gz)
md5sums=('0e1750da67e20aff2b50ff70e578182d')

build() {
  mkdir -p ${pkgdir}/opt/lib32/usr/lib
  cp -rPfp $startdir/src/usr/lib $startdir/pkg/opt/lib32/usr
  install -Dm755 ${srcdir}/usr/bin/aoss ${pkgdir}/usr/bin/aoss32
}

Generally, if it's possible you should choose http mirror instead of ftp.

If you can correct the PKGBUILD you can take a request in the aur-general maillist for a TU to orphan it, and you can adopt it, if you would like.

Offline

#3 2009-07-13 17:05:59

climatewarrior
Member
Registered: 2009-04-23
Posts: 23

Re: 32 bit aoss, alsa-oss, problem in arch 64

It didnt work for me on the "native" environment sad

Offline

#4 2009-07-13 22:14:37

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,358

Re: 32 bit aoss, alsa-oss, problem in arch 64

If you're concerned primarily with running wine, why not try a chroot? That means you can basically just use alsa-oss without any lib32 packages. Wiki has pretty specific directions.

Sorry, am not able to assist with the lib32 package.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#5 2009-07-14 18:35:40

ghostHack
Member
From: Bristol UK
Registered: 2008-02-29
Posts: 261

Re: 32 bit aoss, alsa-oss, problem in arch 64

climatewarrior wrote:

Then I went ahead and built it and installed it. It put the libaoss.so in the right place, /opt/lib32/usr/lib/libaoss.so. Then I set LD_PRELOAD to that path but I'm getting this error.

You probably want LD_LIBRARY_PATH not LD_PRELOAD,

man ld.so wrote:

LD_LIBRARY_PATH
          A colon-separated list of directories in which to search for ELF
          libraries  at  execution-time.   Similar to the PATH environment
          variable.

       LD_PRELOAD
          A whitespace-separated list of additional,  user-specified,  ELF
          shared  libraries  to  be loaded before all others.  This can be
          used  to    selectively  override  functions   in    other    shared
          libraries.   For    setuid/setgid  ELF binaries, only libraries in
          the standard search directories that are    also  setgid  will  be
          loaded.

Offline

#6 2009-07-14 20:25:21

schuay
Package Maintainer (PM)
From: Austria
Registered: 2008-08-19
Posts: 564

Re: 32 bit aoss, alsa-oss, problem in arch 64

upping the PKGBUILDs version number to 1.0.17, then starting an app using

LD_PRELOAD=/opt/lib32/usr/lib/libaoss.so aoss wine .wine/drive_c/PvZ/Plants\ vs.\ Zombies/PlantsVsZombies.exe

works for me

Offline

Board footer

Powered by FluxBB