#4240 sac-bris

open
nobody
5
2013-02-17
2013-02-17
G. Helffrich
No

Seismic Analysis Code

Section: sci

Built successfully with fink -m rebuild; depends on system-gfortran (previously submitted).

Discussion

1 2 > >> (Page 1 of 2)
  • G. Helffrich
    G. Helffrich
    2013-02-17

    .info file

     
    Attachments
  • G. Helffrich
    G. Helffrich
    2013-02-17

    dpkg -L output

     
    Attachments
  • Minor nit first:

    curl --connect-timeout 30 -f -L -A 'fink/0.34.5.git' -O http://www1.gly.bris.ac.uk/MacSAC/sac-10.6dr109.tgz
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    100 6971k 100 6971k 0 0 397k 0 0:00:17 0:00:17 --:--:-- 611k
    The checksum of the file is incorrect. The most likely cause for this is a
    corrupted or incomplete download
    Expected: f8d749c489765ea08671e1e45a550bf0
    Actual: MD5(15713dbd69bfaba754ec6be003a069b7)
    SHA1(b9050f57ad1723e996540ebfd1e3190579f5e0e3)

    SHA256(a7ef3251fd577d33c2931fdff0e02dd721dffea440dd80716fa5ea254e8c89af)
    Downloading the file "sac-10.6dr109.tgz" failed.

     
  • Major nit: doesn't build on 10.8:

    cc -w -I/usr/include/libxml2 -m64 -DHAVE_EDITLINE -O2 -DHAVE_CONFIG_H -I/sw/src/fink.build/sac-bris-109-1/sac-10.6d/src/co -I/usr/X11/include -I/sw/include -c -o zgpmsg.o zgpmsg.c
    In file included from zgpmsg.c:55:
    In file included from /usr/include/histedit.h:256:
    In file included from /usr/include/wchar.h:116:
    In file included from /usr/include/_wctype.h:63:
    /usr/include/ctype.h:309:9: error: expected identifier or '('
    tolower(int _c)
    ^
    /sw/src/fink.build/sac-bris-109-1/sac-10.6d/src/co/stdu.h:30:22: note: expanded
    from macro 'tolower'
    #define tolower(c) ((c>='A' && c<='Z') ? (c+('a'-'A')) : c)
    ^

     
  • $ cc --version
    Apple LLVM version 4.2 (clang-425.0.24) (based on LLVM 3.2svn)
    Target: x86_64-apple-darwin12.2.0
    Thread model: posix

     
  • Nor does it build on 10.6 using gcc47:

    (cd src/main ; \ make SACDIR="/sw32/src/fink.build/sac-bris-109-1/sac-10.6d" \ CC="gcc" F77="gfortran" \ SACFFLAGS="-m64 -fbackslash -fopenmp -O2" \ SACCFLAGS="-w -I/usr/include/libxml2 -m64 -DHAVE_EDITLINE -O2 -DHAVE_CONFIG_H -I/sw32/src/fink.build/sac-bris-109-1/sac-10.6d/src/co " \ LOADLIBS=" -L/sw32/src/fink.build/sac-bris-109-1/sac-10.6d/src/evalresp-3.3.3 -levresp -L/sw32/lib -lxml2 -ltermcap -ledit -lSystemStubs /usr/lib/gcc/i686-apple-darwin10/4.2.1/libgcc.a /sw32/lib/gcc4.7/lib/gcc/i386-apple-darwin10.8.0/4.7.2/../../../libgomp.a -static-libgfortran -static-libgcc `[ -z "mac" ] || echo '-Wl,-framework -Wl,CoreServices -Wl,-framework -Wl,Cocoa'`" \ GL3="-L/usr/X11/lib -R/usr/X11/lib -lSM -lICE -lXaw -lXmu -lXext -lXt -lX11 -lm" -f ../../bin/makefile \ )
    COMPILER_PATH=/usr/local/src/ld64-77.1/build/Debug \ gfortran -g -m64 -fbackslash -fopenmp -O2 -o /sw32/src/fink.build/sac-bris-109-1/sac-10.6d/bin/sac /sw32/src/fink.build/sac-bris-109-1/sac-10.6d/src/main/sac.o /sw32/src/fink.build/sac-bris-109-1/sac-10.6d/lib/sac.a -L/usr/X11/lib -R/usr/X11/lib -lSM -lICE -lXaw -lXmu -lXext -lXt -lX11 -lm -L/sw32/src/fink.build/sac-bris-109-1/sac-10.6d/src/evalresp-3.3.3 -levresp -L/sw32/lib -lxml2 -ltermcap -ledit -lSystemStubs /usr/lib/gcc/i686-apple-darwin10/4.2.1/libgcc.a /sw32/lib/gcc4.7/lib/gcc/i386-apple-darwin10.8.0/4.7.2/../../../libgomp.a -static-libgfortran -static-libgcc -Wl,-framework -Wl,CoreServices -Wl,-framework -Wl,Cocoa
    gfortran: error: unrecognized option '-R'

    And that hardcoded /usr/local/src doesn't really look portable for arbitrary non-Fink gfortrans.

     
  • Also, that SACCFLAGS="-w -I/usr/include/libxml2..." needs to be changed, because Fink policy is to use FInk's libraries when possible, and we have a perfectly functional libxml2.

     
  • Ah, my initial 10.6 attempt was in a 32-bit Fink. As it stands, the package is missing an Architecture: x86_64 tag.

     
  • It didn't work for me on 10.6/x86_64, either:

    make[1]: Entering directory `/sw/src/fink.build/sac-bris-109-1/sac-10.6d/src/gd4.app'
    cc -g -no-cpp-precomp -m32 -I/sw/include -c -o carbonsignal.o carbonsignal.c
    carbonsignal.c:19: warning: initialization makes integer from pointer without a cast
    carbonsignal.c:25: warning: initialization makes integer from pointer without a cast
    carbonsignal.c: In function 'installSignalRunLoopSource':
    carbonsignal.c:41: warning: comparison between pointer and integer
    carbonsignal.c:49: warning: cast to pointer from integer of different size
    carbonsignal.c:70: warning: cast to pointer from integer of different size
    carbonsignal.c: In function 'MsgGetPort':
    carbonsignal.c:138: warning: cast from pointer to integer of different size
    cc -g -no-cpp-precomp -m32 -o gd4.carbon gd4.carbon.c carbonsignal.o \ -framework Carbon -framework ApplicationServices \ -framework CoreFoundation
    gd4.carbon.c: In function 'create':
    gd4.carbon.c:376: warning: passing argument 1 of 'InstallEventHandler' makes pointer from integer without a cast
    gd4.carbon.c: In function 'erase':
    gd4.carbon.c:423: warning: passing argument 2 of 'CGContextSetFillColor' from incompatible pointer type
    gd4.carbon.c: In function 'pathop':
    gd4.carbon.c:517: warning: passing argument 3 of 'CGContextSetLineDash' from incompatible pointer type
    gd4.carbon.c: In function 'cursor':
    gd4.carbon.c:771: warning: passing argument 2 of 'SendEventToEventTarget' makes pointer from integer without a cast
    Undefined symbols:
    "_ReleaseWindowGroup", referenced from:
    _create in ccPacity.o
    _destroy in ccPacity.o
    _QuartzEventHandler in ccPacity.o
    "_CreateCGContextForPort", referenced from:
    _create in ccPacity.o
    _QuartzEventHandler in ccPacity.o
    "_GetGlobalMouse", referenced from:
    _cursor in ccPacity.o
    "_SetWindowGroupParent", referenced from:
    _create in ccPacity.o
    "_QDEndCGContext", referenced from:
    _cursor in ccPacity.o
    "_SysBeep", referenced from:
    _cursor in ccPacity.o
    "_QDBeginCGContext", referenced from:
    _cursor in ccPacity.o
    "_GetWindowPort", referenced from:
    _create in ccPacity.o
    _cursor in ccPacity.o
    _cursor in ccPacity.o
    _QuartzEventHandler in ccPacity.o
    (maybe you meant: _GetWindowPortBounds)
    "_SetApplicationDockTileImage", referenced from:
    _main in ccPacity.o
    ld: symbol(s) not found
    collect2: ld returned 1 exit status
    make[1]: *** [gd4.carbon] Error 1
    make[1]: Leaving directory `/sw/src/fink.build/sac-bris-109-1/sac-10.6d/src/gd4.

     
  • Since the binaries _link_ to the gcc4N libraries, e.g.:

    convcss:
    /sw/lib/libxml2.2.dylib (compatibility version 11.0.0, current version 11.0.0)
    /sw/lib/ncurses/libncurses.5.dylib (compatibility version 5.0.0, current version 5.0.0)
    /usr/lib/libedit.2.dylib (compatibility version 2.0.0, current version 2.11.0)
    /sw/lib/gcc4.7/lib/libgfortran.3.dylib (compatibility version 4.0.0, current version 4.0.0)
    /sw/lib/gcc4.7/lib/libgomp.1.dylib (compatibility version 2.0.0, current version 2.0.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.11)
    /sw/lib/gcc4.7/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
    /sw/lib/gcc4.7/lib/libquadmath.0.dylib (compatibility version 1.0.0, current version 1.0.0)

    it is _forbidden_ to have a choice between different gcc4N, unless each has a separate package name. Standard practice is:

    1) BuildDepends: gcc47-compiler, Depends: gcc47-shlibs
    2) explicitly tell the build to use /sw/bin/gcc-fsf-4.7

     
1 2 > >> (Page 1 of 2)