Skip to Content.
Sympa Menu

freetds - [freetds] solaris compile warning on struct in_addr

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Reid, Roger L." <roger.reid AT dpw.com>
  • To: <freetds AT lists.ibiblio.org>
  • Subject: [freetds] solaris compile warning on struct in_addr
  • Date: Tue, 20 Mar 2007 14:48:46 -0400

hi -

I'm compiling .64 the same way I did 60-63 -
./configure --prefix=/usr/local/app/FreeTDS --enable-sybase-compat

but getting warnings about the struct in_addr parameter in the declaration in
tds.h:

#ifdef INADDR_NONE
const char *tds_inet_ntoa_r(struct in_addr iaddr, char *ip, size_t len);
#endif

Sample of warning in context below. I have not quite untwisted the road from
configure to include to compile. I do see a few items in the configure.log
that may be related, they are also below.

I'm going to go ahead and test, because it may not matter, but am also
posting in case anyone knows what the issue is.

I found nothing searching on this, though I have found items indicating that
typedefs and declarations for the in_addr struct in sockets is a bit messy,
historically.

r l reid

>From the compilation:

gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include
-D_FREETDS_LIBRARY_
SOURCE -D_REENTRANT -D_THREAD_SAFE -DDEBUG=1 -Wall -Wstrict-prototypes
-Wmissing
-prototypes -Wno-long-long -g -O2 -MT bcp.lo -MD -MP -MF .deps/bcp.Tpo -c
bcp.c
-fPIC -DPIC -o .libs/bcp.o
In file included from bcp.c:39:
../../include/tds.h:1244: warning: `struct in_addr' declared inside parameter
li
st
../../include/tds.h:1244: warning: its scope is only this definition or
declarat
ion, which is probably not what you want
../../include/tds.h:1244: warning: parameter has incomplete type

>From configure.log

configure:12280: checking winsock2.h usability
configure:12292: gcc -c -g -O2 -D_FREETDS_LIBRARY_SOURCE conftest.c >&5
conftest.c:71:22: winsock2.h: No such file or directory
configure:12298: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "freetds"
| #define VERSION "0.64"
| #define _GNU_SOURCE 1
| #define _FILE_OFFSET_BITS 64
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define HAVE_ICONV 1
| #define ICONV_CONST const
| #define STDC_HEADERS 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_TZNAME 1
| #define HAVE_UNISTD_H 1
| #define HAVE_ERRNO_H 1
| #define HAVE_WCHAR_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_MALLOC_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_LOCALE_H 1
| #define HAVE_SIGNAL_H 1
| /* end confdefs.h. */
| #include <stdio.h>
| #if HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #if HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #if STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # if HAVE_STDLIB_H
| # include <stdlib.h>
| # endif
| #endif
| #if HAVE_STRING_H
| # if !STDC_HEADERS && HAVE_MEMORY_H
| # include <memory.h>
| # endif
| # include <string.h>
| #endif
| #if HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #if HAVE_INTTYPES_H
| # include <inttypes.h>
| #else
| # if HAVE_STDINT_H
| # include <stdint.h>
| # endif
| #endif
| #if HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <winsock2.h>
configure:12321: result: no
configure:12325: checking winsock2.h presence
configure:12335: gcc -E -D_FREETDS_LIBRARY_SOURCE conftest.c
conftest.c:37:22: winsock2.h: No such file or directory
configure:12341: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "freetds"
| #define VERSION "0.64"
| #define _GNU_SOURCE 1
| #define _FILE_OFFSET_BITS 64
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define HAVE_ICONV 1
| #define ICONV_CONST const
| #define STDC_HEADERS 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_TZNAME 1
| #define HAVE_UNISTD_H 1
| #define HAVE_ERRNO_H 1
| #define HAVE_WCHAR_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_MALLOC_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_LOCALE_H 1
| #define HAVE_SIGNAL_H 1
| /* end confdefs.h. */
| #include <winsock2.h>
configure:12361: result: no
configure:12396: checking for winsock2.h
configure:12403: result: no
configure:12442: checking sys/socket.h usability
configure:12454: gcc -c -g -O2 -D_FREETDS_LIBRARY_SOURCE conftest.c >&5
configure:12460: $? = 0
configure:12464: test -z
|| test ! -s conftest.err
configure:12467: $? = 0
configure:12470: test -s conftest.o
configure:12473: $? = 0
configure:12483: result: yes
configure:12487: checking sys/socket.h presence
configure:12497: gcc -E -D_FREETDS_LIBRARY_SOURCE conftest.c
configure:12503: $? = 0
configure:12523: result: yes
configure:12558: checking for sys/socket.h
configure:12565: result: yes
configure:12442: checking arpa/inet.h usability
configure:12454: gcc -c -g -O2 -D_FREETDS_LIBRARY_SOURCE conftest.c >&5
configure:12460: $? = 0
configure:12464: test -z
|| test ! -s conftest.err
configure:12467: $? = 0
configure:12470: test -s conftest.o
configure:12473: $? = 0
configure:12483: result: yes
configure:12487: checking arpa/inet.h presence
configure:12497: gcc -E -D_FREETDS_LIBRARY_SOURCE conftest.c
configure:12503: $? = 0
configure:12523: result: yes
configure:12558: checking for arpa/inet.h
configure:12565: result: yes
configure:12442: checking netdb.h usability
configure:12454: gcc -c -g -O2 -D_FREETDS_LIBRARY_SOURCE conftest.c >&5
configure:12460: $? = 0
configure:12464: test -z
|| test ! -s conftest.err
configure:12467: $? = 0
configure:12470: test -s conftest.o
configure:12473: $? = 0
configure:12483: result: yes
configure:12487: checking netdb.h presence
configure:12497: gcc -E -D_FREETDS_LIBRARY_SOURCE conftest.c
configure:12503: $? = 0
configure:12523: result: yes
configure:12558: checking for netdb.h
configure:12565: result: yes
configure:12442: checking netinet/in.h usability
configure:12454: gcc -c -g -O2 -D_FREETDS_LIBRARY_SOURCE conftest.c >&5
configure:12460: $? = 0
configure:12464: test -z
|| test ! -s conftest.err
configure:12467: $? = 0
configure:12470: test -s conftest.o
configure:12473: $? = 0
configure:12483: result: yes
configure:12487: checking netinet/in.h presence
configure:12497: gcc -E -D_FREETDS_LIBRARY_SOURCE conftest.c
configure:12503: $? = 0
configure:12523: result: yes
configure:12558: checking for netinet/in.h
configure:12565: result: yes
configure:12442: checking netinet/tcp.h usability
configure:12454: gcc -c -g -O2 -D_FREETDS_LIBRARY_SOURCE conftest.c >&5
configure:12460: $? = 0
configure:12464: test -z
|| test ! -s conftest.err
configure:12467: $? = 0
configure:12470: test -s conftest.o
configure:12473: $? = 0
configure:12483: result: yes
configure:12487: checking netinet/tcp.h presence
configure:12497: gcc -E -D_FREETDS_LIBRARY_SOURCE conftest.c
configure:12503: $? = 0
configure:12523: result: yes
configure:12558: checking for netinet/tcp.h
configure:12565: result: yes
configure:12442: checking paths.h usability
configure:12454: gcc -c -g -O2 -D_FREETDS_LIBRARY_SOURCE conftest.c >&5
conftest.c:76:19: paths.h: No such file or directory
configure:12460: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "freetds"
| #define VERSION "0.64"
| #define _GNU_SOURCE 1
| #define _FILE_OFFSET_BITS 64
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define HAVE_ICONV 1
| #define ICONV_CONST const
| #define STDC_HEADERS 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_TZNAME 1
| #define HAVE_UNISTD_H 1
| #define HAVE_ERRNO_H 1
| #define HAVE_WCHAR_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_MALLOC_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_LOCALE_H 1
| #define HAVE_SIGNAL_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_ARPA_INET_H 1
| #define HAVE_NETDB_H 1
| #define HAVE_NETINET_IN_H 1
| #define HAVE_NETINET_TCP_H 1
| /* end confdefs.h. */
| #include <stdio.h>
| #if HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #if HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #if STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # if HAVE_STDLIB_H
| # include <stdlib.h>
| # endif
| #endif
| #if HAVE_STRING_H
| # if !STDC_HEADERS && HAVE_MEMORY_H
| # include <memory.h>
| # endif
| # include <string.h>
| #endif
| #if HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #if HAVE_INTTYPES_H
| # include <inttypes.h>
| #else
| # if HAVE_STDINT_H
| # include <stdint.h>
| # endif
| #endif
| #if HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <paths.h>
configure:12483: result: no
configure:12487: checking paths.h presence
configure:12497: gcc -E -D_FREETDS_LIBRARY_SOURCE conftest.c
conftest.c:42:19: paths.h: No such file or directory
configure:12503: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "freetds"
| #define VERSION "0.64"
| #define _GNU_SOURCE 1
| #define _FILE_OFFSET_BITS 64
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define HAVE_ICONV 1
| #define ICONV_CONST const
| #define STDC_HEADERS 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_TZNAME 1
| #define HAVE_UNISTD_H 1
| #define HAVE_ERRNO_H 1
| #define HAVE_WCHAR_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_MALLOC_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_LOCALE_H 1
| #define HAVE_SIGNAL_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_ARPA_INET_H 1
| #define HAVE_NETDB_H 1
| #define HAVE_NETINET_IN_H 1
| #define HAVE_NETINET_TCP_H 1
| /* end confdefs.h. */
| #include <paths.h>
configure:12523: result: no





Archive powered by MHonArc 2.6.24.

Top of Page