lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

LYNX-DEV socket type incompat w/multinet


From: BREDESEN
Subject: LYNX-DEV socket type incompat w/multinet
Date: Wed, 5 Feb 1997 17:54:59 -0500 (EST)

I am unable to build the pre-release of lynx2-7 (3feb97 edition). Had no
problems with v2-6(sep96).  Lines 236 and 237 in the new tcp.h file in
[.www.library.implementation] cause compilation errors due to incompatible
socket types. I haven't noticed any postings re this problem. (file tcp.h
is dated 2nov96.) Can someone out there recommend a solution? Should I
comment out the offending lines in tcp.h? Or should I somehow stick into
tcp.h that __val part? If so, would someone tell me the correct format. I
am using TGV MultiNet V3.5 Rev A, DEC 3000 - M600, OpenVMS AXP V6.2. Below
are extracts from build.log, lynx's tcp.h, and multinet's socket.h.

----------------------
extract from build.log:

$!      Build the WWWLibrary
$!
$ set default [.WWW.Library.VMS]
$ v1 = 1
$ @libmake MULTINET /DEBUG/NOOPT
$! DECC:
$!
$ cc/decc/prefix=ansi /nomember /DEBUG/NOOPT-
    /warning=(disable=implicitfunc)-
    
/DEFINE=(DEBUG,ACCESS_AUTH,MULTINET,_DECC_V4_SOURCE,__SOCKET_TYPEDEFS,VC="""2.14""")-
    /INCLUDE=([-.Implementation]) -
    [-.Implementation]HTString.c

    unsigned short htons(unsigned short __val);
...................^
%CC-E-NOTCOMPAT, In this declaration, the type of "multinet_htons" is not
 compatible with the type of a previous declaration of "multinet_htons" at
 line number 236 in file $USER4:[USRUTL.LYNX.LYNX2-6FM.WWW.LIBRARY.
 IMPLEMENTATION]TCP.H;1.
at line number 217 in file MULTINET_COMMON_ROOT:[MULTINET.INCLUDE.SYS]
 SOCKET.H;1

    unsigned short ntohs(unsigned short __val);
...................^
%CC-E-NOTCOMPAT, In this declaration, the type of "multinet_ntohs" is not
 compatible with the type of a previous declaration of "multinet_ntohs" at
 line number 237 in file $USER4:[USRUTL.LYNX.LYNX2-6FM.WWW.LIBRARY.
 IMPLEMENTATION]TCP.H;1.
at line number 218 in file MULTINET_COMMON_ROOT:[MULTINET.INCLUDE.SYS]
 SOCKET.H;1

---------------------------------------------
Extract from MultiNet's socket.h file showing lines 217 and 218:

....snip....
  6 *   @(#)socket.h    7.1 (Berkeley) 6/4/86
....snip....
203 #ifdef __cplusplus
204 extern "C" {
205 #endif
....snip....
213     int getsockopt(int __channel, int __level, int __option,
214                             void *__optval, int __optlen);
215     unsigned long htonl(unsigned long __val);
216     unsigned long ntohl(unsigned long __val);
217     unsigned short htons(unsigned short __val);
218     unsigned short ntohs(unsigned short __val);
219     int listen(int __channel, int __backlog);
....snip....

---------------------------------------------
Extract from Lynx's tcp.h showing lines 236 and 237:

File $USER4:[USRUTL.LYNX.LYNX2-6FM.WWW.LIBRARY.IMPLEMENTATION]TCP.H;2
  226   /*
  227   **  Remove these multinet_foo() and associated prototypes
  228   **  if MultiNet someday actually does this. - FM
  229   */
  230   extern int multinet_accept();
  231   extern int multinet_bind();
  232   extern int bzero();
  233   extern int multinet_connect();
  234   extern int multinet_gethostname();
  235   extern int multinet_getsockname();
  236   extern unsigned short multinet_htons();
  237   extern unsigned short multinet_ntohs();
  238   extern int multinet_listen();
  239   extern int multinet_select();
  240   extern int multinet_socket();
  241   extern char *vms_errno_string();
  242   
  243   #ifndef __SOCKET_TYPEDEFS

TIA,
Susan
-----
Susan C. Bredesen, VAX/VMS System Manager  EMAIL: address@hidden
VOICE:  617-377-3713, FAX: 617-377-3160       
USMAIL: Phillips Laboratory/GPSG,29 Randolph Road,Hanscom AFB,MA 01731-3010
;
; To UNSUBSCRIBE:  Send a mail message to address@hidden
;                  with "unsubscribe lynx-dev" (without the
;                  quotation marks) on a line by itself.
;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]