jayduhon / inferno-os

Automatically exported from code.google.com/p/inferno-os
2 stars 0 forks source link

utils/libmach/qdb.c compilation error for openbsd due to qdiv() #245

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. try to compile latest inferno on openbsd.

What is the expected output? What do you see instead?
compilation fails on utils/libmach/qdb.c.

it contains a definition of qdiv.  openbsd also has a symbol with that name in 
/usr/include/stdlib.h.

the qdiv in utils/libmach/qdb.c was renamed to qmuldiv in revision 
135:691d0a7a1ef1, but with april 2010's revision 416:aa36ea96995c the symbol is 
again named qdiv and compilation fails again.

btw, inferno does not work properly (at all) on the latest openbsd release 
(4.8).  something seems wrong with openbsd's rfork, i'm investigating that.

Please use labels and text to provide additional information.

an old issue ticket may exist with the original report.

Original issue reported on code.google.com by mechiel@ueber.net on 10 Jan 2011 at 9:10

GoogleCodeExporter commented 9 years ago
utils/libmach/qdb.c
committed changeset 476:345359f9f694

Original comment by Charles....@gmail.com on 10 Jan 2011 at 9:24