#64 getaddrinfo_01 fails compile on SLES-8

Testcases (113)
Mark Ver

getaddrinfo_01 from ltp-full-20050207 version fails to
compile with SLES-8 on zSeries machines. The previous
version ltp-full-20050107 compiled/ran fine on SLES-8.
Not sure yet if this is new testcase all together or
is new issue with testcase on SLES-8. This new version
LTP, ltp-full-20050207 is said to work ok with the 2.6
kernel systems (RHEL-4 and SLES-9).

Compile Attempt:
make[3]: Entering directory
cc -Wall -I../../../include -g getaddrinfo_01.c
-L../../../lib -lltp -o getaddrinfo_01
getaddrinfo_01.c: In function `gaiv4':
getaddrinfo_01.c:465: `AI_V4MAPPED' undeclared (first
use in this function)
getaddrinfo_01.c:465: (Each undeclared identifier is
reported only once
getaddrinfo_01.c:465: for each function it appears in.)
getaddrinfo_01.c: In function `gaiv6':
getaddrinfo_01.c:874: `AI_V4MAPPED' undeclared (first
use in this function)
getaddrinfo_01.c: In function `dumpres':
getaddrinfo_01.c:915: warning: unsigned int format,
pointer arg (arg 3)
getaddrinfo_01.c:928: warning: implicit declaration of
function `inet_ntop'
getaddrinfo_01.c:943: warning: unsigned int format,
pointer arg (arg 2)
make[3]: *** [getaddrinfo_01] Error 1
make[3]: Leaving directory
make[2]: *** [all] Error 2
make[2]: Leaving directory
make[1]: *** [all] Error 2
make[1]: Leaving directory
make: *** [all] Error 2
vm1l3:~/ltp-full-20050207 #

System Info:
Hardware: IBM z900
VM Control: z/VM 5.1.0
Arch: s390
Distro level: SLES-8 SP3 + maintweb updates
Kernel level: k_deflt-2.4.21-266
gcc/gcc-c++: gcc-3.2.2-54,gcc-c++-3.2.2-54
glibc: glibc-2.2.5-233
libstdc++: libstdc++-3.2.2-54


  • Mark Ver

    Mark Ver - 2005-03-01

    Logged In: YES

    Correction. A colleague just pointed out that the previous
    level ltp-full-20050107 fails on SLES-8 in same way.

  • Robert Williamson

    • assigned_to: nobody --> robbiew
  • Robert Williamson

    Logged In: YES

    This was caught soon after the release. I have fixed it in
    our CVS tree and also attached the fixed version to this bug

  • Robert Williamson

    • status: open --> closed-fixed
  • Mark Ver

    Mark Ver - 2005-03-03

    Logged In: YES

    ok, yes patch version confirmed.
    I see ... these are apparently all new extensions to the
    ai_flags in the addrinfo structure:
    AI_V4MAPPED /* IPv4 mapped addresses are acceptable. */
    AI_ALL /* Return IPv4 mapped and IPv6
    addresses. */
    AI_ADDRCONFIG /* Use configuration of this host to choose
    returned address type.. */
    ... and don't exist in netdb.h for SLES-8.
    Hmm ... I wonder if SuSE should be updating netdb.h for SLES-8?


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks