[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #38098] package database-1.0.4 compiling issue
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #38098] package database-1.0.4 compiling issues with mkoctave |
Date: |
Tue, 15 Jan 2013 21:33:30 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.11) Gecko/20100101 Firefox/10.0.11 Iceweasel/10.0.11 |
URL:
<http://savannah.gnu.org/bugs/?38098>
Summary: package database-1.0.4 compiling issues with
mkoctave
Project: GNU Octave
Submitted by: None
Submitted on: Tue 15 Jan 2013 21:33:29 UTC
Category: Libraries
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Assigned to: None
Originator Name: richard
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
Release: 3.6.3
Operating System: GNU/Linux
_______________________________________________________
Details:
Initially, it was not possible to compile database-1.0.4
I was running Debian|Wheezy packages, but see later text.
I still have some problems, and have not yet tested whether
the package as compiled works with octave pkg, so this is still a
work in progress.
I have mysql on this system, the report says mysql.h is not found,
so that is on my ToDo list.
I also have postgresql and sqlite3 - these get compiled into the
package. the work needed is described below.
patch sqlite3_filtered.h
-int sqlite3_auto_extension(void *xEntryPoint);
+int sqlite3_auto_extension(void (*xEntryPoint)(void));
Then, in /database-1.0.4/src run
swig -c++ -octave sqlite3.i
swig -c++ -octave postgres.i
mv postgres_wrap.cxx postgres_wrap.cpp
mv sqlite3_wrap.cxx sqlite3_wrap.cpp
patch postgres_wrap.cpp and sqlite3_wrap.cpp with this
#define SWIG_OCT_SEGF_HACK_ATEXIT_FCN(NAME)
_SWIG_OCT_SEGF_HACK_ATEXIT_FCN(NAME)
+#include <cstdlib>
void SWIG_OCT_SEGF_HACK_ATEXIT_FCN(SWIG_name)(void) {
- _exit(exit_status);
+ _Exit(exit_status);
}
#endif
I need a workaround because of this error
sqlite3_wrap.cpp: In function ‘octave_value_list
_wrap_sqlite3_vmprintf(const octave_value_list&, int)’:
sqlite3_wrap.cpp:2943:34: error: invalid array assignment
I do not sqlite3 at this time so comment out the problem
/* arg2 = *((va_list *)(argp2)); # fixme - ral */
To get this to compile, I had to install
liboctave-3.2.4 - it was the nearest I had to the version of
the database package.
./autogen.sh
./configure
make
I had earlier tried liboctave-dev_3.6.2-2_amd64.deb but it
failed with this error:
In file included from /usr/include/octave-3.6.2/octave/../octave/oct.h:31:0,
from postgres_wrap.cpp:153:
/usr/include/octave-3.6.2/octave/../octave/config.h:3052:25: error: multiple
types in one declaration
/usr/include/octave-3.6.2/octave/../octave/config.h:3052:25: error:
declaration does not declare anything [-fpermissive]
To try to determine the cause of the error, I replaced
the /octave-3.6.2/octave directory with that from
octave-3.2.4/octave, confirmed that that compiled, and began
replacing the old files with new. When all the files were
copied across, the package again compiled.
When I revert back to /octave-3.6.2/octave, the error returns.
I attach two gzipped files :
octave - this is the vanilla /octave-3.6.2/octave it fails.
octave.one - this is the /octave-3.6.2/octave with some old files. it
compiles.
ToDo - test the compiled package with octave and pkg ;-)
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Tue 15 Jan 2013 21:33:29 UTC Name: octave.tar.gz Size: 574kB By:
None
<http://savannah.gnu.org/bugs/download.php?file_id=27276>
-------------------------------------------------------
Date: Tue 15 Jan 2013 21:33:29 UTC Name: octave.one.tar.gz Size: 492kB By:
None
<http://savannah.gnu.org/bugs/download.php?file_id=27277>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?38098>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #38098] package database-1.0.4 compiling issues with mkoctave,
anonymous <=