[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[altq:2016] Errors with math.h log function



Hi!
I programmed a new queuing discipline and I've been trying to compile it unsuccessfully. This discipline requires some math functions to be configured properly but when compiled, I get the following error from the math.h library:


In file included from ../../altq/altq_ario.c:100:
../../../include/math.h:93: conflicting types for `log'
../../sys/systm.h:123: previous declaration of `log'
../../../include/math.h:93: warning: redundant redeclaration of `log' in
same scope
../../sys/systm.h:123: warning: previous declaration of `log'
../../../include/math.h:111: warning: function declaration isn't a prototype
../../altq/altq_ario.c: In function `ario_alloc':
../../altq/altq_ario.c:459: warning: implicit declaration of function `expf'
*** Error code 1


Seems like the log function is redefined but when compiling other programs using math.h I get no errors. Does anyone know what could be happennig and what's needed in order to compile the code?

Thanks

Rodolfo Cartas
ITAM, Mexico