PDA

View Full Version : Symbol references different between v6.2c and 6.2d?


paulv
04-14-2006, 04:10 PM
Hi,

I just installed the linux express v6.2d maintenance upgrade when I moved from RHE3 to RHE4. When I build the netCDF library Fortran tests I now get errors like:

../libsrc/libnetcdf.a(nc.o)(.text+0x2d9): In function `NC_begins':
: undefined reference to `__divdi3'

when I link in the netCDF library to the compiled fortran source (the library build itself is fine). The same code compiled, linked and ran fine using v6.2c on RHE3. I';m wondering if something changed between 6.2c and d with regards to the name mangling that occurs when linking in the library? (The above symbols are all C code compiled with gcc) Or could this simply be a RHE4 issue? (last time I checked v6.2d was tested on RHE4)

Thanks for any info.

cheers,

paulv

p.s. The netCDF build and test works fine for PGI and g95 (with the latter I do have to use the -f-no-second-underscore switch.)

Lahey Support
04-14-2006, 04:50 PM
There was no change to name mangling between LF95 v6.20c and LF95 v6.20d.

To make LF95 compatible with Red Hat Enterprise Linux version 4 we had to rebuild the libraries so that they no longer referenced __divdi3 and others that had been removed from the Linux runtime libraries.

Given the error message it looks like a new version libnetcdf.a is needed that doesn't reference __divdi3.

paulv
04-17-2006, 05:56 PM
O.k., thanks for the info. I will contact the netCDF folks and hope it's an easy fix.

cheers,

paulv

paulv
04-17-2006, 06:33 PM
Hello again,

I contacted the netCDF folks (haven' t heard back yet) but I was wondering why the build and link worked for PGI and g95 (same versions as I used under RHE3.0) but not for Lanhey 6.2d? Should I revert back to 6.2c to get these library links to work?

Thanks for any info.

cheers,

paulv

Lahey Support
04-18-2006, 05:47 PM
Give it a try and let us know the results.

rymanjc
04-18-2006, 07:36 PM
We are upgrading our operating system to RHEL v4, Update 3 from RHEL v3, Update 6. We had already installed the v6.2d update. Do we need to reinstall, download new Lahey runtime libraries, or what?

Thanks for any advice you can give.

Lahey Support
04-18-2006, 08:44 PM
LF95 v6.20d is compatible with RHEL v4.

$ uname -a
Linux rhel4 2.6.9-5.EL #1 Wed Jan 5 19:22:18 EST 2005 i686 athlon i386 GNU/Linux

$ ls -l /lib/libc.so.6
lrwxrwxrwx 1 root root 13 Sep 22 2005 /lib/libc.so.6 -> libc-2.3.4.so

If it's already installed it should work.