public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* rpc/types.h: No such file or directory
@ 2015-05-19  6:43 Gery .
  2015-05-19 16:26 ` Yaakov Selkowitz
  0 siblings, 1 reply; 7+ messages in thread
From: Gery . @ 2015-05-19  6:43 UTC (permalink / raw)
  To: cygwin

I'm still installing MBsystem software in cygwin and it fails here:

surf.h:58:23: fatal error: rpc/types.h: No such file or directory
 #include <rpc/types.h>

it doesn't find rpc/types.h, even though both are in /usr/include/tirpc/rpc. I run export CPPFLAGS=-I/usr/include/tirpc/rpc with no effect.

Any clues to solve this? I will appreciate your support, thanks in advance

Gery

ps. uname -a
CYGWIN_NT-6.3-WOW64 gery 1.7.32(0.274/5/3) 2014-08-13 23:03 i686 Cygwin

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

$ ls /usr/include/tirpc/rpc
auth.h      auth_kerb.h  clnt_soc.h   des_crypt.h  pmap_prot.h  rpc.h      rpcb_clnt.h  rpcent.h    svc_dg.h   xdr.h
auth_des.h  auth_unix.h  clnt_stat.h  nettype.h    pmap_rmt.h   rpc_com.h  rpcb_prot.h  svc.h       svc_soc.h
auth_gss.h  clnt.h       des.h        pmap_clnt.h  raw.h        rpc_msg.h  rpcb_prot.x  svc_auth.h  types.h

 		 	   		  
--
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] 7+ messages in thread

* Re: rpc/types.h: No such file or directory
  2015-05-19  6:43 rpc/types.h: No such file or directory Gery .
@ 2015-05-19 16:26 ` Yaakov Selkowitz
       [not found]   ` <DUB124-W37174205BEFCC1F13C4524B0C30@phx.gbl>
  0 siblings, 1 reply; 7+ messages in thread
From: Yaakov Selkowitz @ 2015-05-19 16:26 UTC (permalink / raw)
  To: cygwin

On Tue, 2015-05-19 at 04:36 +0000, Gery . wrote:
> I'm still installing MBsystem software in cygwin and it fails here:
> 
> surf.h:58:23: fatal error: rpc/types.h: No such file or directory
>  #include <rpc/types.h>
> 
> it doesn't find rpc/types.h, even though both are in /usr/include/tirpc/rpc.
> I run export CPPFLAGS=-I/usr/include/tirpc/rpc with no effect.

https://cygwin.com/ml/cygwin/2015-05/msg00223.html

--
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] 7+ messages in thread

* rpc/types.h: No such file or directory
       [not found]   ` <DUB124-W37174205BEFCC1F13C4524B0C30@phx.gbl>
@ 2015-05-19 16:32     ` Gery .
  2015-05-19 16:49       ` Tom Kacvinsky
  0 siblings, 1 reply; 7+ messages in thread
From: Gery . @ 2015-05-19 16:32 UTC (permalink / raw)
  To: cygwin

Thanks, however it didn't work if I put it in the install_makefiles or .bashrc:

# Required parameters:
$MBSYSTEM_HOME = "/usr/local/mbsystem"; 
$OS = "LINUX";
$CFLAGS = "-Wall -g -I/usr/X11/include ";
$LFLAGS = "-Wall -g -lm -L/usr/lib -lgdal";
$CPPFLAGS="-I/usr/include/tirpc";
# NETCDF
$NETCDFLIBDIR = "/usr/lib";
$NETCDFINCDIR = "/usr/include";
# GMT
$GMTLIBDIR = "/opt/gmt/gmt-4.5.9/lib";
$GMTINCDIR = "/opt/gmt/gmt-4.5.9/include";
$PROJECTIONS = "$MBSYSTEM_HOME/Projections.dat";

I also put it in my .bashrc in ~/:

export CPPFLAGS="-I/usr/include/tirpc"

Any additional idea? 		 	   		  
--
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] 7+ messages in thread

* Re: rpc/types.h: No such file or directory
  2015-05-19 16:32     ` Gery .
@ 2015-05-19 16:49       ` Tom Kacvinsky
  2015-05-19 16:59         ` Gery .
  0 siblings, 1 reply; 7+ messages in thread
From: Tom Kacvinsky @ 2015-05-19 16:49 UTC (permalink / raw)
  To: Gery .; +Cc: cygwin

You need to set CFLAGS. And CXXFLAGS, too



> On May 19, 2015, at 12:26, Gery . <gamejihou@hotmail.com> wrote:
> 
> Thanks, however it didn't work if I put it in the install_makefiles or .bashrc:
> 
> # Required parameters:
> $MBSYSTEM_HOME = "/usr/local/mbsystem"; 
> $OS = "LINUX";
> $CFLAGS = "-Wall -g -I/usr/X11/include ";
> $LFLAGS = "-Wall -g -lm -L/usr/lib -lgdal";
> $CPPFLAGS="-I/usr/include/tirpc";
> # NETCDF
> $NETCDFLIBDIR = "/usr/lib";
> $NETCDFINCDIR = "/usr/include";
> # GMT
> $GMTLIBDIR = "/opt/gmt/gmt-4.5.9/lib";
> $GMTINCDIR = "/opt/gmt/gmt-4.5.9/include";
> $PROJECTIONS = "$MBSYSTEM_HOME/Projections.dat";
> 
> I also put it in my .bashrc in ~/:
> 
> export CPPFLAGS="-I/usr/include/tirpc"
> 
> Any additional idea?                         
> --
> 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
> 

--
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] 7+ messages in thread

* RE: rpc/types.h: No such file or directory
  2015-05-19 16:49       ` Tom Kacvinsky
@ 2015-05-19 16:59         ` Gery .
       [not found]           ` <95A211DA-EBC8-4F00-8D48-C8466E638238@vectorcast.com>
  0 siblings, 1 reply; 7+ messages in thread
From: Gery . @ 2015-05-19 16:59 UTC (permalink / raw)
  To: Tom Kacvinsky; +Cc: cygwin

> You need to set CFLAGS. And CXXFLAGS, too

These ones didn't work:

$CPPFLAGS="-I/usr/include/tirpc";
$CFLAGS="-Wall -g -I/usr/X11R6/include";
$CXXFLAGS="-g -O2 -I/usr/X11R6/include -Wall -Wno-sign-compare -Wno-unknown-pragmas -Wno-format -D_GNU_SOURCE";

Which ones do you suggest? 		 	   		  
--
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] 7+ messages in thread

* RE: rpc/types.h: No such file or directory
       [not found]           ` <95A211DA-EBC8-4F00-8D48-C8466E638238@vectorcast.com>
@ 2015-05-19 17:14             ` Gery .
       [not found]               ` <CAAEKttyRdkbqFq2rxwhQRx+rzMWaD8sjF=vBtgxBYYjW8kBz_A@mail.gmail.com>
  0 siblings, 1 reply; 7+ messages in thread
From: Gery . @ 2015-05-19 17:14 UTC (permalink / raw)
  To: Tom Kacvinsky, cygwin

> You need to set those variables without $. That is CFLAGS=..., etc...

In install_makefiles (MBsystem software), "$" is needed, if not this appears:

Can't modify constant item in scalar assignment at ./install_makefiles line 109, near ""-I/usr/include/tirpc";"
Execution of ./install_makefiles aborted due to compilation errors.

for .bashrc, I used export CFLAGS=..., so with or without export it is the same, I get this after running "install_makefiles" and "make":

Gery@gery /opt/mb/mbsystem-5.4.2220
$ make
cd src; make all
make[1]: Entering directory '/opt/mb/mbsystem-5.4.2220/src'
cd gsf; make all
make[2]: Entering directory '/opt/mb/mbsystem-5.4.2220/src/gsf'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/opt/mb/mbsystem-5.4.2220/src/gsf'
cd surf; make all
make[2]: Entering directory '/opt/mb/mbsystem-5.4.2220/src/surf'
cc -c -Wall -g -I/usr/X11R6/include -DLINUX -DBYTESWAPPED mem_surf.c
In file included from xdr_surf.h:44:0,
                 from mem_surf.c:72:
surf.h:58:23: fatal error: rpc/types.h: No such file or directory
 #include <rpc/types.h>
                       ^
compilation terminated.
Makefile:72: recipe for target 'mem_surf.o' failed
make[2]: *** [mem_surf.o] Error 1
make[2]: Leaving directory '/opt/mb/mbsystem-5.4.2220/src/surf'
Makefile:22: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/opt/mb/mbsystem-5.4.2220/src'
Makefile:23: recipe for target 'all' failed
make: *** [all] Error 2

 		 	   		  
--
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] 7+ messages in thread

* RE: rpc/types.h: No such file or directory
       [not found]               ` <CAAEKttyRdkbqFq2rxwhQRx+rzMWaD8sjF=vBtgxBYYjW8kBz_A@mail.gmail.com>
@ 2015-05-19 18:16                 ` Gery .
  0 siblings, 0 replies; 7+ messages in thread
From: Gery . @ 2015-05-19 18:16 UTC (permalink / raw)
  To: Tom Kacvinsky; +Cc: cygwin

> Setting CFLAGS/CPPFLAGS/CXXFLAGS in the bash shell before invoking make 
> should just work. This has always worked when using the GNU autoconf 
> too lchain paradigm of building projects. So there may be something 
> about your particular build system that is not picking up these 
> changes. So you'll have to figure out how to propagate these 
> downstream to the actual compiles. 
> 
> Tom 

Thanks Tom, I've been changing the path in the #include directive of xdr.h and types.h in /usr/include/tirpc/rpc, as well as in the MBsystem include files, and now it starts picking the rpc/types.h calls, so MBsystem software is compiling. It just stops compiling and throws the same error in files that don't have the full path in the #include directives (ie. /usr/include/tirpc/rpc/types.h instead of rpc/types.h). Having said that, you're right about propagating these changes to actual compiles this software. I agree, bash shell should do the job, it would be great if someone knows the trick and can share it here. 		 	   		  
--
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] 7+ messages in thread

end of thread, other threads:[~2015-05-19 17:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-19  6:43 rpc/types.h: No such file or directory Gery .
2015-05-19 16:26 ` Yaakov Selkowitz
     [not found]   ` <DUB124-W37174205BEFCC1F13C4524B0C30@phx.gbl>
2015-05-19 16:32     ` Gery .
2015-05-19 16:49       ` Tom Kacvinsky
2015-05-19 16:59         ` Gery .
     [not found]           ` <95A211DA-EBC8-4F00-8D48-C8466E638238@vectorcast.com>
2015-05-19 17:14             ` Gery .
     [not found]               ` <CAAEKttyRdkbqFq2rxwhQRx+rzMWaD8sjF=vBtgxBYYjW8kBz_A@mail.gmail.com>
2015-05-19 18:16                 ` 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).