[daip] AIPS Help
Eric Greisen
egreisen at nrao.edu
Wed Sep 3 15:49:15 EDT 2003
Siow-Wang Lee writes:
> I recently tried to compile an AIPS task called CUBIT written by
> Judith Irwin. I've encountered problem linking it which I don't
> understand. I'd appreciate it very much if you could help me
> decipher it. The error messages are in the attached log file.
>
> I'm still using AIPS 31DEC01, operating system: redhat 7.1,
> compiler gcc 2.96
>
> I've been on the AIPS website and know about the problem with
> this version of gcc. However, I can't remember what I did two
> years ago went I installed AIPS. I do know I don't have other
> version of gcc in my machine.
You could look in $SYSLOCAL/CCOPTS.SH and LDOPTS.SH which may give
you hints
>
> /usr/local/aips/31DEC01/LINUX/PREP/CUBIT.o: In function `fcn_':
> /usr/local/aips/31DEC01/LINUX/PREP/CUBIT.o(.text+0x5f43): undefined reference to `sin'
> /usr/local/aips/31DEC01/LINUX/PREP/CUBIT.o(.text+0x5f5d): undefined reference to `cos'
> /usr/local/aips/31DEC01/LINUX/PREP/CUBIT.o(.text+0x5f77): undefined reference to `cos'
> /usr/local/aips/31DEC01/LINUX/PREP/CUBIT.o(.text+0x5f9f): undefined reference to `sin'
> /usr/local/aips/31DEC01/LINUX/PREP/CUBIT.o(.text+0x6015): undefined reference to `cos'
> /usr/local/aips/31DEC01/LINUX/PREP/CUBIT.o(.text+0x603d): undefined reference to `sin'
> /usr/local/aips/31DEC01/LINUX/PREP/CUBIT.o: In function `velocity_':
> /usr/local/aips/31DEC01/LINUX/PREP/CUBIT.o(.text+0x74dc): undefined reference to `sin'
> /usr/local/aips/31DEC01/LINUX/PREP/CUBIT.o(.text+0x74f6): undefined reference to `cos'
> /usr/local/aips/31DEC01/LINUX/PREP/CUBIT.o: In function `density_':
> /usr/local/aips/31DEC01/LINUX/PREP/CUBIT.o(.text+0x8061): undefined reference to `sin'
> /usr/local/aips/31DEC01/LINUX/PREP/CUBIT.o(.text+0x807b): undefined reference to `cos'
> /usr/local/aips/31DEC01/LINUX/PREP/CUBIT.o(.text+0x8442): undefined reference to `exp'
> /usr/local/aips/31DEC01/LINUX/PREP/CUBIT.o(.text+0x8538): undefined reference to `exp'
> /usr/local/aips/31DEC01/LINUX/PREP/CUBIT.o(.text+0x85c4): undefined reference to `exp'
> /usr/local/aips/31DEC01/LINUX/PREP/CUBIT.o(.text+0x8632): undefined reference to `exp'
> /usr/local/aips/31DEC01/LINUX/PREP/CUBIT.o: In function `kernel_':
> /usr/local/aips/31DEC01/LINUX/PREP/CUBIT.o(.text+0xa0cc): undefined reference to `sin'
> /usr/local/aips/31DEC01/LINUX/PREP/CUBIT.o(.text+0xa0dc): undefined reference to `cos'
> /usr/local/aips/31DEC01/LINUX/PREP/CUBIT.o(.text+0xa0f1): undefined reference to `log'
> /usr/local/aips/31DEC01/LINUX/PREP/CUBIT.o(.text+0xa118): undefined reference to `log'
> /usr/local/aips/31DEC01/LINUX/PREP/CUBIT.o(.text+0xa24b): undefined reference to `exp'
> /usr/local/aips/31DEC01/LINUX/PREP/CUBIT.o: In function `gpxtas_':
> /usr/local/aips/31DEC01/LINUX/PREP/CUBIT.o(.text+0xacff): undefined reference to `cos'
> /usr/local/aips/31DEC01/LINUX/PREP/CUBIT.o(.text+0xad12): undefined reference to `sin'
> /usr/local/aips/31DEC01/LINUX/PREP/CUBIT.o(.text+0xaea0): undefined reference to `atan2'
> /usr/local/aips/31DEC01/LINUX/PREP/CUBIT.o: In function `gdecon_':
> /usr/local/aips/31DEC01/LINUX/PREP/CUBIT.o(.text+0xaf82): undefined reference to `cos'
> /usr/local/aips/31DEC01/LINUX/PREP/CUBIT.o(.text+0xafc3): undefined reference to `sin'
> /usr/local/aips/31DEC01/LINUX/PREP/CUBIT.o(.text+0xafe0): undefined reference to `sin'
> /usr/local/aips/31DEC01/LINUX/PREP/CUBIT.o(.text+0xb005): undefined reference to `cos'
> /usr/local/aips/31DEC01/LINUX/PREP/CUBIT.o(.text+0xb022): undefined reference to `cos'
> /usr/local/aips/31DEC01/LINUX/PREP/CUBIT.o(.text+0xb084): undefined reference to `atan2'
> /usr/local/aips/31DEC01/LINUX/PREP/CUBIT.o: In function `vsmth_':
> /usr/local/aips/31DEC01/LINUX/PREP/CUBIT.o(.text+0xb2da): undefined reference to `log'
> /usr/local/aips/31DEC01/LINUX/PREP/CUBIT.o(.text+0xb34d): undefined reference to `exp'
> /usr/local/aips/31DEC01/LINUX/PREP/CUBIT.o(.text+0xb398): undefined reference to `exp'
> /usr/local/aips/31DEC01/LINUX/PREP/CUBIT.o(.text+0xb3d6): undefined reference to `exp'
> /usr/local/aips/31DEC01/LINUX/LIBR/APLSUB/SUBLIB(DAT2JD.o): In function `dat2jd_':
> DAT2JD.o(.text+0xba): undefined reference to `floor'
> DAT2JD.o(.text+0xe5): undefined reference to `floor'
> DAT2JD.o(.text+0x129): undefined reference to `floor'
> DAT2JD.o(.text+0x155): undefined reference to `floor'
> DAT2JD.o(.text+0x1c0): undefined reference to `floor'
> /usr/local/aips/31DEC01/LINUX/LIBR/APLSUB/SUBLIB(DAT2JD.o)(.text+0x1e1): more undefined references to `floor' follow
> /usr/lib/gcc-lib/i386-redhat-linux/2.96/libg2c.a(pow_dd.o): In function `pow_dd':
> pow_dd.o(.text+0x1b): undefined reference to `pow'
> /usr/lib/gcc-lib/i386-redhat-linux/2.96/libg2c.a(r_lg10.o): In function `r_lg10':
> r_lg10.o(.text+0xf): undefined reference to `log'
> /usr/lib/gcc-lib/i386-redhat-linux/2.96/libg2c.a(d_lg10.o): In function `d_lg10':
> d_lg10.o(.text+0x11): undefined reference to `log'
> collect2: ld returned 1 exit status
> LINK : Status from /usr/bin/g77 is 1
These are all standard library routines and are normally included
without anything special done on our part. What is your
$LD_LIBRARY_PATH?
Eric Greisen
More information about the Daip
mailing list