WineHQ
Bug Tracking Database – Bug 20293

 Bugzilla

 

Last modified: 2012-01-31 06:58:07 UTC  

undefined reference to 'isinf' int global.c, jsutils.c number.c on Solaris 10

Bug 20293 - undefined reference to 'isinf' int global.c, jsutils.c number.c on Solaris 10
undefined reference to 'isinf' int global.c, jsutils.c number.c on Solaris 10
Status: CLOSED FIXED
AppDB: Show Apps affected by this bug
Product: Wine
Classification: Unclassified
Component: jscript
1.1.30
x86 Solaris
: P2 critical
: ---
Assigned To: Mr. Bugs
: source
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2009-10-08 12:04 UTC by Daniel Vergien
Modified: 2012-01-31 06:58 UTC (History)
4 users (show)

See Also:
Regression SHA1:
Fixed by SHA1: a774152f1ad87db57787102620722384dcf9c329
Distribution: ---
Staged patchset:


Attachments
config.log (987.18 KB, text/plain)
2009-10-09 01:18 UTC, Daniel Vergien
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Vergien 2009-10-08 12:04:17 UTC
In the Solaris 10 math.h isinf is only defined if either _STDC_C99 or _XOPEN_SOURCE - 0 >= 600 or __C99FEATURES__ is defined.

What surprises, is that in config.h HAVE_ISINF is defined with 1. So the configure check seems to not work correctly.

If I use CFLAGS=-D__C99FEATURES__ wine compiles fine.

This behavior is also showing up on the trunk version.
Comment 1 Juan Lang 2009-10-08 13:36:00 UTC
Could you attach config.log?
Comment 2 Daniel Vergien 2009-10-09 01:18:18 UTC
Created attachment 23988 [details]
config.log
Comment 3 Daniel Vergien 2009-10-09 01:19:07 UTC
Here is also the error message:
../../tools/winegcc/winegcc  -B../../tools/winebuild --sysroot=../.. -shared ./jscript.spec    activex.o array.o bool.o date.o dispex.o engine.o error.o function.o global.o jscript.o jscript_main.o jsutils.o lex.o math.o number.o object.o regexp.o string.o parser.tab.o      jscript_De.res jscript_En.res jscript_Fr.res jscript_Lt.res jscript_Nl.res jscript_Pt.res jscript_Ru.res rsrc.res    -o jscript.dll.so  -loleaut32 -lole32 -luser32 -ladvapi32 -lkernel32  ../../libs/port/libwine_port.a   -lsocket -lnsl
global.o: In function `JSGlobal_isFinite':
global.c:(.text+0x1070): undefined reference to `isinf'
jsutils.o: In function `.L165':
jsutils.c:(.text+0x916): undefined reference to `isinf'
number.o: In function `Number_toString':
number.c:(.text+0x643): undefined reference to `isinf'
collect2: ld returned 1 exit status
winegcc: i386-pc-solaris2.10-gcc failed
make: *** [jscript.dll.so] Error 2
Comment 4 Juan Lang 2009-10-09 20:23:02 UTC
I wonder whether winegcc is using gcc rather than i386-pc-solaris2.10-gcc.  Unfortunately I don't have any easy way to find out.  If you're able to use and understand a debugger, try the following steps to run the debugger and find out:

$ cd tools/winegcc
$ echo "int main(){return 0;}" > x.c
$ gdb ./winegcc
(gdb) b compile
(gdb) run x.c

Then step a couple times:
(gdb) n
310	    strarray* comp_args = strarray_alloc();
(gdb) 
314	    strarray_addall(comp_args, get_translator(opts));

And look at the value of comp_args:
(gdb) p *comp_args->base

Please report what it returns.
Comment 5 Daniel Vergien 2009-10-10 02:22:38 UTC
I've added a printf and it says i386-pc-solaris2.10-gcc. But my winegcc is patched to work with gnu ld on solaris as described in bug 18586.
Comment 6 Austin English 2011-10-01 16:46:30 UTC
Is this still in 1.3.29?
Comment 7 François Gouget 2012-01-25 04:06:22 UTC
Wine 1.3.37 compiles fine on all my Solaris machines: 10u5, 10u9 and 11.2011. So I'd say that either this bug got fixed (likely a long time ago).
Comment 8 Alexandre Julliard 2012-01-27 14:18:05 UTC
Closing bugs fixed in 1.4-rc1.


Privacy Policy
If you have a privacy inquiry regarding this site, please write to [email protected]

Hosted By CodeWeavers