[gmx-developers] Compilation glitch with xutils.c and glibc

Jay Mashl mashl at ncsa.uiuc.edu
Wed Mar 13 05:26:26 CET 2002


I encountered a small problem compiling gromacs-3.1.1 and thought                                   
I could post a solution:
                                                                                                    
In src/kernel:                                                                                      
xutils.c:97: `fmax' redeclared as different kind of symbol                                          
/usr/include/bits/mathcalls.h:319: previous declaration of `fmax'                                   
xutils.c:97: warning: `fmax' was declared `extern' and later `static'                               
                                                                                                    
> rpm -qf /usr/include/bits/mathcalls.h                                                             
glibc-devel-2.1.3-15                                                                                
glibc-devel-2.1.3-22                                                                                
                                                                                                    
The compilation can be made to work be renaming all occurrences                                     
of 'fmax' (say to '_fmax') in xutils.c.                                                             
                                                                                                    
This problem did not occur on another system that uses                                              
glibc-devel-2.2.4-19.3.                                                                             
                                                                                                    
Jay                                                                                                 
--                                                                                                  
R. Jay Mashl                                                                                        
Computational Biology                                                                               
National Center for Supercomputing Applications                                                     
University of Illinois                                                                              





More information about the gromacs.org_gmx-developers mailing list