[vorbis-dev] building under NetBSD and using /dev/audio

Jeremy C. Reed reed at reedmedia.net
Wed Feb 28 12:39:52 PST 2001



> > I believe this is caused because liboss.so is not linked against
> > libossaudio.so. My src/plugins/oss/Makefile only has -lossaudio used once
> > for ESD_LIBS. (This makes no sense -- why would this have references to
> > ESD_ which are not even used?) I tried adding -lossaudio to LIBS and 
> > CFLAGS, but it made no difference. The relevant part of my make follows:

> > How can I get the Makefile to add the necessary shared library
> > dependency?
> 
> In configure.in or Makefile.am fine the line for LDFLAGS or for LIBS,
> and add -lossaudio explicitly.  You can probably find this line in the
> Makefile as well.

Thanks for the info. What Makefile? I added -lossaudio to the LDFLAGS and
LIBS lines in the src/plugins/oss/Makefile. 

It does change the make:
 /bin/sh ../../../libtool --mode=link gcc  -O20 -D__NO_MATH_INLINES
 -fsigned-char -DAO_PLUGIN_PATH=\"/usr/local/lib/ao\" -lossaudio -o
 liboss.la -rpath /usr/local/lib/ao -export-dynamic -avoid-version
 ao_oss.lo  -lossaudio

But it doesn't work (after I do a 'make install'):

 rainier:~/src/ogg/libao-0.6.0/src/plugins/oss$ /usr/local/bin/ogg123
 --verbose -d oss -o dsp:/dev/audio ~/audio/tmbg_older.ogg
 dlerror: (null)
 dlerror: (null)
 Playing from file /home/reed/audio/tmbg_older.ogg.
 Device:   OSS audio driver output 
 Author:   Aaron Holtzman <aholtzma at ess.engr.uvic.ca>
 Comments: Outputs audio to the Open Sound System driver.

 /usr/local/lib/ao/liboss.so: Undefined PLT symbol "_oss_ioctl" (reloc
 type = 7, symnum = 13)

If I try to build manually (no Makefile), I receive the following warning:

rainier:~/src/ogg/libao-0.6.0/src/plugins/oss$ /bin/sh ../../../libtool
--mode=link gcc  -O20 -D__NO_MATH_INLINES -fsigned-char
-DAO_PLUGIN_PATH=\"/usr/local/lib/ao\" -lossaudio -o liboss.la -rpath
/usr/local/lib/ao -export-dynamic -avoid-version ao_oss.lo  -lossaudio
rm -fr .libs/liboss.la .libs/liboss.* .libs/liboss.*

*** Warning: inter-library dependencies are not known to be supported.
*** All declared inter-library dependencies are being dropped.
*** The inter-library dependencies that have been dropped here will be
*** automatically added whenever a program is linked with this library
*** or is declared to -dlopen it.
/usr/bin/ld -Bshareable  ao_oss.lo   -o .libs/liboss.so.0.0
(cd .libs && rm -f liboss.so.0 && ln -s liboss.so.0.0 liboss.so.0)
(cd .libs && rm -f liboss.so && ln -s liboss.so.0.0 liboss.so)
(cd .libs && rm -f liboss.so && ln -s liboss.so.0.0 liboss.so)
creating liboss.la
(cd .libs && rm -f liboss.la && ln -s ../liboss.la liboss.la)

I am not sure what this warning means exactly. Hopefully, I can figure out
how to link -lossaudio to the liboss.so.

   Jeremy C. Reed
   http://www.reedmedia.net/

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Vorbis-dev mailing list