diff mbox

test_nptl: replace __sigpause with sigpause

Message ID 1406297481-8690-1-git-send-email-abrodkin@synopsys.com
State Accepted
Headers show

Commit Message

Alexey Brodkin July 25, 2014, 2:11 p.m. UTC
On attempt to build uClibc tests following error message appears:

Comments

Alexey Brodkin Aug. 18, 2014, 6:16 a.m. UTC | #1
Dear Bernhard,

On Fri, 2014-07-25 at 18:11 +0400, Alexey Brodkin wrote:
> On attempt to build uClibc tests following error message appears:
> =========
> TEST_LINK nptl/ tst-cancel4
> tst-cancel4.c: In function 'tf_sigpause':
> tst-cancel4.c:765:3: warning: implicit declaration of function
> '__sigpause' [-Wimplicit-function-declaration]
> __sigpause (SIGCANCEL, 1);
> ^
> tst-cancel4.o: In function `tf_sigpause':
> tst-cancel4.c:(.text+0x1054): undefined reference to `__sigpause'
> collect2: error: ld returned 1 exit status
> =========
> 
> This commit http://git.uclibc.org/uClibc/commit/?id=cef1f9517c319d86b4b426ecc14a10d0fa5494c7
> makes __sigpause static limiting its scope to "libc/signal/sigpause.c".
> 
> Switching to common implementation "sigpause()" fixes this issue.

I'm wondering if there's a chance to get this fix applied?

Regards,
Alexey
Bernhard Reutner-Fischer Aug. 18, 2014, 9:51 a.m. UTC | #2
On Mon, Aug 18, 2014 at 06:16:29AM +0000, Alexey Brodkin wrote:
> Dear Bernhard,
> 
> On Fri, 2014-07-25 at 18:11 +0400, Alexey Brodkin wrote:
> > On attempt to build uClibc tests following error message appears:
> > =========
> > TEST_LINK nptl/ tst-cancel4
> > tst-cancel4.c: In function 'tf_sigpause':
> > tst-cancel4.c:765:3: warning: implicit declaration of function
> > '__sigpause' [-Wimplicit-function-declaration]
> > __sigpause (SIGCANCEL, 1);
> > ^
> > tst-cancel4.o: In function `tf_sigpause':
> > tst-cancel4.c:(.text+0x1054): undefined reference to `__sigpause'
> > collect2: error: ld returned 1 exit status
> > =========
> > 
> > This commit http://git.uclibc.org/uClibc/commit/?id=cef1f9517c319d86b4b426ecc14a10d0fa5494c7
> > makes __sigpause static limiting its scope to "libc/signal/sigpause.c".
> > 
> > Switching to common implementation "sigpause()" fixes this issue.
> 
> I'm wondering if there's a chance to get this fix applied?

Applied, thanks!
diff mbox

Patch

=========
TEST_LINK nptl/ tst-cancel4
tst-cancel4.c: In function 'tf_sigpause':
tst-cancel4.c:765:3: warning: implicit declaration of function
'__sigpause' [-Wimplicit-function-declaration]
__sigpause (SIGCANCEL, 1);
^
tst-cancel4.o: In function `tf_sigpause':
tst-cancel4.c:(.text+0x1054): undefined reference to `__sigpause'
collect2: error: ld returned 1 exit status
=========

This commit http://git.uclibc.org/uClibc/commit/?id=cef1f9517c319d86b4b426ecc14a10d0fa5494c7
makes __sigpause static limiting its scope to "libc/signal/sigpause.c".

Switching to common implementation "sigpause()" fixes this issue.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>

Suggested-by: Vineet Gupta <vgupta@synopsys.com>
Cc: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
---
 test/nptl/tst-cancel4.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/test/nptl/tst-cancel4.c b/test/nptl/tst-cancel4.c
index 874de67..e711958 100644
--- a/test/nptl/tst-cancel4.c
+++ b/test/nptl/tst-cancel4.c
@@ -758,11 +758,8 @@  tf_sigpause (void *arg)
 
   pthread_cleanup_push (cl, NULL);
 
-  /* Just for fun block the cancellation signal.  We need to use
-     __xpg_sigpause since otherwise we will get the BSD version.  */
-  //__xpg_sigpause (SIGCANCEL);
-
-  __sigpause (SIGCANCEL, 1);
+  /* Just for fun block the cancellation signal.  */
+  sigpause (SIGCANCEL);
 
   pthread_cleanup_pop (0);