|
From: CM <mon...@gm...> - 2006-09-24 06:12:55
|
On 9/23/06, Ethan A Merritt <merritt@u.washington.edu> wrote: > > On Saturday 23 September 2006 07:46 pm, CM wrote: > > I'm sorry. I should have provided more information. > > > > Version of GNUPlot: > > > > 4.0 (from fink on Tiger, MacBook Pro) > > 4.1 (from cvs today, same platform) > > > > gamma(x) is returning all negative values, and very, very large ones at > > that. > > Could you please check for compiler warnings or errors during the > build. In particular, look to see if any variant of the > gamma function is mentioned in connection with a message on the > order of "implicit declaration of built-in function 'lgamma'". > But please report all warnings or errors. Here is all of the stderr output (minus the last obvious stuff) that might be relevant, but appears not to be anyway: set.c: In function 'set_mouse': set.c:2309: warning: pointer targets in passing argument 2 of 'map_position' differ in signedness set.c:2309: warning: pointer targets in passing argument 3 of 'map_position' differ in signedness /usr/bin/ld: warning multiple definitions of symbol _init_color color.o definition of _init_color in section (__TEXT,__text) /sw/lib/libncurses.dylib(lib_color.o) definition of _init_color /usr/bin/ld: warning multiple definitions of symbol _set_term term.o definition of _set_term in section (__TEXT,__text) /sw/lib/libncurses.dylib(lib_set_term.o) definition of _set_term Also please look in the file config.h created while preparing > the cvs distribution and tell us whether HAVE_LGAMMA is defined or > commented out. HAVE_LGAMMA is defined to be 1, not commented out. The config output indicates that both "gamma" and "lgamma" are found, but the log says this: configure:8466: checking for gamma configure:8522: gcc -o conftest -g -O2 -I/usr/X11R6/include conftest.c >&5 conftest.c:94: warning: conflicting types for built-in function 'gamma' configure:8528: $? = 0 configure:8535: test -z "$ac_c_werror_flag" || test ! -s conftest.err configure:8538: $? = 0 configure:8545: test -s conftest configure:8548: $? = 0 configure:8562: result: yes configure:8466: checking for lgamma configure:8522: gcc -o conftest -g -O2 -I/usr/X11R6/include conftest.c >&5 conftest.c:95: warning: conflicting types for built-in function 'lgamma' configure:8528: $? = 0 configure:8535: test -z "$ac_c_werror_flag" || test ! -s conftest.err configure:8538: $? = 0 configure:8545: test -s conftest configure:8548: $? = 0 configure:8562: result: yes In other words, it finds them, but gets some interesting warnings. - C |