bugGNU Octave - Bugs: bug #38106, liboctave-dev fails to compile...

 
 

bug #38106: liboctave-dev fails to compile database-1.0.4

Submitter:  None
Submitted:  Thu 17 Jan 2013 02:13:41 PM UTC
   
 
Category:  Libraries Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Duplicate Assigned to:  None
Originator Name:  richard Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 3.6.2
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Thu 17 Jan 2013 06:45:53 PM UTC, comment #7: 


>I'm closing this bug, marking it as a duplicate of bug #38098

Ok agreed. I can't argue with that.

Anonymous
Thu 17 Jan 2013 06:27:36 PM UTC, comment #6: 

Oh. You're specifically complaining about the lack of oct-types.h? That was intentionally removed a long time ago:

http://hg.savannah.gnu.org/hgweb/octave/rev/11844593875a

It looks to me like the problem is that the database package just never got updated to reflect the new Octave "API".

I'm closing this bug, marking it as a duplicate of bug #38098. I hope you agree.

Jordi Gutiérrez Hermoso <jordigh>
Group Member
Thu 17 Jan 2013 06:15:41 PM UTC, comment #5: 


>I still don't understand what part you think is buggy.


I am not sure myself. Perhaps detailing the sequence will help.
The debian package liboctave-dev_3.6.2-2.amd64.deb does not contain oct-types.h I have installed that and database_1.0.4


$ cd ,/test/octave.database/database-1.0.4/src
$ ./configure
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for mkoctfile... mkoctfile
retrieving compile and link flags from mkoctfile
checking for F77_FUNC... yes
checking for SLList.h... no
checking for lo_ieee_nan_value... yes
checking for octave_idx_type... yes
checking for quit.h... yes
checking for octave... octave
checking for OCTAVE_VERSION in Octave... 3.6.2
checking for octave_config_info('canonical_host_type') in Octave... x86_64-pc-linux-gnu
checking for octave_config_info('SHLEXT') in Octave... so
checking whether ln -s works... yes
checking for ranlib... ranlib
checking for strip... strip
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking postgresql/libpq-fe.h usability... yes
checking postgresql/libpq-fe.h presence... yes
checking for postgresql/libpq-fe.h... yes
checking mysql/mysql.h usability... no
checking mysql/mysql.h presence... no
checking for mysql/mysql.h... no
checking sqlite3.h usability... yes
checking sqlite3.h presence... yes
checking for sqlite3.h... yes
checking sql.h usability... no
checking sql.h presence... no
checking for sql.h... no
configure: creating ./config.status
config.status: creating Makeconf
 
  "$prefix" is /usr/local
  "$exec_prefix" is ${prefix}

octave commands will install into the following directories:
   m-files:   /usr/share/octave/3.6.2/site/m/octave-forge
   oct-files: /usr/lib/x86_64-linux-gnu/octave/3.6.2/site/oct/x86_64-pc-linux-gnu/octave-forge
   binaries:  /usr/lib/x86_64-linux-gnu/octave/3.6.2/site/exec/x86_64-pc-linux-gnu
alternatives:
   m-files:   /usr/share/octave/3.6.2/site/octave-forge-alternatives/m
   oct-files: /usr/lib/x86_64-linux-gnu/octave/3.6.2/site/octave-forge-alternatives/oct/x86_64-pc-linux-gnu

shell commands will install into the following directories:
   binaries:  ${exec_prefix}/bin
   man pages: ${datarootdir}/man
   libraries: ${exec_prefix}/lib
   headers:   ${prefix}/include

octave-forge is configured with
   octave:      octave (version 3.6.2)
   mkoctfile: mkoctfile for Octave 2
   swig:        pre-generated
   postgres:    yes
   mysql:       mysql/mysql.h not found
   sqlite3:     yes
   odbc:        sql.h not found

find . -name NOINSTALL -print    # shows which toolboxes won't be installed

richard@ced2:~/test/octave.database/database-1.0.4/src$ make
CXXFLAGS="-g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -fopenmp" mkoctfile -DHAVE_OCTAVE_36 -v -Wl,-z,relro -o postgres.oct postgres_wrap.cpp -lpq
g++ -c -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-3.6.2/octave/.. -I/usr/include/octave-3.6.2/octave -I/usr/include/mpi -I/usr/include/freetype2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -fopenmp -DHAVE_OCTAVE_36 postgres_wrap.cpp -o postgres_wrap.o
g++ -shared -Wl,-Bsymbolic -o postgres.oct postgres_wrap.o -Wl,-z,relro -lpq -L/usr/lib/x86_64-linux-gnu/octave/3.6.2 -L/usr/lib/x86_64-linux-gnu -loctinterp -loctave -lcruft -Wl,-z,relro
CXXFLAGS="-g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -fopenmp" mkoctfile -DHAVE_OCTAVE_36 -v -Wl,-z,relro -o sqlite3.oct -lsqlite3 sqlite3_wrap.cpp
g++ -c -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-3.6.2/octave/.. -I/usr/include/octave-3.6.2/octave -I/usr/include/mpi -I/usr/include/freetype2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -fopenmp -DHAVE_OCTAVE_36 sqlite3_wrap.cpp -o sqlite3_wrap.o
g++ -shared -Wl,-Bsymbolic -o sqlite3.oct sqlite3_wrap.o -Wl,-z,relro -lsqlite3 -L/usr/lib/x86_64-linux-gnu/octave/3.6.2 -L/usr/lib/x86_64-linux-gnu -loctinterp -loctave -lcruft -Wl,-z,relro
richard@ced2:~/test/octave.database/database-1.0.4/src$ mc

richard@ced2:~/test/octave.database/database-1.0.4/src$
richard@ced2:~/test/octave.database/database-1.0.4/src$
richard@ced2:~/test/octave.database/database-1.0.4/src$ rm -i ./postgres.oct ./postgres_wrap.o ./sqlite3.oct ./sqlite3_wrap.o
rm: remove regular file `./postgres.oct'? y
rm: remove regular file `./postgres_wrap.o'? y
rm: remove regular file `./sqlite3.oct'? y
rm: remove regular file `./sqlite3_wrap.o'? y
richard@ced2:~/test/octave.database/database-1.0.4/src$ mc

richard@ced2:~/test/octave.database/database-1.0.4/src$ mc

richard@ced2:~/test/octave.database/database-1.0.4/src$ ./autogen.sh
richard@ced2:~/test/octave.database/database-1.0.4/src$ ./configure
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for mkoctfile... mkoctfile
retrieving compile and link flags from mkoctfile
checking for F77_FUNC... yes
checking for SLList.h... no
checking for lo_ieee_nan_value... yes
checking for octave_idx_type... no
checking for quit.h... no
checking for octave... octave
checking for OCTAVE_VERSION in Octave... 3.6.2
checking for octave_config_info('canonical_host_type') in Octave... x86_64-pc-linux-gnu
checking for octave_config_info('SHLEXT') in Octave... so
checking whether ln -s works... yes
checking for ranlib... ranlib
checking for strip... strip
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking postgresql/libpq-fe.h usability... yes
checking postgresql/libpq-fe.h presence... yes
checking for postgresql/libpq-fe.h... yes
checking mysql/mysql.h usability... no
checking mysql/mysql.h presence... no
checking for mysql/mysql.h... no
checking sqlite3.h usability... yes
checking sqlite3.h presence... yes
checking for sqlite3.h... yes
checking sql.h usability... no
checking sql.h presence... no
checking for sql.h... no
configure: creating ./config.status
config.status: creating Makeconf
 
  "$prefix" is /usr/local
  "$exec_prefix" is ${prefix}

octave commands will install into the following directories:
   m-files:   /usr/share/octave/3.6.2/site/m/octave-forge
   oct-files: /usr/lib/x86_64-linux-gnu/octave/3.6.2/site/oct/x86_64-pc-linux-gnu/octave-forge
   binaries:  /usr/lib/x86_64-linux-gnu/octave/3.6.2/site/exec/x86_64-pc-linux-gnu
alternatives:
   m-files:   /usr/share/octave/3.6.2/site/octave-forge-alternatives/m
   oct-files: /usr/lib/x86_64-linux-gnu/octave/3.6.2/site/octave-forge-alternatives/oct/x86_64-pc-linux-gnu

shell commands will install into the following directories:
   binaries:  ${exec_prefix}/bin
   man pages: ${datarootdir}/man
   libraries: ${exec_prefix}/lib
   headers:   ${prefix}/include

octave-forge is configured with
   octave:      octave (version 3.6.2)
   mkoctfile: mkoctfile -Doctave_idx_type=int -DNEED_OCTAVE_QUIT for Octave 2
   swig:        pre-generated
   postgres:    yes
   mysql:       mysql/mysql.h not found
   sqlite3:     yes
   odbc:        sql.h not found

find . -name NOINSTALL -print    # shows which toolboxes won't be installed

As far as I can tell, something has gone wrong - see config.log
at configure:3152 and configure:3174

As it says, configure can't find oct-types.h
and i can't find conftest.cc
My best guess is that Debian should have continued to package
oct-types in their liboctave-dev package. It was included in
liboctave-dev_3.2.4

(file #27295)

Anonymous
Thu 17 Jan 2013 05:10:28 PM UTC, comment #4: 

Well, liboctave-dev in Debian just contains some parts of Octave the Debian considers to be development libraries. I still don't understand what part you think is buggy. Octave, the database package, or the liboctave-dev Debian package?

Jordi Gutiérrez Hermoso <jordigh>
Group Member
Thu 17 Jan 2013 05:04:35 PM UTC, comment #3: 

OK, thanks - my bad
The liboctave-dev report goes to Debian.

Anonymous
Thu 17 Jan 2013 03:23:01 PM UTC, comment #2: 

Also, note that "liboctave-dev" is just the name of a Debian package. It's not intrinsic to Octave itself. If you have bugs with Debian packages, you should report them to Debian.

Jordi Gutiérrez Hermoso <jordigh>
Group Member
Thu 17 Jan 2013 03:20:47 PM UTC, comment #1: 

I don't get it. What are you reporting a bug against? Octave or the database package?

Jordi Gutiérrez Hermoso <jordigh>
Group Member
Thu 17 Jan 2013 02:13:41 PM UTC, original submission:  

database-1.0.4 needs some tweaks - even then compiling fails with this message:


$ make
CXXFLAGS="-g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -fopenmp" mkoctfile -Doctave_idx_type=int -DNEED_OCTAVE_QUIT -DHAVE_OCTAVE_36 -v -Wl,-z,relro -o postgres.oct postgres_wrap.cpp -lpq
g++ -c -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-3.6.2/octave/.. -I/usr/include/octave-3.6.2/octave -I/usr/include/mpi -I/usr/include/freetype2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -fopenmp -Doctave_idx_type=int -DNEED_OCTAVE_QUIT -DHAVE_OCTAVE_36 postgres_wrap.cpp -o postgres_wrap.o
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]
make: *** [postgres.oct] Error 1


When this file is copied from liboctave-dev-3.2.4 it compiles:
oct-types.h

with this message:

$ make
CXXFLAGS="-g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -fopenmp" mkoctfile -DHAVE_OCTAVE_36 -v -Wl,-z,relro -o postgres.oct postgres_wrap.cpp -lpq
g++ -c -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-3.6.2/octave/.. -I/usr/include/octave-3.6.2/octave -I/usr/include/mpi -I/usr/include/freetype2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -fopenmp -DHAVE_OCTAVE_36 postgres_wrap.cpp -o postgres_wrap.o
g++ -shared -Wl,-Bsymbolic -o postgres.oct postgres_wrap.o -Wl,-z,relro -lpq -L/usr/lib/x86_64-linux-gnu/octave/3.6.2 -L/usr/lib/x86_64-linux-gnu -loctinterp -loctave -lcruft -Wl,-z,relro
CXXFLAGS="-g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -fopenmp" mkoctfile -DHAVE_OCTAVE_36 -v -Wl,-z,relro -o sqlite3.oct -lsqlite3 sqlite3_wrap.cpp
g++ -c -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-3.6.2/octave/.. -I/usr/include/octave-3.6.2/octave -I/usr/include/mpi -I/usr/include/freetype2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -fopenmp -DHAVE_OCTAVE_36 sqlite3_wrap.cpp -o sqlite3_wrap.o
g++ -shared -Wl,-Bsymbolic -o sqlite3.oct sqlite3_wrap.o -Wl,-z,relro -lsqlite3 -L/usr/lib/x86_64-linux-gnu/octave/3.6.2 -L/usr/lib/x86_64-linux-gnu -loctinterp -loctave -lcruft -Wl,-z,relro


Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #27295:  config.log added by None (21KiB - text/x-log)

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jordigh (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-01-17 jordigh StatusNone Duplicate
        Open/ClosedOpen Closed
        Dependencies- Depends on bugs #38098
    2013-01-17 None Attached File- Added config.log, #27295

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code