Compilation failure

OSS specific BSD discussion (FreeBSD/NetBSD/OpenBSD)

Moderators: hannu, dev, kodachi, cesium

Compilation failure

Postby adamk » Tue Jan 05, 2010 9:46 pm

OSS from mercurial no longer compiles on FreeBSD 9-CURRENT:

kernel/OS/FreeBSD
cc -c -O2 -pipe -D_KERNEL -O3 -fno-common -mcmodel=kernel -mno-red-zone -fno-asynchronous-unwind-tables -ffreestanding -DOSS_LITTLE_ENDIAN -I../../../include -I../../../kernel/framework/include -I../../../kernel/OS/FreeBSD -I../../../kernel/nonfree/include -I../../.. os_freebsd.c -o ../../../target/objects/os_freebsd.o
os_freebsd.c:899: error: conflicting types for 'oss_mmap'
os_freebsd.c:26: error: previous declaration of 'oss_mmap' was here
*** Error code 1
adamk
Member
 
Posts: 78
Joined: Fri Jun 11, 2004 1:50 pm

Re: Compilation failure

Postby adamk » Wed Jan 13, 2010 4:13 pm

Anyone?

Adam
adamk
Member
 
Posts: 78
Joined: Fri Jun 11, 2004 1:50 pm

Re: Compilation failure

Postby adamk » Fri Jan 22, 2010 12:34 am

FYI, it does compile properly on 8.0-RELEASE, just not 9.0-CURRENT.

Adam
adamk
Member
 
Posts: 78
Joined: Fri Jun 11, 2004 1:50 pm

Re: Compilation failure

Postby cesium » Sun Jan 31, 2010 1:43 pm

There's a fix here. I'll try to get to mercurial too.
cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

Re: Compilation failure

Postby adamk » Tue Feb 02, 2010 1:40 am

Thanks, I can confirm that those patches work here.

Adam
adamk
Member
 
Posts: 78
Joined: Fri Jun 11, 2004 1:50 pm


Return to BSD

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest