bugGNU Octave - Bugs: bug #62087, GPIB interface unsupported despite...

 
 

bug #62087: GPIB interface unsupported despite installation of linux-gpib package

Submitter:  Zander Borders <zborders>
Submitted:  Sun 20 Feb 2022 05:34:17 AM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  Fixed Assigned to:  lostbard
Originator Name:  Open/Closed:  * Closed
Release:  * 6.2.0 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Tue 10 May 2022 02:05:44 PM UTC, comment #6: 

No follow up so assuming was fixed by setting the flags per comment #1

John Donoghue <lostbard>
Group Member
Mon 21 Feb 2022 10:04:30 PM UTC, comment #5: 

configure in instrument-cpntroll is using the followig to depoecxt the heaeders and library:

AC_CHECK_HEADERS([gpib/ib.h],
  [AC_SEARCH_LIBS([ibrd], [gpib], [build_gpib=yes], [])] , [] )


So if its not in the default search paths, it will need to be added as per comment #1


John Donoghue <lostbard>
Group Member
Mon 21 Feb 2022 05:57:34 PM UTC, comment #4: 

@zborders: I think something went wrong with your previous post, as it only contains citations from Markus' post (twice). Just in case, you need to reply in savannah interface (https://savannah.gnu.org/bugs/?62087), not via email.

Pantxo Diribarne <pantxo>
Group Member
Mon 21 Feb 2022 04:20:38 AM UTC, comment #3: 

comment #1:

> If you execute the following commands in Octave, it should display the pre-processor and linker flags that are used by default when compiling .oct files:


> mkoctfile -p CPPFLAGS
> mkoctfile -p LDFLAGS


>
> If the paths where you installed the gbip libraries aren't included in these flags, try setting the corresponding environment variables before compiling the package. E.g. in Octave:


> setenv("CPPFLAGS", [strtrim(mkoctfile("-p", "CPPFLAGS")), " -I/usr/local/include"]);
> setenv("LDFLAGS", [strtrim(mkoctfile("-p", "LDFLAGS")), " -L/usr/local/lib"]);
> pkg install -forge instrument-control


>
> Does that help?


comment #1:

> If you execute the following commands in Octave, it should display the pre-processor and linker flags that are used by default when compiling .oct files:


> mkoctfile -p CPPFLAGS
> mkoctfile -p LDFLAGS


>
> If the paths where you installed the gbip libraries aren't included in these flags, try setting the corresponding environment variables before compiling the package. E.g. in Octave:


> setenv("CPPFLAGS", [strtrim(mkoctfile("-p", "CPPFLAGS")), " -I/usr/local/include"]);
> setenv("LDFLAGS", [strtrim(mkoctfile("-p", "LDFLAGS")), " -L/usr/local/lib"]);
> pkg install -forge instrument-control


>
> Does that help?

Zander Borders <zborders>
Sun 20 Feb 2022 08:16:53 PM UTC, comment #2: 

I downloaded the instrument-control package and searched for the origin of this error message in the source code. At various places I found:


#ifndef BUILD_GPIB
  error ("gpib: Your system doesn't support the GPIB interface");
  return octave_value ();
#else
...


which means that GPIB has probably been disabled at build time, as suggested by Markus. You may also pass the "-verbose" flag to pkg in order to see the results of the configure step.


pkg install -verbose -forge instrument-control


Pantxo Diribarne <pantxo>
Group Member
Sun 20 Feb 2022 01:55:16 PM UTC, comment #1: 

If you execute the following commands in Octave, it should display the pre-processor and linker flags that are used by default when compiling .oct files:

mkoctfile -p CPPFLAGS
mkoctfile -p LDFLAGS


If the paths where you installed the gbip libraries aren't included in these flags, try setting the corresponding environment variables before compiling the package. E.g. in Octave:

setenv("CPPFLAGS", [strtrim(mkoctfile("-p", "CPPFLAGS")), " -I/usr/local/include"]);
setenv("LDFLAGS", [strtrim(mkoctfile("-p", "LDFLAGS")), " -L/usr/local/lib"]);
pkg install -forge instrument-control


Does that help?

Markus Mützel <mmuetzel>
Group administrator
Sun 20 Feb 2022 05:34:17 AM UTC, original submission:  

When I run the code below I receive an unexpected error:


> pkg load instrument-control
> t0 = gpib(0,7);
error: gpib: Your system doesn't support the GPIB interface


I installed the linux-gpib package before installing the octave-instrument-control package, as stated on the Instrument control package octave wiki, and I verified successful installation of the linux-gpib package by using their ibtest program with an NI USB-GPIB-HS adapter to program an HP 3457A multimeter and 8563E spectrum analyzer.

The linux-gpib package installed its headers to /usr/local/include and its libraries to /usr/local/lib. Does the instrument control package expect the linux-gpib headers or libraries to be located somewhere else?


My system:

OS: Debian 11
Octave version: 6.2.0
Instrument control package version: 0.6.0
linux-gpib version: 4.3.4
Installation methods: octave and instrument-control package installed through Debian 11 repositories; linux-gpib installed from source per that packages instructions.

Zander Borders <zborders>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by lostbard (Posted a comment)
  • -email is unavailable- added by pantxo (Posted a comment)
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by zborders (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-05-10 lostbard StatusNone Fixed
        Assigned toNone lostbard
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code