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 <kris.f.thielemans@gmail.com> wrote:
Hi

This is probably caused by the 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
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]
> 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
> > ________________________________________
> > From: William Fulton [william@fultondesigns.co.uk] on behalf of William
S
> Fulton [wsf@fultondesigns.co.uk]
> > Sent: Wednesday, May 29, 2013 11:09 PM
> > To: Soni Umesh-MBV684
> > Cc: 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
> >>
> >> ________________________________________
> >> From: William Fulton [william@fultondesigns.co.uk] on behalf of William
> S Fulton [wsf@fultondesigns.co.uk]
> >> Sent: Wednesday, May 29, 2013 12:38 AM
> >> To: Soni Umesh-MBV684
> >> Cc: 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
> >>
> >>
> >
> >
>
>
>
----------------------------------------------------------------------------
--
> How ServiceNow helps IT people transform IT departments:
> 1. A cloud service to automate IT design, transition and operations
> 2. Dashboards that offer high-level views of enterprise services
> 3. A single system of record for all IT processes
> http://p.sf.net/sfu/servicenow-d2d-j
> _______________________________________________
> Swig-devel mailing list
> Swig-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/swig-devel


------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
Swig-devel mailing list
Swig-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swig-devel