ossv4 2019 failed to build

OSS specific Linux discussion (x86/amd64)

Moderators: hannu, dev, cesium

New Member
Posts: 4
Joined: Wed Dec 18, 2019 4:03 am
Sound Card: asus xonar
OS: gentoo

ossv4 2019 failed to build

Postby adcdam » Wed Dec 18, 2019 4:24 am

Hi im using Gentoo i tried to build ossv4.2 2019 but i got this after
make build
i followed this guide
http://ossnext.trueinstruments.com/wiki ... rom_source

Code: Select all

ossdetect.c: En la función ‘create_devlinks’:
ossdetect.c:555:31: aviso: declaración implícita de la función ‘makedev’ [-Wimplicit-function-declaration]
       if (mknod (dev, node_m, makedev (major, minor)) == -1)
cc -O -s -o ../../../target/sbin/ossdetect ./ossdetect.o   
./ossdetect.o: En la función `main':
ossdetect.c:(.text+0x108f): referencia a `makedev' sin definir
collect2: error: ld devolvió el estado de salida 1
make[3]: *** [Makefile:34: ../../../target/sbin/ossdetect] Error 1
make[3]: se sale del directorio '/home/dam2/oss/os_cmd/Linux/ossdetect'
make[2]: *** [../../make.defs:11: subdirs] Error 1
make[2]: se sale del directorio '/home/dam2/oss/os_cmd/Linux'
make[1]: *** [../make.defs:11: subdirs] Error 1
make[1]: se sale del directorio '/home/dam2/oss/os_cmd'
make: *** [make.defs:11: subdirs] Error 1

how do i solve this?

Posts: 29
Joined: Thu Jan 24, 2013 7:04 pm

Re: ossv4 2019 failed to build

Postby tarik2cyprian » Fri Dec 20, 2019 12:19 am

Hello adcdam,

If the link that you provided is not working for building OSSv4 from source,

You could take at look at Matti's example by clicking hear http://ossnext.trueinstruments.com/forum/viewtopic.php?f=3&t=5324&p=20387&hilit=I+make+my+own+packages+of+OSSv4#p20387

Best Regards


Known Member
Posts: 109
Joined: Sat Jan 06, 2007 9:10 pm
Location: Hampshire UK

Re: ossv4 2019 failed to build

Postby seawright » Fri Dec 20, 2019 11:53 am

From the makedev man page:
MAKEDEV(3) Linux Programmer's Manual MAKEDEV(3)

makedev, major, minor - manage a device number

#include <sys/sysmacros.h>

dev_t makedev(unsigned int maj, unsigned int min);

unsigned int major(dev_t dev);
unsigned int minor(dev_t dev);

Add "#include <sys/sysmacros.h" to the list of includes in os_cmd/Linux/ossdetect/ossdetect.c
or use the source code from git://opensound.git.sourceforge.net/git ... /opensound (using git clone) which already contains this line.

Return to “Linux”

Who is online

Users browsing this forum: No registered users and 6 guests