public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: RPC for cygwin
  1999-01-31 23:52 RPC for cygwin Daniel Gonzalez
@ 1999-01-31 23:52 ` Corinna Vinschen
  0 siblings, 0 replies; 6+ messages in thread
From: Corinna Vinschen @ 1999-01-31 23:52 UTC (permalink / raw)
  To: Daniel Gonzalez, gnu-win32

Daniel Gonzalez wrote:
> 
> Hi all,
> 
> We are porting an application to cygwin which uses RPC. I need the
> RPCGEN utility (it is not included in the Beta 20.1) and also the rpc
> include files.
> 
> Anybody knows where can I find it?

Nowhere in the cygwin environment. I have compiled rpcgen a few months
ago, but for full functionality, you have to compile portmapper and
all the other rpc-stuff. Try using Linux sources. I already want to
try porting this to cygwin, but I would need more time, than I'm able,
to invest.

Regards,
Corinna

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

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

* RPC for cygwin
@ 1999-01-31 23:52 Daniel Gonzalez
  1999-01-31 23:52 ` Corinna Vinschen
  0 siblings, 1 reply; 6+ messages in thread
From: Daniel Gonzalez @ 1999-01-31 23:52 UTC (permalink / raw)
  To: gnu-win32

Hi all,

We are porting an application to cygwin which uses RPC. I need the
RPCGEN utility (it is not included in the Beta 20.1) and also the rpc
include files.

Anybody knows where can I find it?

Regards,

Daniel

-- 


------------------------------------------------------------------------
|   Daniel Gonzalez Valero         | mailto:daniel.gonzalez@stest.ch   |
|   Switching Test Solutions AG    | web   : http://www.stest.com       |
|   a Wandel & Goltermann Company  | Phone : +41 1 454-6685            |
|   Friesenbergstr. 75             | FAX   : +41 1 454-6605            |
|   CH-8055 Zurich                 |                                   
------------------------------------------------------------------------
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

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

* Re: RPC for cygwin
  1999-01-31 23:52 Sergey Okhapkin
@ 1999-01-31 23:52 ` Corinna Vinschen
  1999-01-31 23:52   ` Dr. Volker Zell
  0 siblings, 1 reply; 6+ messages in thread
From: Corinna Vinschen @ 1999-01-31 23:52 UTC (permalink / raw)
  To: Sergey Okhapkin, gnu-win32

Sergey Okhapkin wrote:
> Do not try Linux sources:-) Take original rpc sources from SUN (rpcsrc_40.tar.Z). It compiles almost out of the box with cygwin.

Thanks, now I have compiled Sun-RPC, too, and moreover, it works!
Linux sources are much more complicated than this sources, because
they are spread over three or four packages.

Corinna
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

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

* Re: RPC for cygwin
  1999-01-31 23:52 ` Corinna Vinschen
@ 1999-01-31 23:52   ` Dr. Volker Zell
  1999-01-31 23:52     ` Corinna Vinschen
  0 siblings, 1 reply; 6+ messages in thread
From: Dr. Volker Zell @ 1999-01-31 23:52 UTC (permalink / raw)
  To: corinna.vinschen; +Cc: gnu-win32

Hi Corinna

A make after unpacking your sunrpc-4.0.cygwin1.src.tar.gz
gives me the following errors:

---

gcc -I.. -I..  -c pmap_rmt.c -o pmap_rmt.o
In file included from \cygnus\cygwin-b20\H-i586-cygwin32\lib\gcc-lib\i586-cygwin32\egcs-2.91.57\..\..\..\..\i586-cygwin32\include\netinet/in.h:4,
                 from ..\rpc/rpc.h:41,
                 from pmap_rmt.c:42:
\cygnus\cygwin-b20\H-i586-cygwin32\lib\gcc-lib\i586-cygwin32\egcs-2.91.57\..\..\..\..\i586-cygwin32\include\cygwin/in.h:150: warning: `INADDR_LOOPBACK' redefined
..\rpc/types.h:60: warning: this is the location of the previous definition
pmap_rmt.c: In function `getbroadcastnets':
pmap_rmt.c:199: incompatible type for argument 1 of `inet_netof'
pmap_rmt.c: In function `clnt_broadcast':
pmap_rmt.c:323: warning: passing arg 3 of `select' from incompatible pointer type
pmap_rmt.c:323: warning: passing arg 4 of `select' from incompatible pointer type
make[1]: *** [pmap_rmt.o] Error 1
gcc -I.. -I..  -c pmap_rmt.c -o pmap_rmt.o
In file included from \cygnus\cygwin-b20\H-i586-cygwin32\lib\gcc-lib\i586-cygwin32\egcs-2.91.57\..\..\..\..\i586-cygwin32\include\netinet/in.h:4,
                 from ..\rpc/rpc.h:41,
                 from pmap_rmt.c:42:
\cygnus\cygwin-b20\H-i586-cygwin32\lib\gcc-lib\i586-cygwin32\egcs-2.91.57\..\..\..\..\i586-cygwin32\include\cygwin/in.h:150: warning: `INADDR_LOOPBACK' redefined
..\rpc/types.h:60: warning: this is the location of the previous definition
pmap_rmt.c: In function `getbroadcastnets':
pmap_rmt.c:199: incompatible type for argument 1 of `inet_netof'
pmap_rmt.c: In function `clnt_broadcast':
pmap_rmt.c:323: warning: passing arg 3 of `select' from incompatible pointer type
pmap_rmt.c:323: warning: passing arg 4 of `select' from incompatible pointer type
make[1]: *** [pmap_rmt.o] Error 1
make: *** [rpclib] Error 2


Any hints

  Ciao
    Volker

-- 
___________________________________________________________________________

   "Is a dream a lie if it don't come true or is it something worse ..."

                                                 Dr. Volker Zell
      __ /  _  /  __  / ___/  /    ___/          -- Senior Dozent --
     /  /  /__/  /_  / /     /    __/            Oracle Germany
   ____/__/ _|__/ __/____/ ____/____/            Paul-Thomas-Str.58 
                                                 D-40599 D|sseldorf
   e-Mail: mailto:vzell@de.oracle.com
   WWW:    http://trgsund4.de.oracle.com/
   Tel:    (+49) 211-74839-414                   
   Fax:    (+49) 211-74839-44
___________________________________________________________________________

The statements and opinions expressed here are my own and do not necessarily 
represent those of Oracle Corporation.

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

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

* RE: RPC for cygwin
@ 1999-01-31 23:52 Sergey Okhapkin
  1999-01-31 23:52 ` Corinna Vinschen
  0 siblings, 1 reply; 6+ messages in thread
From: Sergey Okhapkin @ 1999-01-31 23:52 UTC (permalink / raw)
  To: Daniel Gonzalez, gnu-win32, 'Corinna Vinschen'

Corinna Vinschen wrote:
> Nowhere in the cygwin environment. I have compiled rpcgen a few months
> ago, but for full functionality, you have to compile portmapper and
> all the other rpc-stuff. Try using Linux sources. I already want to
> try porting this to cygwin, but I would need more time, than I'm able,
> to invest.

Do not try Linux sources:-) Take original rpc sources from SUN (rpcsrc_40.tar.Z). It compiles almost out of the box with cygwin.

-- 
Sergey Okhapkin, http://www.lexa.ru/sos
Piscataway, NJ


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

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

* Re: RPC for cygwin
  1999-01-31 23:52   ` Dr. Volker Zell
@ 1999-01-31 23:52     ` Corinna Vinschen
  0 siblings, 0 replies; 6+ messages in thread
From: Corinna Vinschen @ 1999-01-31 23:52 UTC (permalink / raw)
  To: Dr. Volker Zell, gnu-win32

Dr. Volker Zell wrote:
> 
> Hi Corinna
> 
> A make after unpacking your sunrpc-4.0.cygwin1.src.tar.gz
> gives me the following errors:
> 
> ---
> [...] 
> pmap_rmt.c: In function `getbroadcastnets':
> pmap_rmt.c:199: incompatible type for argument 1 of `inet_netof'


Yes, use a newer snapshot, best is winsup-19981223 incl. header files.
It already contains my patch to socket-ioctl, where SIOCGFIFBRDADDR 
is now defined. Moreover, this snapshot is yet binary compatible to B20
and it's the last one! You also may use the cv_cygwin1.dll from
ftp://ftp.franken.de/pub/win32/develop/gnuwin32/cygwin32/porters/Vinschen_Corinna/B20/
which is generated from winsup-19981223.

Another possibility:
pmap_rmt.c, line 198/199 contains:

                        addrs[i++] = inet_makeaddr(inet_netof
                          (sin->sin_addr.s_addr), INADDR_ANY);

which is incompatible to POSIX definition of inet_netof:

RPCSRC:	inet_netof(unsigned int)
POSIX:	inet_netof(struct in_addr)
(look into .../include/cygwin/in.h)

Patch it like in lines 192/193:

                        addrs[i++] = inet_makeaddr(inet_netof
                          (sin->sin_addr), INADDR_ANY);

Regards,
Corinna
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

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

end of thread, other threads:[~1999-01-31 23:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-01-31 23:52 RPC for cygwin Daniel Gonzalez
1999-01-31 23:52 ` Corinna Vinschen
  -- strict thread matches above, loose matches on Subject: below --
1999-01-31 23:52 Sergey Okhapkin
1999-01-31 23:52 ` Corinna Vinschen
1999-01-31 23:52   ` Dr. Volker Zell
1999-01-31 23:52     ` Corinna Vinschen

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).