Dear fltk maintainer,

I’m not able to compile fltk13-aqua.

My system :

Package manager version: 0.38.1
Distribution version: selfupdate-cvs Thu Oct 23 09:51:40 2014, 10.10, x86_64
Trees: local/main stable/main stable/crypto
Xcode.app: 6.1
Xcode command-line tools: 6.1.0.0.1.1413057044
Max. Fink build jobs:  1

Configuration log:

dpkg-deb -b /sw/src/fink.build/root-fink-buildlock-fltk13-aqua-1.3.2-3 
/sw/src/fink.build
dpkg-deb: building package `fink-buildlock-fltk13-aqua-1.3.2-3' in 
`/sw/src/fink.build/fink-buildlock-fltk13-aqua-1.3.2-3_2014.10.23-09.52.13_darwin-x86_64.deb'.
Installing build-lock package...
/sw/bin/dpkg-lockwait -i 
/sw/src/fink.build/fink-buildlock-fltk13-aqua-1.3.2-3_2014.10.23-09.52.13_darwin-x86_64.deb
Selecting previously deselected package fink-buildlock-fltk13-aqua-1.3.2-3.
(Reading database ... 31589 files and directories currently installed.)
Unpacking fink-buildlock-fltk13-aqua-1.3.2-3 (from 
.../fink-buildlock-fltk13-aqua-1.3.2-3_2014.10.23-09.52.13_darwin-x86_64.deb) 
...
Setting up fink-buildlock-fltk13-aqua-1.3.2-3 (2014.10.23-09.52.13) ...

sudo -u fink-bld [ENV] sh -c /tmp/fink.rkEXB
env LANG=C LC_ALL=C /sw/bin/tar  --no-same-owner --no-same-permissions -xf 
/sw/src/fltk-1.3.2-source.tar.gz
sudo -u fink-bld [ENV] sh -c /tmp/fink.f21n3
[ -r /sw/fink/dists/stable/main/finkinfo/libs/fltk13-aqua.patch ]
sudo -u fink-bld [ENV] sh -c /tmp/fink.sVruT
/tmp/fink.xZFXm
#!/bin/sh -ev
  sed 's|@FINKPREFIX@|/sw|' 
/sw/fink/dists/stable/main/finkinfo/libs/fltk13-aqua.patch | patch -p1
patching file configure
Hunk #1 succeeded at 2629 (offset 618 lines).
Hunk #2 succeeded at 2741 (offset 618 lines).
patching file makeinclude.in
Hunk #1 succeeded at 90 (offset -9 lines).
Hunk #2 succeeded at 131 (offset -9 lines).
patching file src/Makefile
Hunk #1 succeeded at 283 with fuzz 2 (offset -9 lines).
Hunk #2 succeeded at 319 with fuzz 2 (offset -9 lines).
Hunk #3 succeeded at 355 with fuzz 2 (offset -9 lines).
patching file src/fl_diamond_box.cxx
patching file src/fl_round_box.cxx
patching file jpeg/jmorecfg.h
patching file src/Fl_JPEG_Image.cxx
  perl -pi -e 's/\*l=0/*l/g' fluid/Fl_Type.h
  mv fltk-config.in fltk-config.in.old
  sed 's: prefix=$optarg: prefix=$optarg; includedir=${prefix}/include:' < 
fltk-config.in.old > fltk-config.in
  mv fluid/Makefile fluid/Makefile.old
  sed 's;$(bindir)/fltk-config;$(bindir)/fltk-config --prefix=$(prefix);' < 
fluid/Makefile.old > fluid/Makefile
  perl -ni -e 'print unless /echo.*COMMAND/' src/Makefile
  perl -pi -e 's/\|\| break//' Makefile
  perl -pi -e 's/ 755 / 644 / if /\/lib.*\.{a,dylib}/' src/Makefile
  perl -ni -e 'print unless /mandir\)\/cat/' documentation/Makefile
  perl -pi -e 's|share/doc/fltk|share/doc/fltk13-aqua/html|g' configure
  # Mountain Lion+ issue.  Thanks, Apple.
  osversion=`uname -r | cut -d . -f 1`
uname -r | cut -d . -f 1
  if [ $osversion -ge 12 ] ; then 
        perl -pi -e 's/(.*POSIX).*APPLE.*/\1)/' src/filename_list.cxx
  fi
sudo -u fink-bld [ENV] sh -c /tmp/fink.nOuAY
./configure --prefix=/sw --mandir=/sw/share/man 
--libdir=/sw/lib/fltk13-aqua/lib --enable-shared --enable-threads 
--without-links --without-x
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for nroff... /usr/bin/nroff
checking for htmldoc... no
checking for doxygen... /sw/bin/doxygen
checking for ranlib... ranlib
checking for ar... /usr/bin/ar
checking for windres... no
checking size of short... 2
checking size of int... 4
checking size of long... 8
checking whether the compiler recognizes bool as a built-in type... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking sys/select.h usability... yes
checking sys/select.h presence... no
configure: WARNING: sys/select.h: accepted by the compiler, rejected by the 
preprocessor!
configure: WARNING: sys/select.h: proceeding with the compiler's result
checking for sys/select.h... yes
checking sys/stdtypes.h usability... no
checking sys/stdtypes.h presence... no
checking for sys/stdtypes.h... no
checking whether we have the POSIX compatible scandir() prototype... yes
checking for vsnprintf... yes
checking for snprintf... yes
checking strings.h usability... yes
checking strings.h presence... no
configure: WARNING: strings.h: accepted by the compiler, rejected by the 
preprocessor!
configure: WARNING: strings.h: proceeding with the compiler's result
checking for strings.h... yes
checking for strcasecmp... yes
checking for strlcat... yes
checking for strlcpy... yes
checking locale.h usability... yes
checking locale.h presence... no
configure: WARNING: locale.h: accepted by the compiler, rejected by the 
preprocessor!
configure: WARNING: locale.h: proceeding with the compiler's result
checking for locale.h... yes
checking for localeconv... yes
checking for library containing pow... none required
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for long long int... yes
checking for strtoll... yes
checking for library containing dlsym... none required
checking dlfcn.h usability... yes
checking dlfcn.h presence... no
configure: WARNING: dlfcn.h: accepted by the compiler, rejected by the 
preprocessor!
configure: WARNING: dlfcn.h: proceeding with the compiler's result
checking for dlfcn.h... yes
checking for jpeg_CreateCompress in -ljpeg... yes
checking jpeglib.h usability... yes
checking jpeglib.h presence... no
configure: WARNING: jpeglib.h: accepted by the compiler, rejected by the 
preprocessor!
configure: WARNING: jpeglib.h: proceeding with the compiler's result
checking for jpeglib.h... yes
checking for gzgets in -lz... yes
checking zlib.h usability... yes
checking zlib.h presence... no
configure: WARNING: zlib.h: accepted by the compiler, rejected by the 
preprocessor!
configure: WARNING: zlib.h: proceeding with the compiler's result
checking for zlib.h... yes
checking for png_read_info in -lpng... yes
checking png.h usability... yes
checking png.h presence... no
configure: WARNING: png.h: accepted by the compiler, rejected by the 
preprocessor!
configure: WARNING: png.h: proceeding with the compiler's result
checking for png.h... yes
checking libpng/png.h usability... no
checking libpng/png.h presence... no
checking for libpng/png.h... no
checking for png_get_valid in -lpng... yes
checking for png_set_tRNS_to_alpha in -lpng... yes
checking pthread.h usability... yes
checking pthread.h presence... no
configure: WARNING: pthread.h: accepted by the compiler, rejected by the 
preprocessor!
configure: WARNING: pthread.h: proceeding with the compiler's result
checking for pthread.h... yes
checking for pthread_create using -lpthreads... no
checking for pthread_create using -lpthread... yes
checking if GCC supports -fno-exceptions... yes
checking if GCC supports -fno-strict-aliasing... yes

Configuration Summary
-------------------------------------------------------------------------
    Directories: prefix=/sw
                 bindir=${exec_prefix}/bin
                 datadir=${datarootdir}
                 datarootdir=${prefix}/share
                 exec_prefix=${prefix}
                 includedir=${prefix}/include
                 libdir=/sw/lib/fltk13-aqua/lib
                 mandir=/sw/share/man
       Graphics: Quartz
Image Libraries: JPEG=System
                 PNG=System
                 ZLIB=System
    Large Files: YES
         OpenGL: YES
        Threads: YES
configure: creating ./config.status
config.status: creating makeinclude
config.status: creating fltk.list
config.status: creating fltk-config
config.status: creating fltk.spec
config.status: creating FL/Makefile
config.status: creating config.h


Build log:

make
for dir in  src  fluid test documentation; do\
                echo "=== making $dir ===";\
                (cd $dir; 
/Applications/Xcode.app/Contents/Developer/usr/bin/make ) || exit 1;\
        done
=== making src ===
echo Compiling Fl_cocoa.mm...
Compiling Fl_cocoa.mm...
g++ -I..  -Os -Wno-deprecated-declarations -Wall -Wunused -Wno-format-y2k  
-fPIC -fno-exceptions -fno-strict-aliasing -D_LARGEFILE_SOURCE 
-D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT -I/sw/include  -DFL_LIBRARY 
-x objective-c++ -c Fl_cocoa.mm -o Fl_cocoa.o
Fl_cocoa.mm:1325:24: error: cannot initialize a parameter of type 
'id<NSFileManagerDelegate>' with an rvalue of
      type 'FLDelegate *'
    [NSApp setDelegate:[[FLDelegate alloc] init]];
                       ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/objc/NSObject.h:60:1: note: instance method 'init' is assumed to 
return an instance of its receiver
      type ('FLDelegate *')
- (instancetype)init;
^
/System/Library/Frameworks/Foundation.framework/Headers/NSFileManager.h:109:47: 
note: passing argument to
      parameter 'delegate' here
@property (assign) id <NSFileManagerDelegate> delegate NS_AVAILABLE(10_5, 2_0);
                                              ^
Fl_cocoa.mm:2234:21: error: cannot initialize a parameter of type 
'id<NSWindowDelegate>' with an rvalue of type
      'id<NSFileManagerDelegate>'
    [cw setDelegate:[NSApp delegate]];
                    ^~~~~~~~~~~~~~~~
/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:307:41: note: 
passing argument to parameter
      'delegate' here
@property (assign) id<NSWindowDelegate> delegate;
                                        ^
2 errors generated.
make[1]: *** [Fl_cocoa.o] Error 1
make: *** [all] Error 1
### execution of make failed, exit code 2
### execution of /tmp/fink.nOuAY failed, exit code 2
Removing runtime build-lock...
Removing build-lock package...
/sw/bin/dpkg-lockwait -r fink-buildlock-fltk13-aqua-1.3.2-3
(Reading database ... 31590 files and directories currently installed.)
Removing fink-buildlock-fltk13-aqua-1.3.2-3 ...
Failed: phase compiling: fltk13-aqua-1.3.2-3 failed

BR
Petri Piila


------------------------------------------------------------------------------
_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to