[MacPorts] #29595: Port of Scilab

MacPorts noreply at macports.org
Sun Sep 1 16:23:10 PDT 2013


#29595: Port of Scilab
--------------------------+--------------------------------
  Reporter:  sylvestre@…  |      Owner:  macports-tickets@…
      Type:  request      |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:
      Port:               |
--------------------------+--------------------------------

Comment (by mojca@…):

 Just a note: if I compile the failing program from your `config.log`:
 {{{
 /* Define cheev_ to an innocuous variant, in case <limits.h> declares
 cheev_.
    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 #define cheev_ innocuous_cheev_

 /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char cheev_ (); below.
     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     <limits.h> exists even on freestanding compilers.  */

 #ifdef __STDC__
 # include <limits.h>
 #else
 # include <assert.h>
 #endif

 #undef cheev_

 /* Override any GCC internal prototype to avoid an error.
    Use char because int might match the return type of a GCC
    builtin and then its argument prototype would still apply.  */
 #ifdef __cplusplus
 extern "C"
 #endif
 char cheev_ ();
 /* The GNU C library defines this for functions which it implements
     to always fail with ENOSYS.  Some functions are actually named
     something starting with __ and the normal name is an alias.  */
 #if defined __stub_cheev_ || defined __stub___cheev_
 choke me
 #endif

 int
 main ()
 {
 return cheev_ ();
   ;
   return 0;
 }
 }}}
 then
 {{{
 clang config.log -llapack
 }}}
 works (it takes the library from
 `/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib`),
 but
 {{{
 clang conftest.c -llapack -L/opt/local/lib
 }}}
 fails. See also #40317.

-- 
Ticket URL: <https://trac.macports.org/ticket/29595#comment:28>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list