#64 getaddrinfo_01 fails compile on SLES-8

closed-fixed
Testcases (113)
5
2005-03-01
2005-03-01
Mark Ver
No

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
`/root/ltp-full-20050207/testcases/network/lib6'
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
`/root/ltp-full-20050207/testcases/network/lib6'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/root/ltp-full-20050207/testcases/network'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/root/ltp-full-20050207/testcases'
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

Discussion

  • Mark Ver
    Mark Ver
    2005-03-01

    Logged In: YES
    user_id=1230177

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

     
    • assigned_to: nobody --> robbiew
     
  • Logged In: YES
    user_id=236704

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

     
    • status: open --> closed-fixed
     
  • Fixed version from CVS

     
    Attachments
  • Mark Ver
    Mark Ver
    2005-03-03

    Logged In: YES
    user_id=1230177

    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?