2010-11-23 07:51:25

by Gabor Z. Papp

[permalink] [raw]
Subject: Re: [PATCH] NSM: Replace __attribute_noinline__

* Chuck Lever <[email protected]>:

| Gabor-

| Can you try this out? Either it will fix the problem, or it will tell
| us more about the issue.

Seems like the problem fixed, but got new one:

make[3]: Entering directory
`/home/gzp/src/nfs-utils-1.2.3/utils/statd'
gcc -DHAVE_CONFIG_H -I. -I../../support/include -D_GNU_SOURCE -Wall
-Wextra -Wstrict-prototypes -pipe -g -O2 -MT sm-notify.o -MD -MP -MF .deps/sm-notify.Tpo -c -o sm-notify.o sm-notify.c sm-notify.c: In function 'smn_bind_address':
sm-notify.c:247: error: 'AI_NUMERICSERV' undeclared (first use in this function)
sm-notify.c:247: error: (Each undeclared identifier is reported only once
sm-notify.c:247: error: for each function it appears in.)
make[3]: *** [sm-notify.o] Error 1

AI_NUMERICSERV defined only in glibc 2.3, but not in 2.2.


2010-11-23 16:02:23

by Chuck Lever III

[permalink] [raw]
Subject: Re: [PATCH] NSM: Replace __attribute_noinline__


On Nov 23, 2010, at 2:51 AM, Gabor Z. Papp wrote:

> * Chuck Lever <[email protected]>:
>
> | Gabor-
>
> | Can you try this out? Either it will fix the problem, or it will tell
> | us more about the issue.
>
> Seems like the problem fixed, but got new one:
>
> make[3]: Entering directory
> `/home/gzp/src/nfs-utils-1.2.3/utils/statd'
> gcc -DHAVE_CONFIG_H -I. -I../../support/include -D_GNU_SOURCE -Wall
> -Wextra -Wstrict-prototypes -pipe -g -O2 -MT sm-notify.o -MD -MP -MF .deps/sm-notify.Tpo -c -o sm-notify.o sm-notify.c sm-notify.c: In function 'smn_bind_address':
> sm-notify.c:247: error: 'AI_NUMERICSERV' undeclared (first use in this function)
> sm-notify.c:247: error: (Each undeclared identifier is reported only once
> sm-notify.c:247: error: for each function it appears in.)
> make[3]: *** [sm-notify.o] Error 1
>
> AI_NUMERICSERV defined only in glibc 2.3, but not in 2.2.

Apparently so. I'll look into it.

--
Chuck Lever
chuck[dot]lever[at]oracle[dot]com