Hi William,

I've added a pull request which makes the Octave configuration a bit more robust. If Octave is too old to support the command-line arguments needed for configuration, configure should fail with an error (at which point the user will either have to upgrade, or disable Octave), rather than giving a cryptic error message in the Makefile.

Cheers,
Karl


On 11 June 2013 11:25, Kris Thielemans <kris.f.thielemans@gmail.com> wrote:
Hi

I think the change here is that octave is no longer in the path, so
configure wouldn't find it. The previous makefile was incorrect and wouldn't
have worked with gmake either.

I probably won't have time to install an old octave version myself for
another week or so. Sorry.

Kris

PS top-posting now, as it otherwise gets too confusing.

> -----Original Message-----
> From: Soni Umesh-MBV684 [mailto:MBV684@motorolasolutions.com]
> Sent: 11 June 2013 10:07
> To: William S Fulton; Karl Wette; Kris Thielemans
> Cc: swig-devel
> Subject: RE: [Swig-devel] Getting error in Makefile
>
> Hi William, Karl and  Kris,
>
> Thanks lot for all of you for looking into my request.
>
> As i had informed William on May 30 mail attached here.
>
> "Our problem has been resolved and we have installed successfully swig-
> 2.0.10.
>
> il02build04x> /apps/public/swig_2.0.10/bin/swig -version
> SWIG Version 2.0.10
> Compiled with g++ [i386-pc-solaris2.10]
> Configured options: +pcre
> Please see http://www.swig.org for reporting bugs and further information
>
> The problem resolved using gmake at /usr/sfw/bin/gmake for compilation.
>
> Thanks lot for all your help"
>
>
> I think there might be some problem occurred between mail communication.
>
> I apologies for delay in communication.  But we could compile swig by just
> changing the gmake to /usr/sfw/bin/gmake.
>
> Regarding the octave, with the same instal time setup we could not find
> octave.
>
> t-solx86-iden()[!]> octave --help
> bash: octave: command not found
>
>
> Please let me know if any other information required.
>
>
>
> Thanks & Regards,
> Umesh Soni
> Global Engineering Tools Support
> +91 22 6778 2517
> Email: mbv684@motorolasolutions.com
>
> ________________________________________
> From: William Fulton [william@fultondesigns.co.uk] on behalf of William S
> Fulton [wsf@fultondesigns.co.uk]
> Sent: Tuesday, June 11, 2013 12:25 AM
> To: Karl Wette; Kris Thielemans; Soni Umesh-MBV684
> Cc: swig-devel
> Subject: Re: [Swig-devel] Getting error in Makefile
>
> I'm sure Soni will upgrade Octave if he needs SWIG support. However, I
> get the impression he isn't interested in Octave. Soni can you please
> respond with more info as requested. However, I would like this fixed
> soon, so perhaps Karl/Kris could try installing an old Octave to
> replicate the bug so that the Makefiles can be fixed. I see this as high
> priority as I believe the install experience 'should just work' for
> everyone no matter what unrelated (to building the exe) packages are
> installed on a machine.
>
> Thanks
> William
>
> On 04/06/13 22:24, Karl Wette wrote:
> > I second this - I doubt modern SWIG will work with Octave 2.* versions,
> > so either they'll need to upgrade Octave, or disable it if it's not
needed.
> >
> > Cheers,
> > Karl
> >
> >
> > On 4 June 2013 23:00, Kris Thielemans  wrote:
> >
> >     Hi
> >
> >     This is probably caused by the configure.in <http://configure.in>
> >     for setting that variable. It
> >     goes like this (on my relatively recent swig)
> >
> >           OCTAVE_CPPFLAGS="${OCTAVE_CPPFLAGS} "`$OCTAVE -qfH --eval
> >     "mkoctfile -p
> >     $n"`
> >
> >     The contents of the Makefile seems to indicate that Octave 2.7.1
doesn't
> >     understand some of these flags (although probably Soni truncated
> >     some of the
> >     output). Soni could diagnose this a bit further by doing
> >
> >              $ octave --help
> >
> >     and send us that. If sufficient flags would be supported, the
> >     configure.in <http://configure.in>
> >     could be adapted accordingly, possibly by testing the octave version
> >     first
> >     (I wouldn't know how to do that unfortunately).
> >
> >     Possible work-arounds:
> >     - if Octave isn't needed: use configure with the --without-octave
> >     flag, or
> >     remove octave from the path before building swig.
> >     - If Octave is needed: upgrade octave! (2.7.1 is very old and
> >     unlikely to
> >     work with current SWIG anyway).
> >
> >     Hope this helps
> >
> >     Kris
> >
> >      > -----Original Message-----
> >      > From: William S Fulton [mailto:wsf@fultondesigns.co.uk
> >     <mailto:wsf@fultondesigns.co.uk>]
> >      > Sent: 04 June 2013 21:42
> >      > To: Soni Umesh-MBV684; swig-devel
> >      > Subject: Re: [Swig-devel] Getting error in Makefile
> >      >
> >      > Soni,
> >      >
> >      > Could you send us the output of running configure to help
diagnose?
> >      >
> >      > Thanks
> >      > William
> >      >
> >      > On 30/05/13 11:45, Soni Umesh-MBV684 wrote:
> >      > > Hi William,
> >      > >
> >      > > Originally we got error at line no. 224.
> >      > >
> >      > >> make
> >      > > make[1]: Entering directory `/home/mbv684/swig-2.0.10/Source'
> >      > > Makefile:224: *** missing separator.  Stop.
> >      > > make[1]: Leaving directory `/home/mbv684/swig-2.0.10/Source'
> >      > > make: *** [source] Error 2
> >      > >
> >      > > When we commented line no. 224 to 227 we got same error at line
> no.
> >      > 223.
> >      > >
> >      > >> make
> >      > > make[1]: Entering directory `/home/mbv684/swig-2.0.10/Source'
> >      > > Makefile:233: *** missing separator.  Stop.
> >      > > make[1]: Leaving directory `/home/mbv684/swig-2.0.10/Source'
> >      > > make: *** [source] Error 2
> >      > >
> >      > > Below are the contents of
> >     /home/mbv684/swig-2.0.10/Source/Makefile.
> >      > >
> >      > >     220  OCAMLMKTOP = ocamlmktop
> >      > >     221  OCAMLVER = 3.08.4
> >      > >     222  OCTAVE = octave
> >      > >     223  OCTAVE_CPPFLAGS =  GNU Octave, version 2.1.71
(i386-pc-
> >      > solaris2.10).
> >      > >     224  Copyright (C) 2005 John W. Eaton.
> >      > >     225  This is free software; see the source code for copying
> >     conditions.
> >      > >     226  There is ABSOLUTELY NO WARRANTY; not even for
> >      > MERCHANTIBILITY or
> >      > >     227  FITNESS FOR A PARTICULAR PURPOSE.
> >      > >     228
> >      > >     229  Usage: octave [options]
> >      > >     230
> >      > >     231  Options:
> >      > >     232
> >      > >     233    --debug, -d             Enter parser debugging mode.
> >      > >     234    --echo-commands, -x     Echo commands as they are
> >     executed.
> >      > >     235    --exec-path PATH        Set path for executing
> >     subprograms.
> >      > >
> >      > >
> >      > >
> >      > >
> >      > > Thanks & Regards,
> >      > > Umesh Soni
> >      > > Global Engineering Tools Support
> >      > > +91 22 6778 2517
> >      > > Email: mbv684@motorolasolutions.com
> >     <mailto:mbv684@motorolasolutions.com>
> >      > > ________________________________________
> >      > > From: William Fulton [william@fultondesigns.co.uk
> >     <mailto:william@fultondesigns.co.uk>] on behalf of William
> >     S
> >      > Fulton [wsf@fultondesigns.co.uk <mailto:wsf@fultondesigns.co.uk>]
> >      > > Sent: Wednesday, May 29, 2013 11:09 PM
> >      > > To: Soni Umesh-MBV684
> >      > > Cc: swig-devel@lists.sourceforge.net
> >     <mailto:swig-devel@lists.sourceforge.net>
> >      > > Subject: Re: [Swig-devel] Getting error in Makefile
> >      > >
> >      > > Did you look at line 233 to see what the problem is? Can you
> >     post the
> >      > > contents of the Makefile?
> >      > >
> >      > > William
> >      > >
> >      > > On 29/05/13 08:28, Soni Umesh-MBV684 wrote:
> >      > >> Hi William,
> >      > >>
> >      > >> Thanks lot for reply, you are absolutely correct, below
> >     mentioned error
> >      > we were getting while using solaris make.
> >      > >>
> >      > >> When we use gnu make which we installed recently for this
> >     purpose the
> >      > version make-3.81.
> >      > >>
> >      > >> We are getting below error.
> >      > >>
> >      > >>> make
> >      > >> make[1]: Entering directory `/home/mbv684/swig-2.0.10/Source'
> >      > >> Makefile:233: *** missing separator.  Stop.
> >      > >> make[1]: Leaving directory `/home/mbv684/swig-2.0.10/Source'
> >      > >> make: *** [source] Error 2
> >      > >>    or
> >      > >>> gmake
> >      > >> gmake[1]: Entering directory `/home/mbv684/swig-2.0.10/Source'
> >      > >> Makefile:233: *** missing separator.  Stop.
> >      > >> gmake[1]: Leaving directory `/home/mbv684/swig-2.0.10/Source'
> >      > >> gmake: *** [source] Error 2
> >      > >>
> >      > >> Any idea or corrective action for above problem?
> >      > >> Your help or suggetion would be very appreciated.
> >      > >>
> >      > >>
> >      > >> Thanks & Regards,
> >      > >> Umesh Soni
> >      > >> Global Engineering Tools Support
> >      > >> +91 22 6778 2517
> >      > >> Email: mbv684@motorolasolutions.com
> >     <mailto:mbv684@motorolasolutions.com>
> >      > >>
> >      > >> ________________________________________
> >      > >> From: William Fulton [william@fultondesigns.co.uk
> >     <mailto:william@fultondesigns.co.uk>] on behalf of William
> >      > S Fulton [wsf@fultondesigns.co.uk
> <mailto:wsf@fultondesigns.co.uk>]
> >      > >> Sent: Wednesday, May 29, 2013 12:38 AM
> >      > >> To: Soni Umesh-MBV684
> >      > >> Cc: swig-devel@lists.sourceforge.net
> >     <mailto:swig-devel@lists.sourceforge.net>
> >      > >> Subject: Re: [Swig-devel] Getting error in Makefile
> >      > >>
> >      > >> On 27/05/13 18:23, Soni Umesh-MBV684 wrote:
> >      > >>> Hi Team,
> >      > >>>
> >      > >>> I am trying to build swg-2.0.9 on below system.
> >      > >>>
> >      > >>>    > uname -a
> >      > >>>
> >      > >>> SunOS il02build04x 5.10 Generic_141445-09 i86pc i386 i86pc
> >      > >>>
> >      > >>> After untar the source file below commands have been
executing.
> >      > >>>
> >      > >>>    > ./autogen.sh ============  success
> >      > >>>
> >      > >>>    >./configure --prefix=/apps/public/swig_2.0.9
> >      > >>> --with-python=/apps/public/bin/python_275    ============
> success
> >      > >>>
> >      > >>> While running make command its giving below error.
> >      > >>>
> >      > >>>    > make
> >      > >>>
> >      > >>> make: Fatal error in reader: Makefile, line 153: Unexpected
> >     end of
> >     line
> >      > seen
> >      > >>>
> >      > >> Probably you are using Solaris make instead of GNU make.
> >      > >>
> >      > >> William
> >      > >>
> >      > >>
> >      > >
> >      > >
> >      >
> >      >
> >      >



------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Swig-devel mailing list
Swig-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swig-devel