octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #47984] mxe-octave native build fails at gnupl


From: Tatsuro MATSUOKA
Subject: [Octave-bug-tracker] [bug #47984] mxe-octave native build fails at gnuplot build
Date: Mon, 23 May 2016 07:49:54 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36

URL:
  <http://savannah.gnu.org/bugs/?47984>

                 Summary: mxe-octave native build fails at gnuplot build
                 Project: GNU Octave
            Submitted by: tmacchant
            Submitted on: 2016年05月23日 07時49分51秒
                Category: Configuration and Build System
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Build Failure
                  Status: None
             Assigned to: None
         Originator Name: Tatsuro MATSUOKA
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.0.2
        Operating System: GNU/Linux

    _______________________________________________________

Details:


[build]    gnuplot

Failed to build package gnuplot!
------------------------------------------------------------
make[3]: *** [install-recursive] Error 1
make[3]: Leaving directory
`/home/tatsuro/work/octave/mxe-octave/mxe-octave-lunix-e64/tmp-gnuplot/gnuplot-4.6.7/src'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory
`/home/tatsuro/work/octave/mxe-octave/mxe-octave-lunix-e64/tmp-gnuplot/gnuplot-4.6.7'
make[1]: *** [build-only-gnuplot] Error 2
make[1]: Leaving directory
`/home/tatsuro/work/octave/mxe-octave/mxe-octave-lunix-e64'
real    1m13.907s
user    0m55.659s
sys     0m12.047s
------------------------------------------------------------
[log]     
/home/tatsuro/work/octave/mxe-octave/mxe-octave-lunix-e64/log/gnuplot


>From log file



checking for LUA... no
checking for LUA... no
configure: WARNING: Could not find support for lua using pkg-config.
checking for library containing luaL_openlibs... -llua5.1
checking lua.h usability... no
checking lua.h presence... no
checking for lua.h... no
configure: WARNING: please add path to lua.h to CPPFLAGS in Makefile



(part of the last configure output)
  lua/TikZ terminal: yes 




(Compilin term.c)
        mv -f $depbase.Tpo $depbase.Po
In file included from term.h:426:0,
                 from term.c:1436:
../term/lua.trm:109:17: fatal error: lua.h: No such file or directory
 #include <lua.h>
                 ^
compilation terminated.


Apparently this is a bug of gnuplot of checking for lua.
But gnuplot 4.6.7 is the last version of gnuplot 4.6 so that 
commit to gnuplot 4.6 no longer makes sense.

I hacked gnuplot.mk according to ./configure --help of gnuplot-4.6.7


$ ./configure --help
<snip>
  --without-lua         disable lua/TikZ terminal (default enabled)


The I made changeset


# HG changeset patch
# User Tatsuro Matsuoka <address@hidden>
# Date 1463962543 -32400
#      Mon May 23 09:15:43 2016 +0900
# Node ID 7b6769c5ea51728be2aae9221f05807755623752
# Parent  d38d0e08ef4cc0355e5a4709d11190a5e82c273f
workaround for gnuplot build on native build

diff -r d38d0e08ef4c -r 7b6769c5ea51 src/gnuplot.mk
--- a/src/gnuplot.mk    Wed May 04 08:42:44 2016 -0400
+++ b/src/gnuplot.mk    Mon May 23 09:15:43 2016 +0900
@@ -65,7 +65,7 @@
 define $(PKG)_BUILD
     cd '$(1)' && ./configure \
       $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) LIBS=-liconv \
-      --prefix '$(HOST_PREFIX)'
+      --without-lua --prefix='$(HOST_PREFIX)'
     make -C '$(1)' -j '$(JOBS)' install DESTDIR='$(3)'
 endef
 endif


made gnuplot build successful.
(I also correct incomplete prefix handing.)

I attached the patch



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: 2016年05月23日 07時49分51秒  Name: gnuplot_mk.patch  Size: 723B  
By: tmacchant
patch to gnuplot.mk for native build
<http://savannah.gnu.org/bugs/download.php?file_id=37234>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?47984>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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