Hi
Can anyone help me resolve these make errrors:
aCC -c -DDEFAULT_CONFIG_FILE=\"/opt/www/htdig/conf/htdig.conf\" -I../htlib
-I../htcommon -I../db/dist -I../include -g Connection.cc
Warning 552: "htString.h", line 123 # Ambiguous overloaded function
declaration; default arguments make this function indistinguishable from
previous one. Clashing function "String &String::chop(int)" was previously
declared at ["htString.h", line 122].
String &chop(char ch = '\n');
^^^^
Warning 552: "htString.h", line 124 # Ambiguous overloaded function
declaration; default arguments make this function indistinguishable from
previous one. Clashing function "String &String::chop(char)" was previously
declared at ["htString.h", line 123].
String &chop(char *str = "\r\n");
^^^^
Warning 552: "htString.h", line 124 # Ambiguous overloaded function
declaration; default arguments make this function indistinguishable from
previous one. Clashing function "String &String::chop(int)" was previously
declared at ["htString.h", line 122].
String &chop(char *str = "\r\n");
^^^^
Error 497: "/usr/include/strings.h", line 59 # There can be only one
function 'strcasecmp' with "C" linkage; previous declaration was at
["/usr/include/string.h", line 305].
extern int strcasecmp(const char *, const char *);
^^^^^^^^^^
Error 497: "/usr/include/strings.h", line 60 # There can be only one
function 'strncasecmp' with "C" linkage; previous declaration was at
["/usr/include/string.h", line 306].
extern int strncasecmp(const char *, const char *, size_t);
^^^^^^^^^^^
Warning 749: "Connection.cc", line 72 # The cast from 'sockaddr_in *' to
'sockaddr *' is performed as a 'reinterpret_cast'. This operation
is non-portable and potentially unsafe.
if (getpeername(socket, (struct sockaddr *)&server, &length) < 0)
^^^^^^^^^^^^^^^^^^^
Error 212: "Connection.cc", line 72 # Argument type 'unsigned long *' does
not match expected parameter type 'int *'.
if (getpeername(socket, (struct sockaddr *)&server, &length) < 0)
^
Warning 829: "Connection.cc", line 74 # Implicit conversion of string
literal to 'char *' is deprecated.
perror("getpeername");
^^^^^^^^^^^^^
Warning 829: "Connection.cc", line 192 # Implicit conversion of string
literal to 'char *' is deprecated.
sp = getservbyname(service, "tcp");
^^^^^
Warning 749: "Connection.cc", line 272 # The cast from 'sockaddr_in *' to
'sockaddr *' is performed as a 'reinterpret_cast'. This operation
is non-portable and potentially unsafe.
status = ::connect(sock, (struct sockaddr *)&server, sizeof(server));
^^^^^^^^^^^^^^^^^^^
Warning 749: "Connection.cc", line 327 # The cast from 'sockaddr_in *' to
'sockaddr *' is performed as a 'reinterpret_cast'. This operation
is non-portable and potentially unsafe.
if (::bind(sock, (struct sockaddr *)&server, sizeof(server)) == NOTOK)
^^^^^^^^^^^^^^^^^^^
Warning 749: "Connection.cc", line 342 # The cast from 'sockaddr_in *' to
'sockaddr *' is performed as a 'reinterpret_cast'. This operation
is non-portable and potentially unsafe.
if (getsockname(sock, (struct sockaddr *)&server, &length) == NOTOK)
^^^^^^^^^^^^^^^^^^^
Error 212: "Connection.cc", line 342 # Argument type 'unsigned long *' does
not match expected parameter type 'int *'.
if (getsockname(sock, (struct sockaddr *)&server, &length) == NOTOK)
^
Error 212: "Connection.cc", line 368 # Argument type 'unsigned long *' does
not match expected parameter type 'int *'.
= ::accept(sock, (struct sockaddr *)0, (GETPEERNAME_LENGTH_T *)0);
^
Warning 749: "Connection.cc", line 380 # The cast from 'sockaddr_in *' to
'sockaddr *' is performed as a 'reinterpret_cast'. This operation
is non-portable and potentially unsafe.
getpeername(newsock, (struct sockaddr *)&newconnect->server, &length);
^^^^^^^^^^^^^^^^^^^
Error 212: "Connection.cc", line 380 # Argument type 'unsigned long *' does
not match expected parameter type 'int *'.
getpeername(newsock, (struct sockaddr *)&newconnect->server, &length);
^
Warning 829: "Connection.cc", line 483 # Implicit conversion of string
literal to 'char *' is deprecated.
sprintf(buffer, "%d", sock);
^^^^
Warning 749: "Connection.cc", line 501 # The cast from 'sockaddr_in *' to
'sockaddr *' is performed as a 'reinterpret_cast'. This operation
is non-portable and potentially unsafe.
if (getpeername(sock, (struct sockaddr *) &p, &length) < 0)
^^^^^^^^^^^^^^^^^^^
Error 212: "Connection.cc", line 501 # Argument type 'unsigned long *' does
not match expected parameter type 'int *'.
if (getpeername(sock, (struct sockaddr *) &p, &length) < 0)
^
Warning 749: "Connection.cc", line 525 # The cast from 'sockaddr_in *' to
'sockaddr *' is performed as a 'reinterpret_cast'. This operation
is non-portable and potentially unsafe.
if (getpeername(sock, (struct sockaddr *) &peer, &length) < 0)
^^^^^^^^^^^^^^^^^^^
Error 212: "Connection.cc", line 525 # Argument type 'unsigned long *' does
not match expected parameter type 'int *'.
if (getpeername(sock, (struct sockaddr *) &peer, &length) < 0)
^
*** Error exit code 2

Stop.
*** Error exit code 1

Stop.
/

Thanks
Chris

    **
Responsibility for the administration and management of Crown land has
transferred from the Department of Land Information (DLI), formerly DOLA,
to the Department for Planning and Infrastructure (DPI) as of July 1, 2003.

Although continuing to operate from DLI's Midland office, Land
Administration Services and associated support staff (who will be known as
Land Asset Management Services) can now be contacted on (08) 9347 5000 and
post:  PO Box 1575 Midland, WA, 6936.

    **

This e-mail and any files transmitted with it are intended only for the use
of the addressee(s).  It may contain information that is confidential and
privileged.  If you are not an intended recipient, any use, interference
with, disclosure, distribution or copying of this material is unauthorised
and prohibited. If you receive this in error, please notify the author by
return e-mail or telephone +61-8-9273 7533.  Information in this message
not relating to the official business of DLI shall be understood as neither
given nor endorsed by it.  While every care is taken, it is recommended
that you scan any attachments for viruses. DLI liability is limited to
re-supplying affected attachments.




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
ht://Dig general mailing list: <[EMAIL PROTECTED]>
ht://Dig FAQ: http://htdig.sourceforge.net/FAQ.html
List information (subscribe/unsubscribe, etc.)
https://lists.sourceforge.net/lists/listinfo/htdig-general

Reply via email to