On Fri, Mar 26, 2010 at 6:47 AM, Jaroslav Hajek <high...@gmail.com> wrote: > On Fri, Mar 26, 2010 at 5:23 AM, <n...@itimes.com> wrote: >> Dear Sir. >> >> In that case, what is the next step I should take to get rid of the error? >> >> Thanks. >> >> Nands >> > > You can fix octcdf, or wait for someone else to do it. You may also > contact the maintainer. > >
Hi, I tried to look into this issue. Unfortunately, the compilation of octave version 3.3.51 fails on my system (ubuntu 8.04 x86_64, gcc 4.2.4) at: Making all in interpreter make[3]: Entering directory `/home/abarth/Download/octave-3.3.51/doc/interpreter' ../../run-octave -f -q -H ./mk_doc_cache.m doc-cache ../../scripts/DOCSTRINGS ../../src/DOCSTRINGS || { rm -f doc-cache; exit 1; } Segmentation fault make[3]: *** [doc-cache] Error 1 make[3]: Leaving directory `/home/abarth/Download/octave-3.3.51/doc/interpreter' Below is a gdb session. Has this problem already been reported? I tried to build the development version from hg, but my aclocal does not understand the --force option which is now used in autogen.sh. Indeed, some objects did not overload the 'octave_idx_type numel() const' method (only the file object did so). I changed this and in the present svn version of octcdf, I can now run your code (with octave 3.2.4) as: cdf = netcdf('glo_att.nc','c'); cdf('lon') = 6; cdf('lat') = 4; cdf{'var'} = ncchar('lon','lat'); nv = cdf{'var'}; nv.units = 'm'; close(cdf); Nands, it would be great if you can test the svn version of octcdf with your more recent version of octave (see 'installing octcdf from svn' below). You should be able to use directly: nc{'var'}.units = 'm'; without the variable nv. Can you confirm this? Thanks and best regards, Alex -------------------------------------------------- aba...@gher-diva:~/Download/octave-3.3.51/doc/interpreter$ ../../run-octave -g GNU gdb 6.8-debian Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu"... /home/abarth/.gdbinit:1: Error in sourced command file: No symbol table is loaded. Use the "file" command. (gdb) run Starting program: /home/abarth/Download/octave-3.3.51/src/.libs/lt-octave --no-init-path --path=/home/abarth/Download/octave-3.3.51/test:/home/abarth/Download/octave-3.3.51/scripts:/home/abarth/Download/octave-3.3.51/scripts/sparse:/home/abarth/Download/octave-3.3.51/scripts/polynomial:/home/abarth/Download/octave-3.3.51/scripts/image:/home/abarth/Download/octave-3.3.51/scripts/pkg:/home/abarth/Download/octave-3.3.51/scripts/path:/home/abarth/Download/octave-3.3.51/scripts/testfun:/home/abarth/Download/octave-3.3.51/scripts/plot:/home/abarth/Download/octave-3.3.51/scripts/audio:/home/abarth/Download/octave-3.3.51/scripts/linear-algebra:/home/abarth/Download/octave-3.3.51/scripts/miscellaneous:/home/abarth/Download/octave-3.3.51/scripts/.deps:/home/abarth/Download/octave-3.3.51/scripts/io:/home/abarth/Download/octave-3.3.51/scripts/set:/home/abarth/Download/octave-3.3.51/scripts/statistics:/home/abarth/Download/octave-3.3.51/scripts/statistics/distributions:/home/abarth/Download/octave-3.3.51/scripts/statistics/base:/home/abarth/Download/octave-3.3.51/scripts/statistics/models:/home/abarth/Download/octave-3.3.51/scripts/statistics/tests:/home/abarth/Download/octave-3.3.51/scripts/elfun:/home/abarth/Download/octave-3.3.51/scripts/optimization:/home/abarth/Download/octave-3.3.51/scripts/signal:/home/abarth/Download/octave-3.3.51/scripts/.libs:/home/abarth/Download/octave-3.3.51/scripts/strings:/home/abarth/Download/octave-3.3.51/scripts/startup:/home/abarth/Download/octave-3.3.51/scripts/deprecated:/home/abarth/Download/octave-3.3.51/scripts/specfun:/home/abarth/Download/octave-3.3.51/scripts/special-matrix:/home/abarth/Download/octave-3.3.51/scripts/general:/home/abarth/Download/octave-3.3.51/scripts/help:/home/abarth/Download/octave-3.3.51/scripts/time:/home/abarth/Download/octave-3.3.51/scripts/geometry:/home/abarth/Download/octave-3.3.51/scripts:/home/abarth/Download/octave-3.3.51/scripts/sparse:/home/abarth/Download/octave-3.3.51/scripts/polynomial:/home/abarth/Download/octave-3.3.51/scripts/image:/home/abarth/Download/octave-3.3.51/scripts/pkg:/home/abarth/Download/octave-3.3.51/scripts/path:/home/abarth/Download/octave-3.3.51/scripts/testfun:/home/abarth/Download/octave-3.3.51/scripts/plot:/home/abarth/Download/octave-3.3.51/scripts/audio:/home/abarth/Download/octave-3.3.51/scripts/linear-algebra:/home/abarth/Download/octave-3.3.51/scripts/miscellaneous:/home/abarth/Download/octave-3.3.51/scripts/.deps:/home/abarth/Download/octave-3.3.51/scripts/io:/home/abarth/Download/octave-3.3.51/scripts/set:/home/abarth/Download/octave-3.3.51/scripts/statistics:/home/abarth/Download/octave-3.3.51/scripts/statistics/distributions:/home/abarth/Download/octave-3.3.51/scripts/statistics/base:/home/abarth/Download/octave-3.3.51/scripts/statistics/models:/home/abarth/Download/octave-3.3.51/scripts/statistics/tests:/home/abarth/Download/octave-3.3.51/scripts/elfun:/home/abarth/Download/octave-3.3.51/scripts/optimization:/home/abarth/Download/octave-3.3.51/scripts/signal:/home/abarth/Download/octave-3.3.51/scripts/.libs:/home/abarth/Download/octave-3.3.51/scripts/strings:/home/abarth/Download/octave-3.3.51/scripts/startup:/home/abarth/Download/octave-3.3.51/scripts/deprecated:/home/abarth/Download/octave-3.3.51/scripts/specfun:/home/abarth/Download/octave-3.3.51/scripts/special-matrix:/home/abarth/Download/octave-3.3.51/scripts/general:/home/abarth/Download/octave-3.3.51/scripts/help:/home/abarth/Download/octave-3.3.51/scripts/time:/home/abarth/Download/octave-3.3.51/scripts/geometry:/home/abarth/Download/octave-3.3.51/src:/home/abarth/Download/octave-3.3.51/src/DLD-FUNCTIONS:/home/abarth/Download/octave-3.3.51/src/DLD-FUNCTIONS/.deps:/home/abarth/Download/octave-3.3.51/src/DLD-FUNCTIONS/.libs:/home/abarth/Download/octave-3.3.51/src/.deps:/home/abarth/Download/octave-3.3.51/src/OPERATORS:/home/abarth/Download/octave-3.3.51/src/OPERATORS/.deps:/home/abarth/Download/octave-3.3.51/src/OPERATORS/.libs:/home/abarth/Download/octave-3.3.51/src/.libs:/home/abarth/Download/octave-3.3.51/src/TEMPLATE-INST:/home/abarth/Download/octave-3.3.51/src/TEMPLATE-INST/.deps:/home/abarth/Download/octave-3.3.51/src/TEMPLATE-INST/.libs --image-path=/home/abarth/Download/octave-3.3.51/scripts/image --doc-cache-file=/home/abarth/Download/octave-3.3.51/doc/interpreter/doc-cache --info-file=/home/abarth/Download/octave-3.3.51/doc/interpreter/octave.info [Thread debugging using libthread_db enabled] [New Thread 0x7fcab77ff6f0 (LWP 14438)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fcab77ff6f0 (LWP 14438)] 0x00007fcab75c0048 in sigemptyset () from /home/abarth/Download/octave-3.3.51/src/.libs/liboctinterp-3.3.51.so (gdb) where #0 0x00007fcab75c0048 in sigemptyset () from /home/abarth/Download/octave-3.3.51/src/.libs/liboctinterp-3.3.51.so #1 0x00007fcab6b450d1 in octave_set_signal_handler (sig=2, handler=0x7fcab6b459e0 <sigint_handler>, restart_syscalls=true) at sighandlers.cc:198 #2 0x00007fcab6b4517a in octave_catch_interrupts () at sighandlers.cc:474 #3 0x00007fcab6b451e3 in install_signal_handlers () at sighandlers.cc:543 #4 0x00007fcab6b1b079 in octave_main (argc=6, argv=0x7fff7d2e6288, embedded=0) at octave.cc:620 #5 0x00007fcab00ee1c4 in __libc_start_main () from /lib/libc.so.6 #6 0x00000000004007c9 in _start () (gdb) ------------------------------------------------------------- installing octcdf from svn $ svn co https://octave.svn.sourceforge.net/svnroot/octave/trunk/octave-forge/main/octcdf A octcdf/DESCRIPTION [...] A octcdf/inst/example_opendap.m U octcdf Checked out revision 7129. $ ls octcdf [...] $ octave GNU Octave, version 3.2.4 [...] >> pkg install -global -verbose octcdf ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev