On Sun, 13 Apr 2014 14:33:55 +0200, Andreas Bießmann 
<andreas.de...@googlemail.com> wrote:
Dear Kurt Schwehr,
>
> I noticed that proj-4.8.0-3's info file contains the entry 'SetLDFLAGS:
> -no-undefined'. Unfortunately this is the root cause for not compiling
> that package on my box. 
>
> ---8<---
> configure:2850: gcc  -I/sw/include -no-undefined -L/sw/lib conftest.c  >&5
> clang: error: unknown argument: '-no-undefined'
> [-Wunused-command-line-argument-hard-error-in-future]
> clang: note: this will be a hard error (cannot be downgraded to a
> warning) in the future
> configure:2853: $? = 1
> configure:2891: result:
> configure: failed program was:
> | /* confdefs.h.  */
> | #define PACKAGE_NAME "PROJ.4 Projections"
> | #define PACKAGE_TARNAME "proj"
> | #define PACKAGE_VERSION "4.7.0"
> | #define PACKAGE_STRING "PROJ.4 Projections 4.7.0"
> | #define PACKAGE_BUGREPORT "warmer...@pobox.com"
> | #define PACKAGE "proj"
> | #define VERSION "4.7.0"
> | /* end confdefs.h.  */
> |
> | int
> | main ()
> | {
> |
> |   ;
> |   return 0;
> | }
> configure:2898: error: C compiler cannot create executables
> See `config.log' for more details. 
> --->8---
>
> ---8<---
> % gcc --version
> Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr
> --with-gxx-include-dir=/usr/include/c++/4.2.1
> Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
> Target: x86_64-apple-darwin13.1.0
> Thread model: posix
> --->8---
>
> Commenting that line makes it compile for me. 

The makefiles now do include that flag where it's useful and 
syntactically viable to do so, so there's no need to pass it manually. 
In the build log using the older compiler that doesn't reject this 
flag, it is currently passed *twice* in the places needed (libtool 
--mode=link of a library; once due to makefile, once due to .info 
field) and also once in the linking of executables (where it has no 
effect; solely due to .info field). I suspect there are some other 
no-longer-needed packaging work-arounds in the .info as well. Let me 
know if I should commit this limited xcode5.1 fix and/or other cleanups. 

dan

  --
Daniel Macks
dma...@netspace.org



------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to