bugGNU Octave - Bugs: bug #47810, parallel package cannot be install...

 
 

bug #47810: parallel package cannot be install due to the lack of <sys/socket.h> on windows

Submitter:  Tatsuro MATSUOKA <tmacchant>
Submitted:  Sat 30 Apr 2016 08:26:21 AM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  Duplicate Assigned to:  None
Originator Name:  Tatsuro MATSUOKA Open/Closed:  * Closed
Release:  * 4.0.2 Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 30 Apr 2016 05:15:33 PM UTC, comment #2: 

It is indeed a duplicate, but of bug #41148.

Olaf Till <i7tiol>
Group Member
Sat 30 Apr 2016 12:55:40 PM UTC, comment #1: 

Is this a duplicate of bug #42572?

Philip Nienhuis <philipnienhuis>
Group Member
Sat 30 Apr 2016 08:26:21 AM UTC, original submission:  

This is discussed in the octave-maintainers list:
http://octave.1599824.n4.nabble.com/new-package-versions-released-optim-1-5-1-parallel-3-1-0-struct-1-0-13-td4676603.html

parallel package cannot be install due to the lack of <sys/socket.h> on windows


>> pkg install -verbose parallel-3.1.0.tar.gz
mkdir (C:\Users\MATSUO~1\AppData\Local\Temp\oct-1B8Dca)
untar (parallel-3.1.0.tar.gz, C:\Users\MATSUO~1\AppData\Local\Temp\oct-1B8Dca)
checking for mkoctfile... C:/octave/Octave-4.0.2/bin/mkoctfile-4.0.2.exe --verbose
checking for octave-config... C:/octave/Octave-4.0.2/bin/octave-config-4.0.2.exe
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 g++ option to enable C++11 features... -std=gnu++11
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... -std=gnu11
checking how to run the C preprocessor... gcc -std=gnu11 -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 gnutls/gnutls.h usability... yes
checking gnutls/gnutls.h presence... yes
checking for gnutls/gnutls.h... yes
checking for gnutls_global_init in -lgnutls... yes
checking for pkg-config... pkg-config
checking for gnutls_global_init_extra in -lgnutls-extra... no
checking arpa/inet.h usability... no
checking arpa/inet.h presence... no
checking for arpa/inet.h... no
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking sys/malloc.h usability... no
checking sys/malloc.h presence... no
checking for sys/malloc.h... no
checking netdb.h usability... no
checking netdb.h presence... no
checking for netdb.h... no
checking netinet/in.h usability... no
checking netinet/in.h presence... no
checking for netinet/in.h... no
checking stdio_ext.h usability... no
checking stdio_ext.h presence... no
checking for stdio_ext.h... no
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/socket.h usability... no
checking sys/socket.h presence... no
checking for sys/socket.h... no
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking termios.h usability... no
checking termios.h presence... no
checking for termios.h... no
checking for unistd.h... (cached) yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for int32_t... yes
checking for mode_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for ssize_t... yes
checking for uint32_t... yes
checking for error_at_line... no
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... no
checking for vfork... no
checking for _LARGEFILE_SOURCE value needed for large files... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking return type of signal handlers... void
checking for memset... yes
checking for mkdir... yes
checking for modf... yes
checking for select... no
checking for socket... no
checking for strchr... yes
checking for strdup... yes
checking for uname... no
checking for getpass... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
make: Entering directory `/tmp/oct-1B8Dca/parallel-3.1.0/src'
CXX="g++ -std=gnu++11" CXXFLAGS="-g -O2 -IC:/octave/Octave-4.0.2/include  -Wno-int-to-pointe
r-cast" C:/octave/Octave-4.0.2/bin/mkoctfile-4.0.2.exe --verbose -c pconnect.cc
g++ -std=gnu++11 -c -I/scratch/jwe/mxe-octave/usr/i686-w64-mingw32/include  -IC:\octave\Octa
ve-4.0.2\include\octave-4.0.2\octave\.. -IC:\octave\Octave-4.0.2\include\octave-4.0.2\octave
 -IC:\octave\Octave-4.0.2\include -pthread -mieee-fp -g -O2 -IC:/octave/Octave-4.0.2/include
  -Wno-int-to-pointer-cast    pconnect.cc -o pconnect.o
pconnect.cc:29:24: fatal error: sys/socket.h: No such file or directory
 #include <sys/socket.h>
                        ^
compilation terminated.
make: *** [pconnect.o] Error 1
make: Leaving directory `/tmp/oct-1B8Dca/parallel-3.1.0/src'

pkg: error running `make' for the parallel package.
error: called from 'configure_make' in file C:\octave\Octave-4.0.2\share\octave\4.0.2\m\pkg\
private\configure_make.m near line 96, column 9


Apparently configure reports the lack of sys/socket.h.

In octave build tree for 4.0.2 on Ubunu
sys/socket.h
is defined in libgnu directory.

In octave build, sys/socket.h is defined in libgnu and there is no problem.

However, gnulib stuff is completely removed in the binary distribution of octave for windows.
The native windows does not have sys/socket.h.
This causes the error above.

Questions
1. gnulib stuff is completely removed in the binary distribution of octave for windows. Is this intentional?

2. Octave-forge package is build outside of octave build trees.
Removal of the gnulib stuff from the binary distribution suggests that their own implementations of cross-platform development stuff.   

Tatsuro MATSUOKA <tmacchant>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mtmiller (Updated the item)
  • -email is unavailable- added by i7tiol (Posted a comment)
  • -email is unavailable- added by tmacchant (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
    2016-04-30 mtmiller StatusNone Duplicate
        Open/ClosedOpen Closed
    2016-04-30 mtmiller Dependencies- Depends on bugs #41148

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code