[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GEMPAK #UCD-933316]: Install GEMPAK5.10.2 source fail



Vu Duy,


The g77 compiler uses a "noformain" flag to prevent fortran libraries to be 
compiled with their own 
"main" which conflicts with a C program's main.

Does your ifort have a similar flag?

Steve Chiswell
Unidata User Support



> Dear !
> 
> I have been downloaded the GEMPAK source codes version 5.10.2 and try
> to compile and install these.
> 
> My computer configuration:
> 
> PC 586
> RAM:2GB
> proccesor :IntelPentium V 3.0GHZ
> system: Open SUSE 10.2
> 
> Because my operating system haven't g77 compiler so i used Intel
> Fortran compiler, ifort OpenMotif library  was installed
> 
> When I compile have some error:
> 
> ifort -I/home/gempak/GEMPAK5.10.2/gempak/include 
> -I/home/gempak/GEMPAK5.10.2/os/linux/include 
> -I/home/gempak/GEMPAK5.10.2/gempak/include 
> -I/home/gempak/GEMPAK5.10.2/os/linux/include/Linux -O    -o bufr_dump 
> bufr_dump.o /home/gempak/GEMPAK5.10.2/os/linux/lib/libmel_bufr.a
> bufr_dump.o: In function `main':
> bufr_dump.c:(.text+0x0): multiple definition of `main'
> /opt/intel/fc/9.0/lib/for_main.o:./src/libfor/for_main.c:(.text+0x0): first 
> defined here
> ld: Warning: size of symbol `main' changed from 76 in 
> /opt/intel/fc/9.0/lib/for_main.o to 1557 in bufr_dump.o
> /opt/intel/fc/9.0/lib/for_main.o: In function `main':
> ./src/libfor/for_main.c:(.text+0x39): undefined reference to `MAIN__'
> make[4]: *** [bufr_dump] Error 1
> 
> Could you help solve that problem?
> 
> Thank in advance!
> 
> Vu Duy Tien
> R&D division
> NCHMF
> No4 Dang Thai Than Hanoi Vietnam
> 
> 
> ---------------------------------
> Building a website is a piece of cake.
> Yahoo! Small Business gives you all the tools to get online.
> 


Ticket Details
===================
Ticket ID: UCD-933316
Department: Support GEMPAK
Priority: Normal
Status: Closed