[Vm-dev] Cog on linux

Rob Withers reefedjib at yahoo.com
Sat Jul 17 18:37:09 UTC 2010


Hi Eliot,

I got this output from configure.  There is no line "******** disabling 
vm-sound-ALSA"

Rob


checking for custom display support... no
******** disabling vm-display-custom
checking linux/fb.h usability... yes
checking linux/fb.h presence... yes
checking for linux/fb.h... yes
******** disabling vm-display-Quartz
checking for X... libraries , headers
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... no
checking for XOpenDisplay in -lX11... yes
checking for XShmAttach in -lXext... yes
checking GL/gl.h usability... yes
checking GL/gl.h presence... yes
checking for GL/gl.h... yes
checking for glIsEnabled in -lGL... no
checking for Advanced Linux Sound Architecture... yes
checking for custom sound support... no
******** disabling vm-sound-custom
checking for Mac OS X CoreAudio... no
******** disabling vm-sound-MacOSX
checking for Network Audio System... no
******** disabling vm-sound-NAS
checking for Open Sound System... yes
checking for SunOS/Solaris audio... no
******** disabling vm-sound-Sun
checking for MIDI support via ALSA... yes
checking util.h usability... no
checking util.h presence... no
checking for util.h... no
checking libutil.h usability... no
checking libutil.h presence... no
checking for libutil.h... no
checking pty.h usability... yes
checking pty.h presence... yes
checking for pty.h... yes
checking stropts.h usability... yes
checking stropts.h presence... yes
checking for stropts.h... yes
checking for library containing openpty... -lutil
******** disabling PyBridge
checking for FFI support... requires libffi
checking ffi.h usability... no
checking ffi.h presence... no
checking for ffi.h... no
******** disabling SqueakFFIPrims
checking for unsetenv... yes
checking for UUID support... yes
checking for uuid_generate in -luuid... yes
checking for XOpenDisplay in -lX11... (cached) yes
******** disabling vm-sound-OSS
******** disabling vm-display-fbdev


--------------------------------------------------
From: "Rob Withers" <reefedjib at yahoo.com>
Sent: Saturday, July 17, 2010 2:18 PM
To: "Squeak Virtual Machine Development Discussion" 
<vm-dev at lists.squeakfoundation.org>
Subject: Re: [Vm-dev] Cog on linux

>
> Eliot,
>
> It is still giving me an ALSA error.  Here is my call to configure and 
> make:
>
> ../../platforms/unix/config/configure --without-vm-sound-ALSA --without-vm-sound-OSS 
>  --without-vm-display-fbdev --without-npsqueak CC="gcc -m32" 
> CFLAGS="-g -O2 -msse2 -D_GNU_SOURCE -DNDEBUG -DITIMER_HEARTBEAT=1 -DNO_VM_PROFILE=1 
>  -DCOGMTVM=0" LIBS=-lpthread
>
> make install prefix=/home1/vawhigso/public_html/squeakelib/Cog/Cog
>
> I find it best to delete the entire unixbuild directory and untar it fresh 
> from the tarball.
>
> Thanks,
> Rob
>
> Error:
>
> /bin/sh 
> /home1/vawhigso/public_html/squeakelib/Cog/unixbuild/bld/libtool --mode=compile 
> gcc -m32 -g -O2 -msse2 -D_GNU_SOURCE -DNDEBUG -DITIMER_HEARTBEAT=1 -DNO_VM_PROFILE=1 
>  -DCOGMTVM=0 -msse -DLSB_FIRST=1  -DHAVE_CONFIG_H  -I/home1/vawhigso/public_html/squeakelib/Cog/unixbuild/bld 
>  -I/home1/vawhigso/public_html/squeakelib/Cog/unixbuild/bld -I/home1/vawhigso/public_html/squeakelib/Cog/platforms/unix/vm 
>  -I/home1/vawhigso/public_html/squeakelib/Cog/platforms/Cross/vm -I/home1/vawhigso/public_html/squeakelib/Cog/src/vm 
>  -c -o sqUnixSoundALSA.lo 
> /home1/vawhigso/public_html/squeakelib/Cog/platforms/unix/vm-sound-ALSA/sqUnixSoundALSA.c
> gcc -m32 -g -O2 -msse2 -D_GNU_SOURCE -DNDEBUG -DITIMER_HEARTBEAT=1 -DNO_VM_PROFILE=1 
>  -DCOGMTVM=0 -msse -DLSB_FIRST=1 -DHAVE_CONFIG_H -I/home1/vawhigso/public_html/squeakelib/Cog/unixbuild/bld 
>  -I/home1/vawhigso/public_html/squeakelib/Cog/unixbuild/bld -I/home1/vawhigso/public_html/squeakelib/Cog/platforms/unix/vm 
>  -I/home1/vawhigso/public_html/squeakelib/Cog/platforms/Cross/vm -I/home1/vawhigso/public_html/squeakelib/Cog/src/vm 
>  -c 
> /home1/vawhigso/public_html/squeakelib/Cog/platforms/unix/vm-sound-ALSA/sqUnixSoundALSA.c 
>  -fPIC -DPIC -DPIC -o sqUnixSoundALSA.o
> mv -f sqUnixSoundALSA.o sqUnixSoundALSA.lo
> /bin/sh 
> /home1/vawhigso/public_html/squeakelib/Cog/unixbuild/bld/libtool --mode=link 
> gcc -m32 -g -O2 -msse2 -D_GNU_SOURCE -DNDEBUG -DITIMER_HEARTBEAT=1 -DNO_VM_PROFILE=1 
>  -DCOGMTVM=0 -msse -DLSB_FIRST=1    -avoid-version -module -rpath 
> /home1/vawhigso/public_html/squeakelib/Cog/Cog/lib/squeak/3.9-7 -o 
> vm-sound-ALSA.la sqUnixSoundALSA.lo -lasound
> mkdir .libs
> rm -fr .libs/vm-sound-ALSA.la .libs/vm-sound-ALSA.* .libs/vm-sound-ALSA.*
> (cd . && ln -s sqUnixSoundALSA.lo sqUnixSoundALSA.o)
> gcc -m32 -shared 
> sqUnixSoundALSA.lo  -lasound  -Wl,-soname -Wl,vm-sound-ALSA -o 
> .libs/vm-sound-ALSA
> /usr/bin/ld: skipping incompatible /usr/lib64/libasound.so when searching 
> for -lasound
> /usr/bin/ld: skipping incompatible /usr/lib64/libasound.a when searching 
> for -lasound
> /usr/bin/ld: cannot find -lasound
> collect2: ld returned 1 exit status
> make[1]: *** [vm-sound-ALSA.la] Error 1
> make: *** [vm-sound-ALSA.la] Error 2
>
>
>
> From: Eliot Miranda
> Sent: Saturday, July 17, 2010 2:00 PM
> To: Squeak Virtual Machine Development Discussion
> Subject: Re: [Vm-dev] Cog on linux
>
>
>
>
>
>
>
>
> On Fri, Jul 16, 2010 at 4:37 PM, Rob Withers <reefedjib at yahoo.com> wrote:
>
>
>
>
> --------------------------------------------------
> From: "Rob Withers" <reefedjib at yahoo.com>
> Sent: Friday, July 16, 2010 7:08 PM
>
> To: "Squeak Virtual Machine Development Discussion" 
> <vm-dev at lists.squeakfoundation.org>
> Subject: Re: [Vm-dev] Cog on linux
>
>
>
>
>
>
>
>
>
>
>
> --------------------------------------------------
> From: "Levente Uzonyi" <leves at elte.hu>
>
> Sent: Friday, July 16, 2010 6:44 PM
>
> To: "Squeak Virtual Machine Development Discussion"
> <vm-dev at lists.squeakfoundation.org>
> Subject: Re: [Vm-dev] Cog on linux
>
>
>
> On Fri, 16 Jul 2010, Rob Withers wrote:
>
>
>
>
>
> --------------------------------------------------
> From: "Casey Ransberger" <casey.obrien.r at gmail.com>
> Sent: Friday, July 16, 2010 5:10 PM
> To: "Squeak Virtual Machine Development Discussion"
> <vm-dev at lists.squeakfoundation.org>
> Subject: Re: [Vm-dev] Cog on linux
>
>
>
> I think you just need libasound
>
>
>
> Ok guys, I am working on it with my webhost.  I am not sure how I can
> install an RPM on their box, so I submitted a ticket.
>
>
> Actually I don't think that any sound plugin would work, because the
> 32-bit binaries will not be available. But you don't need sound at all on
> a server, do you?
>
>
>
>
> You lost me on 32-bit binaries not being available.  I found
> alsa-lib-1.0.13.tar.bz2 and I am preparing to build it.
>
>
> My error said:
> /usr/bin/ld: skipping incompatible /usr/lib64/libasound.so when searching
> for -lasound
> /usr/bin/ld: skipping incompatible /usr/lib64/libasound.a when searching
> for -lasound
>
>
> So it looks like I need a .so and a .a file.  As rusty as I am on building
> for unix, are these static libs or shared libs?  I do need to figure out 
> how
> to cross compile to a 32bit system.  I am researching this for the right
> target.  I need i386-linux or something.  I am attaching the config.guess
> file they use for this.  Can anyone give me a helpful hand what I should
> specify doing ...
>
>      './configure --enable-shared=no --enable-static=yes --target=i386-linux'
>
>
>
> Damn!  I can't figure out how to change the install path to other than 
> /usr/include, etc.  I can't write to those directories.  I am stuck.
>
>
> Regarding your observation that I don't need sound on a server, that is 
> spot
> on.  It may be too entangled for the time being.
>
>
> Is it possible to unentangle sound?
>
>
>
> Try configuring Cog without libalsa.  e.g.
>
>
> ../../platforms/unix/config/configure --without-vm-sound-ALSA --without-vm-display-fbdev 
>  --without-npsqueak -prefix=/home/qwaq/qwaqvm/ 
> CFLAGS="-g -O1 -msse2 -D_GNU_SOURCE -DITIMER_HEARTBEAT=1 -DNO_VM_PROFILE=1 
>  -DCOGMTVM=0" LIBS=-lpthread
>
> and if you have problems with OSS sound you can disable that too
>
>
> ../../platforms/unix/config/configure --without-vm-sound-ALSA --without-vm-sound-OSS 
>  --without-vm-display-fbdev --without-npsqueak -prefix=/home/qwaq/qwaqvm/ 
> CFLAGS="-g -O1 -msse2 -D_GNU_SOURCE -DITIMER_HEARTBEAT=1 -DNO_VM_PROFILE=1 
>  -DCOGMTVM=0" LIBS=-lpthread
>
>
> that will leave you with vm-sound-null which is fine for a server.
>
> Thanks,
> Rob
>
>
>
> Cheers,
> Rob
>
>
>
> Levente
>
>
>
> Thanks,
> Rob 



More information about the Vm-dev mailing list