Subject: ermixer: undefined reference to `_oss_ioctl'
To: None <tech-pkg@netbsd.org>
From: ptiJo <ptiJo@noos.fr>
List: tech-pkg
Date: 08/08/2003 22:28:30
Hi,

trying to port ermixer, everything is mostly done expect the following
(linking ?) problem :

source='interface.c' object='interface.o' libtool=no
depfile='.deps/interface.Po' tmpdepfile='.deps/interface.TPo'
depmode=gcc /bin/sh ../depcomp  cc -DHAVE_CONFIG_H -I. -I. -I..
-I/usr/pkg/include   -c `test -f 'interface.c' || echo './'`interface.c
source='engine.c' object='engine.o' libtool=no
depfile='.deps/engine.Po' tmpdepfile='.deps/engine.TPo'  depmode=gcc
/bin/sh ../depcomp  cc -DHAVE_CONFIG_H -I. -I. -I..
-I/usr/pkg/include   -c `test -f 'engine.c' || echo './'`engine.c
c++  -O2 -I/usr/pkg/include  -Wl,-R/usr/pkg/lib -L/usr/pkg/lib  -o
ermixer -lmenu -lncurses utils.o main.o  line.o interface.o  engine.o  
engine.o: In function `initMask':
engine.o(.text+0x56): undefined reference to `_oss_ioctl'
engine.o(.text+0x84): undefined reference to `_oss_ioctl'
engine.o(.text+0xb0): undefined reference to `_oss_ioctl'
engine.o(.text+0xdc): undefined reference to `_oss_ioctl'
engine.o: In function `readFromDevice':
engine.o(.text+0x143): undefined reference to `_oss_ioctl'
engine.o(.text+0x1d2): more undefined references to `_oss_ioctl' follow
*** Error code 1

Stop.

the description (in engine.c) is:
int initMask()
{
  if((ioctl(mixer_fd, SOUND_MIXER_READ_RECSRC, &recscr)) == ERROR)
    return ERROR;

  if((ioctl(mixer_fd, SOUND_MIXER_READ_RECMASK, &recmask)) == ERROR)
    return ERROR;

  if((ioctl(mixer_fd, SOUND_MIXER_READ_DEVMASK, &devmask)) == ERROR)
    return ERROR;

  if((ioctl(mixer_fd, SOUND_MIXER_READ_STEREODEVS, &stereomask)) ==
ERROR)
    return ERROR;

  return SUCCESS;
}

I just don't know enough about driver coding to get what's wrong :(
Can someone help me pliz ?

thX a lot,
	Jo