octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: safer way to use gnulib (for other MacOS X users)


From: Thomas Treichl
Subject: Re: safer way to use gnulib (for other MacOS X users)
Date: Wed, 17 Mar 2010 22:04:02 +0100
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3

Am 17.03.10 21:45, schrieb Ben Abbott:
On Wednesday, March 17, 2010, at 03:34PM, "John Swensen"<address@hidden>  wrote:

On Mar 17, 2010, at 3:28 PM, Thomas Treichl wrote:

Am 16.03.10 23:38, schrieb Ben Abbott:
On Mar 16, 2010, at 6:03 PM, John W. Eaton wrote:

On 16-Mar-2010, Ben Abbott wrote:

| The dependencies of lex.cc aren't too many, so it finished quickly. Except 
for the one failure I always get with data.cc, all tests pass.
|
| Thanks again!

OK, so now we finally have Octave+gnulib working on OS X, except that
we need to do something about the possibility of sigemptyset and
sigaddset being defined as preprocessor macros.

I've attached a diff for others who may be building on MacOS X.

Ben

Hi Ben,

I wasn't able to build a development snapshot for a very long time because of 
the gnulib problems. With your patch and a fresh gnulib checkout I get the 
following result on my 10.6 machine

  Summary:
    PASS   6374
    FAIL      0

So wow, thanks to all developers!

  Thomas

Can one of the OSX users who have completed the build give the steps they took? 
 I have been reading through the mailing list and got lost in all the different 
things that have been attempted.  I just tried by using all the dependencies 
supplied by fink and am getting a gfortran issue.  Is there a reason that the 
Octave is complaining about the fink gfortran?

It has been months since I have been able to do a recent build and am really 
looking forward to working in OSX again, rather than a virtual machine with 
Linux.

John

John,

Using libtool prevents mixing gcc versions (the libraries conflict).

You'll need to install gfortran for you system's gcc. You can get one for 
Leopard or Snow Leopard at the link below.

     http://r.research.att.com/tools/

I've attached my notes on how I do my build.

Ben


Nice description, great work! Maybe this could be useful for your description: I was talking to the developer of acx_pthread.m4 and my patch has been applied to the original sources of the m4 fiel. It currently is not in the Octave sources but this will become the official changes (then -D_REENTRANT isn't needed anymore)

  diff -r 3373fdc0b14a m4/acx_pthread.m4
  --- a/m4/acx_pthread.m4 Wed Mar 17 09:34:43 2010 -0400
  +++ b/m4/acx_pthread.m4 Wed Mar 17 21:54:22 2010 +0100
  @@ -149,6 +149,10 @@

           acx_pthread_flags="-pthreads pthread -mt -pthread
  $acx_pthread_flags"
           ;;
  +
  +       *-darwin*)
  +       acx_pthread_flags="-pthread $acx_pthread_flags"
  +       ;;
   esac

   if test x"$acx_pthread_ok" = xno; then

I use Apple's original libtool and this works fine for me (see my email before that I link libttolize to glibtoolize) - I never was able to build and to use my own libtool, a selfmade libtool never worked for me.

The Octave's bootstrap file now correctly comes with the "find_tools shasum" test (I was also talkin' to the developer of bootstrap) and shasum is found in 10.6 directly

  ~/Development/octave$ which shasum
  /usr/bin/shasum

so you don't need this "must download git workaround to install sha1sum" anymore...

But that's it from my side - you already mentioned everything else that's needed! Merci.

  Thomas


reply via email to

[Prev in Thread] Current Thread [Next in Thread]