Privacy and Security Notice

Archived Messages for CLAS_OFFLINE@cebaf.gov: g77 and Linux

g77 and Linux

Lee Cole Smith (cole@apollo.phys.Virginia.EDU)
Fri, 23 Jan 1998 13:01:06 -0500

This is for the Linux and g77 experts:

I have a generic problem in Linux linking any of the c routines
in utilities using any of the Makefile or Makefile_alts.

Typical:

g77 \
-I. -I../a1/ -I../bankfilter/ -I../bosanal/ -I../dc_channel_map/ -I../mcgen/ -I../pdu/ -I../remake_dc0/ \
-I../sslt/ -I/fs17/users/clas/builds/DEVELOPMENT/packages/include \
-I/fs17/users/clas/builds/DEVELOPMENT/packages/gsim/include -I/usr/include -I/usr/X11R6/include \
-O2 -m486 -fno-automatic -finit-local-zero -ffixed-line-length-none -fno-second-underscore \
-L/home/clas/builds/DEVELOPMENT/lib/Linux -L/home/clas/builds/DEVELOPMENT/lib/Linux \
-L/home/clas/CLASsoft/96a/lib -L/usr/X11/lib -lmapmanager \
-o /home/clas/builds/DEVELOPMENT/bin/Linux/maputil
/usr/lib/gcc-lib/i686-unknown-linuxlibc1/2.7.2.2.f.2/libf2c.a(main.o): In function `main':
main.o(.text+0x10c): undefined reference to `MAIN__'
make: *** [/home/clas/builds/DEVELOPMENT/bin/Linux/maputil] Error 1

1) Does anyone know what this means?
2) If it is an i686 library problem, does anyone know to tell g77 to use the i386 libraries?

Thanks,
Cole Smith
cole@apollo.phys.virginia.edu