On 10/15/12 12:24 PM, Zhao, Wenzhong, Dr {Zhao}(GSFC-613.0)[SCIENCE
SYSTEMS AND APPLICATIONS INC] wrote:
> Hi,
> 
>  
> 
>  
> 
> “fink install fortran-utils” failed with the following error log:
> 
> (This  computer is a Mac Pro running Mac OS X 10.7.5)
> 
> Thanks,
> 
>  
> 
> --Wenzhong
> 
>  
> 
>  
> 

<snip>

> 
> fsplit.c:100:7: error:conflicting types for 'getline'
> 
> int   getline __P((void));
> 
>       ^
> 
> /usr/include/stdio.h:449:9: note: previous declaration is here
> 
> ssize_t getline(char ** __restrict, size_t * __restrict, FILE *
> __restrict) __OSX_AVAILABLE_STARTING(__MAC_10_7, ...
> 
>         ^
> 
> fsplit.c:174:17: error:too few arguments to function call, expected 3,
> have 0
> 
>         while (getline() > 0) {
> 
>                ~~~~~~~ ^
> 
> /usr/include/stdio.h:449:1: note: 'getline' declared here
> 
> ssize_t getline(char ** __restrict, size_t * __restrict, FILE *
> __restrict) __OSX_AVAILABLE_STARTING(__MAC_10_7, ...
> 
> ^
> 
> fsplit.c:266:1: error:conflicting types for 'getline'
> 
> getline()
> 
> ^
> 
> /usr/include/stdio.h:449:9: note: previous declaration is here
> 
> ssize_t getline(char ** __restrict, size_t * __restrict, FILE *
> __restrict) __OSX_AVAILABLE_STARTING(__MAC_10_7, ...
> 
>         ^
> 
> 3 errors generated.
> 

As alluded to above, an implementation of the "standard" getline() was
finally introduced on OS X as of Lion, and the name getline() here is
colliding with that definition.

Since fortran-utils isn't a library package, the maintainer can
presumably change its getline() to use a different name. (We have other
packages that do this).
-- 
Alexander Hansen, Ph.D.
Fink User Liaison
My package updates: http://finkakh.wordpress.com/

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Fink-beginners mailing list
Fink-beginners@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.apple.fink.beginners
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-beginners
  • ... Zhao, Wenzhong, Dr {Zhao}(GSFC-613.0)[SCIENCE SYSTEMS AND APPLICATIONS INC]
    • ... Alexander Hansen
    • ... Alexander Hansen
      • ... Zhao, Wenzhong, Dr {Zhao}(GSFC-613.0)[SCIENCE SYSTEMS AND APPLICATIONS INC]

Reply via email to