Page 1 of 1

ossv4 2019 failed to build

Posted: Wed Dec 18, 2019 4:24 am
by adcdam
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?

Re: ossv4 2019 failed to build

Posted: Fri Dec 20, 2019 12:19 am
by tarik2cyprian
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

tcr

Re: ossv4 2019 failed to build

Posted: Fri Dec 20, 2019 11:53 am
by seawright
From the makedev man page:
MAKEDEV(3) Linux Programmer's Manual MAKEDEV(3)

NAME
makedev, major, minor - manage a device number

SYNOPSIS
#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.