chicken-users
[Top][All Lists]
Advanced

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

[Chicken-users] Re: mathh trouble


From: Kon Lovett
Subject: [Chicken-users] Re: mathh trouble
Date: Thu, 22 Jun 2006 13:03:03 -0700

On Jun 22, 2006, at 2:06 AM, felix winkelmann wrote:

Hi!

% chicken-setup
cp -r mathh-constants.scm /usr/local/lib/chicken/1/mathh- constants.scm
 /usr/local/bin/csc -feature compiling-extension -O2 -d1 -s mathh.scm
-o mathh.so -check-imports -emit-exports mathh.exports
mathh.c: In function `stub107':
mathh.c:34: warning: implicit declaration of function `fpclassify'
mathh.c:35: error: `FP_INFINITE' undeclared (first use in this function)
mathh.c:35: error: (Each undeclared identifier is reported only once
mathh.c:35: error: for each function it appears in.)
mathh.c:38: error: `FP_NAN' undeclared (first use in this function)
mathh.c:41: error: `FP_NORMAL' undeclared (first use in this function)
mathh.c:44: error: `FP_SUBNORMAL' undeclared (first use in this function)
mathh.c:47: error: `FP_ZERO' undeclared (first use in this function)
mathh.c: In function `stub75':
mathh.c:139: warning: implicit declaration of function `log2'
mathh.c: In function `stub60':
mathh.c:163: warning: implicit declaration of function `tgamma'
*** Shell command terminated with exit status 1: gcc mathh.c -o
mathh.o -c -DHAVE_CHICKEN_CONFIG_H -g -Wall -Wno-unused -Wno-undefined
-DC_ENABLE_PTABLES -DC_STACK_GROWS_DOWNWARD=1
-DC_INSTALL_LIB_HOME="/usr/local/lib/chicken/1"
-DC_INSTALL_HOME="/usr/local/share/chicken" -DC_USE_C_DEFAULTS -fPIC
-DPIC -DC_SHARED -DC_NO_PIC_NO_DLL
Error: shell invocation failed with non-zero return status
"/usr/local/bin/csc -feature compiling-extension -O2 -d1 -s mathh.scm
-o mathh....
1

Apparently the man pages fpclassify exists and is C99. There where times
when one could at least rely on what the man pages say...

fpclassify proved problematic (not available on windows anyway, has _fpclass function) so removed to experimental file "fpclassify.scm" (in svn but not egg)

The log2 & tgamma messages above indicate neither is available on your platform. Chgd to not use 'log2' & use 'gamma' instead of 'tgamma' (which probably is available).

Try it now.

Sorry,
Kon

P.S. started down the path of autoconf but windows you know...



cheers,
felix





reply via email to

[Prev in Thread] Current Thread [Next in Thread]