public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Cygwin - configure: error: Required header <rpc/types.h> not found
@ 2015-05-18 20:28 Gery .
  2015-05-18 22:17 ` Yaakov Selkowitz
  0 siblings, 1 reply; 4+ messages in thread
From: Gery . @ 2015-05-18 20:28 UTC (permalink / raw)
  To: mbsystem, cygwin

Hello,

I received a SUNRPC error after running ./configure on version 5.4.2220 in Cygwin (CYGWIN_NT-6.3-WOW64 gery 1.7.32(0.274/5/3) 2014-08-13 23:03 i686 Cygwin), here it is:

    configure: error: Required header <rpc/types.h> not found, check include path and intsalled devel packages

SUNRPC (as well as libtirpc) is located in my Cygwin system:

    Gery@gery /opt/mb/mbsystem-5.4.2220
    $ cygcheck -c | grep rpc
    libgssrpc4                                   1.12.2-1                         OK
    libtirpc-common                              0.2.4-1                          OK
    libtirpc-debuginfo                           0.2.4-1                          OK
    libtirpc-devel                               0.2.4-1                          OK
    libtirpc1                                    0.2.4-1                          OK
    php-xmlrpc                                   5.5.18-1                         OK
    rpcgen                                       2.11.90_20100818-1               OK
    sunrpc                                       4.0-4                            OK

Any idea to solve this configure error? I mean, a solution that doesn't involve upgrading cygwin to the latest version, I just don't want to reinstall everything again.

Any support is welcomed, thanks in advance,

Gery

PS: see below please the details of install_makefiles and ./configure output


My install_makefiles is here:

#--------------------------------------------------------------------
# EDIT THE PARAMETERS HERE IF NO APPROPRIATE PRESET CONFIGURATION IS DEFINED
# Set the configuration parameters manually:
#--------------------------------------------------------------------
#
# Required parameters:
$MBSYSTEM_HOME = "/opt/mb/mbsystem-5.4.2220";
$OS = "CYGWIN";
$CFLAGS = "-g -fdata-sections -I/usr/include/rpcsvc -I/usr/X11R6/include -I/usr/X11R6/lib";
$LFLAGS = "-lrpc -lrpclib -lm -Wl,--enable-runtime-pseudo-reloc";
$NETCDFLIBDIR = "/usr/src/debug/netcdf-4.3.2-1/lib";
$NETCDFINCDIR = "/usr/src/debug/netcdf-4.3.2.1/include";
$GMTLIBDIR = "/opt/gmt/gmt-4.5.9/lib";
$GMTINCDIR = "/opt/gmt/gmt-4.5.9/include";
$PROJECTIONS = "$MBSYSTEM_HOME/share/Projections.dat";
$MOTIFINCDIR = "/usr/X11R6/include/Xm";
$MOTIFLIBS = "-L/usr/X11R6/lib -lXm -lXt -lX11";
$OPENGLLIBS = "-lGLU -lGL";
$LEVITUS = "$MBSYSTEM_HOME/share/annual";
$CC = "gcc";
#--------------------------------------------------------------------
# END OF PARAMETER EDITING SECTION
#--------------------------------------------------------------------


Here the last part of the ./configure output:

#---------------------------------#
Configure will now attempt to construct the Makefiles required to build MB-System
MB-System Version 5.4.2220
HOST System Type: i686-pc-cygwin

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
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 gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking dependency style of gcc... gcc3
checking for ar... ar
checking the archiver (ar) interface... ar
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/i686-pc-cygwin/bin/ld.exe
checking if the linker (/usr/i686-pc-cygwin/bin/ld.exe) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... 8192
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert i686-pc-cygwin file names to i686-pc-cygwin format... func_convert_file_noop
checking how to convert i686-pc-cygwin file names to toolchain format... func_convert_file_noop
checking for /usr/i686-pc-cygwin/bin/ld.exe option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... file_magic ^x86 archive import|^x86 DLL
checking for dlltool... dlltool
checking how to associate runtime and link libraries... func_cygming_dll_for_implib
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -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 for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -DDLL_EXPORT -DPIC
checking if gcc PIC flag -DDLL_EXPORT -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/i686-pc-cygwin/bin/ld.exe) supports shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether byte ordering is bigendian... no
checking for ANSI C header files... (cached) yes
checking for exp in -lm... yes
checking for int8_t... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
Build does not require -DSUN CFLAG
Added WIN32 define to mb_config.h
checking rpc/rpc.h usability... no
checking rpc/rpc.h presence... no
checking for rpc/rpc.h... no
checking rpc/types.h usability... no
checking rpc/types.h presence... no
checking for rpc/types.h... no
configure: error: Required header <rpc/types.h> not found, check include path and intsalled devel packages

 		 	   		  
--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Cygwin - configure: error: Required header <rpc/types.h> not found
  2015-05-18 20:28 Cygwin - configure: error: Required header <rpc/types.h> not found Gery .
@ 2015-05-18 22:17 ` Yaakov Selkowitz
  2015-05-18 22:48   ` Gery .
  2015-05-18 23:11   ` Gery .
  0 siblings, 2 replies; 4+ messages in thread
From: Yaakov Selkowitz @ 2015-05-18 22:17 UTC (permalink / raw)
  To: cygwin

https://cygwin.com/acronyms/#PCYMTWLL !

On Mon, 2015-05-18 at 19:17 +0000, Gery . wrote:
> I received a SUNRPC error after running ./configure on version
>  5.4.2220 in Cygwin (CYGWIN_NT-6.3-WOW64 gery 1.7.32(0.274/5/3)
>  2014-08-13 23:03 i686 Cygwin), here it is:
> 
>     configure: error: Required header <rpc/types.h> not found,
>  check include path and intsalled devel packages
>  
> Any idea to solve this configure error?

Add "CPPFLAGS=-I/usr/include/tirpc" to your configure flags.

> I mean, a solution that doesn't involve upgrading cygwin to the
> latest version, I just don't want to reinstall everything again.

Please note that we do not support old versions of Cygwin, nor does
upgrading to the currently supported version require "reinstalling
everything".

--
Yaakov



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: Cygwin - configure: error: Required header <rpc/types.h> not found
  2015-05-18 22:17 ` Yaakov Selkowitz
@ 2015-05-18 22:48   ` Gery .
  2015-05-18 23:11   ` Gery .
  1 sibling, 0 replies; 4+ messages in thread
From: Gery . @ 2015-05-18 22:48 UTC (permalink / raw)
  To: Yaakov Selkowitz, cygwin

Thanks Yaakov for the quick reply,

> https://cygwin.com/acronyms/&PCYMTWLL !

sorry for the long lines =)

> Add "CPPFLAGS=-I/usr/include/tirpc" to your configure flags.

Thanks, but the problem remains. MB-System (the software I try to install) complains about rpc/:

...
...
checking rpc/rpc.h usability... no
checking rpc/rpc.h presence... no
checking for rpc/rpc.h... no
checking rpc/types.h usability... no
checking rpc/types.h presence... no
checking for rpc/types.h... no
configure: error: Required header <rpc/types.h> not found, check include path and intsalled devel packages


>> I mean, a solution that doesn't involve upgrading cygwin to the
>> latest version, I just don't want to reinstall everything again.
>
> Please note that we do not support old versions of Cygwin, nor does
> upgrading to the currently supported version require "reinstalling
> everything".

I always knew that I must reinstall all software (those that don't come 
with cygwin by default, e.g., PostGIS) after upgrading to the latest cygwin version (ie.
download the latest setup*.exe and perform the upgrade). I just found these steps:

wget http://apt-cyg.googlecode.com/svn/trunk/apt-cyg
chmod +x apt-cyg
mv apt-cyg /usr/local/bin/
apt-cyg install PACKAGE-NAME-HERE

would these steps correctly update specific packages?

Thanks again,

Gery
 		 	   		  
--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: Cygwin - configure: error: Required header <rpc/types.h> not found
  2015-05-18 22:17 ` Yaakov Selkowitz
  2015-05-18 22:48   ` Gery .
@ 2015-05-18 23:11   ` Gery .
  1 sibling, 0 replies; 4+ messages in thread
From: Gery . @ 2015-05-18 23:11 UTC (permalink / raw)
  To: Yaakov Selkowitz, cygwin

> Add "CPPFLAGS=-I/usr/include/tirpc" to your configure flags.

now found it, thanks for the tip again.

Gery 		 	   		  
--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-05-18 22:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-18 20:28 Cygwin - configure: error: Required header <rpc/types.h> not found Gery .
2015-05-18 22:17 ` Yaakov Selkowitz
2015-05-18 22:48   ` Gery .
2015-05-18 23:11   ` Gery .

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).