bugGNU Octave - Bugs: bug #43607, octave-forge instrument-control...

 
 

bug #43607: octave-forge instrument-control 0.2.0: doesnt detect winsock

Submitter:  John Donoghue <lostbard>
Submitted:  Fri 14 Nov 2014 01:01:59 PM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  JohnD Open/Closed:  * Closed
Release:  * 3.8.2 Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Fri 02 Jan 2015 11:12:58 PM UTC, comment #9: 
Andreas Weber <andy1978>
Group Member
Thu 20 Nov 2014 12:38:26 PM UTC, comment #8: 

Patch committed.

Stefan Mahr <dac922>
Fri 14 Nov 2014 04:49:07 PM UTC, comment #7: 

Works in both mxe-octave 32 and 64, which check for all 3 libs using patch attached.



(file #32436)

John Donoghue <lostbard>
Group Member
Fri 14 Nov 2014 04:33:37 PM UTC, comment #6: 

The patch from https://savannah.gnu.org/bugs/index.php?43607#comment4 worked on 32 bit build under mxe-octave (32 bit) so fixes the original bug issue.

I will try 64 bit with the additional check.

John Donoghue <lostbard>
Group Member
Fri 14 Nov 2014 04:27:46 PM UTC, comment #5: 

Win64 + mxe64 needs '_head_lib*64*_libws2_32_a'


Anonymous
Fri 14 Nov 2014 04:04:24 PM UTC, comment #4: 

With 64bit-Windows the function _head_libws2_32_a is renamed to _head_lib32_libws2_32_a. Attached patch should fix build for 64bit.



(file #32435)

Anonymous
Fri 14 Nov 2014 03:38:12 PM UTC, comment #3: 

Windows 7 with 32 bit build


John Donoghue <lostbard>
Group Member
Fri 14 Nov 2014 01:19:51 PM UTC, comment #2: 

winsock is detected, but linking to library doesn't work.

I tested with Win XP only. Are you using 64bit Windows and/or 64bit mxe build?


checking winsock2.h usability... yes
checking winsock2.h presence... yes
checking for winsock2.h... yes
checking for library containing _head_libws2_32_a... no


Anonymous
Fri 14 Nov 2014 01:12:45 PM UTC, comment #1: 

Like Octave core, the instrument-control package will disable features and functions if it can't find the required dependencies.

Carnë Draug <carandraug>
Group Member
Fri 14 Nov 2014 01:01:59 PM UTC, original submission:  

On installing from octave forge, using mxe-octave 3.8.2, configure doesn't detect winsock.


>> pkg install -forge -verbose instrument-control
mkdir (C:UsersJDONOG~1.ECEAppDataLocalTempoct-17)
untar (C:Usersjdonoghue.ECEinstrument-control-0.2.0.tar.gz, C:UsersJDONOG~1.ECEAppDataLocalTempoct-17)
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.exe
checking for suffix of executables... .exe
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 g++ accepts -g... yes
checking for mkoctfile... yes
checking how to run the C++ preprocessor... g++ -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/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 linux/i2c-dev.h usability... no
checking linux/i2c-dev.h presence... no
checking for linux/i2c-dev.h... no
checking dev/iicbus/iic.h usability... no
checking dev/iicbus/iic.h presence... no
checking for dev/iicbus/iic.h... no
checking termios.h usability... no
checking termios.h presence... no
checking for termios.h... no
checking linux/parport.h usability... no
checking linux/parport.h presence... no
checking for linux/parport.h... no
checking linux/ppdev.h usability... no
checking linux/ppdev.h presence... no
checking for linux/ppdev.h... no
checking dev/ppbus/ppi.h usability... no
checking dev/ppbus/ppi.h presence... no
checking for dev/ppbus/ppi.h... no
checking dev/ppbus/ppbconf.h usability... no
checking dev/ppbus/ppbconf.h presence... no
checking for dev/ppbus/ppbconf.h... no
checking sys/socket.h usability... no
checking sys/socket.h presence... no
checking for sys/socket.h... no
checking winsock2.h usability... yes
checking winsock2.h presence... yes
checking for winsock2.h... yes
checking for library containing _head_libws2_32_a... no
checking gpib/ib.h usability... no
checking gpib/ib.h presence... no
checking for gpib/ib.h... no
checking for rpcgen... no
checking visa/visa.h usability... no
checking visa/visa.h presence...
>>


The package itself installs fine, however none of the functions appear to work (not unexpected for most as it doesn't windows functionality for serial, parallel, i2c etc), including the tcp functions.


John Donoghue <lostbard>
Group Member

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #32436:  win32_64.patch added by lostbard (933B - application/octet-stream)
file #32435:  winsock2_win64.diff added by None (774B - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by andy1978 (Posted a comment)
  • -email is unavailable- added by dac922 (Posted a comment)
  • -email is unavailable- added by lostbard (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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-01-02 andy1978 StatusPatch Submitted Fixed
        Open/ClosedOpen Closed
    2014-11-14 lostbard StatusNone Patch Submitted
    2014-11-14 lostbard Attached File- Added win32_64.patch, #32436
    2014-11-14 None Attached File- Added winsock2_win64.diff, #32435

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code