PDA

View Full Version : (glibc problem?) on Fedora Core 4 using lf95 v.6.2c


S. Young
01-23-2006, 10:33 PM
Hello,

I have installed lf95 version 6.2c on a Fedora Core 4 machine. I can compile and run the demo.f90 program (after setting the stack limit to unlimited). However, when I try to compile another code of mine which compiles fine under Fedora Core 3/lf95 v6.2c on a different machine, I get the following errors:

lf95 -O --staticlink -o eigena0 -M/home/young/codes/mods eigena0.f90 standard.o nrutil.o
Encountered 0 errors, 0 warnings in file eigena0.f90.
/usr/local/lf9562/bin/../lib/libfj9i6.a(jwe_iedi.o)(.text+0xfbb): In function `jwe_iiie':
jwe_iedi.c: undefined reference to `__ctype_b'
/usr/local/lf9562/bin/../lib/libfj9i6.a(jwe_iedi.o)(.text+0xfc7):jwe_iedi.c: undefined reference to `__ctype_tolower'
/usr/local/lf9562/bin/../lib/libfj9i6.a(jwe_iedi.o)(.text+0x1062):jwe_iedi.c: undefined reference to `__ctype_b'
/usr/local/lf9562/bin/../lib/libfj9i6.a(jwe_iedi.o)(.text+0x106e):jwe_iedi.c: undefined reference to `__ctype_tolower'
/usr/local/lf9562/bin/../lib/libfj9i6.a(jwe_ifop.o)(.text+0x977): In function `jwe_ifop':
jwe_ifop.c: undefined reference to `__divdi3'
/usr/local/lf9562/bin/../lib/libfj9i6.a(jwe_ifop.o)(.text+0x997):jwe_ifop.c: undefined reference to `__moddi3'
/usr/local/lf9562/bin/../lib/libfj9i6.a(jwe_icdb.o)(.text+0x9f): In function `jwe_icdb':
jwe_icdb.c: undefined reference to `__ctype_b'
/usr/local/lf9562/bin/../lib/libfj9i6.a(jwe_icdb.o)(.text+0xa7):jwe_icdb.c: undefined reference to `__ctype_tolower'
make: *** [eigena0] Error 1


I am no expert on this, but looking on google groups I find at least some of these errors listed as a glibc problem. Can you help me?

Thanks,

S. Young

S. Young
02-07-2006, 03:48 AM
I can't say that I have done a systematic test to see if the upgrade has fixed the problem I noted earlier, but it does seem to work now.

Lahey Support
03-17-2006, 12:54 AM
The undefined references to ctype and moddi3 are typical results when running LF95 v6.2 without the latest patch, on a system that uses glibc 2.3.x or higher. Updating the installation with the patch was the correct thing to do.

cmueli
03-30-2006, 08:31 PM
Hello,

despite a recent update to LF95 Pro v6.2d, I still have the same errors
when trying to use --staticlink. My system is SuSE9.3 (glibc 2.3.4):

Linking ./coordgl...
lf95 -o ./coordgl modules.o resource.o readinput.o display.o fragments.o editstruct.o coordgl.o --staticlink -O -L/usr/qc/lf95-62/lib -L/usr/X11R6/lib -lwint -lwintGL -lGL -lGLU -lXm-old -lXt -lX11
/usr/qc/lf95-62/lib/libfj9i6.a(jwe_iedi.o)(.text+0xfbb): In function `jwe_iiie':
jwe_iedi.c: undefined reference to `__ctype_b'
/usr/qc/lf95-62/lib/libfj9i6.a(jwe_iedi.o)(.text+0xfc7):jwe_iedi.c: undefined reference to `__ctype_tolower'
/usr/qc/lf95-62/lib/libfj9i6.a(jwe_iedi.o)(.text+0x1062):jwe_iedi.c: undefined reference to `__ctype_b'
/usr/qc/lf95-62/lib/libfj9i6.a(jwe_iedi.o)(.text+0x106e):jwe_iedi.c: undefined reference to `__ctype_tolower'
/usr/qc/lf95-62/lib/libfj9i6.a(jwe_icdb.o)(.text+0x9f): In function `jwe_icdb':
jwe_icdb.c: undefined reference to `__ctype_b'
/usr/qc/lf95-62/lib/libfj9i6.a(jwe_icdb.o)(.text+0xa7):jwe_icdb.c: undefined reference to `__ctype_tolower'
make: *** [linkit] Error 1

Is there more known about problems on SuSE systems ?

Thanks,

Christian Mück-Lichtenfeld

cmueli
03-30-2006, 08:37 PM
Hello again,

sorry, I made a mistake: I compiled my program still with
the old lf95 (6.2a). With 6.2d on SuSE 9.3, it links statically.

Sorry for wasting your time,

Christian