Opened 18 years ago

Closed 18 years ago

Last modified 17 years ago

#1901 closed defect (fixed)

less-394 is not detecting sigset_t

Reported by: robert@… Owned by: Matthew Burgess
Priority: normal Milestone:
Component: Book Version: SVN
Severity: normal Keywords:
Cc:

Description

We are getting a warning from Less: os.c:109: warning: 'sigsetmask' is deprecated (declared at /usr/include/signal.h:184)

This is caused because 'sigprocmask' replaces 'sigsetmask', and 'sigprocmask' depends on 'sigset_t', and 'sigset_t' is not being detected properly by configure.

So anyway, I committed the "less-394-signal_fix-1.patch" to fix it.

robert

Change History (7)

comment:1 by Matthew Burgess, 18 years ago

Can you define what you mean by "'sigset_t' is not being detected properly by configure" please? I get:

checking for _setjmp... yes
checking for sigprocmask... yes
checking for sigsetmask... yes
checking for snprintf... yes

in my logs. So, both the newer sigprocmask and the deprecated sigsetmask functions are detected If you still think there's a bug there, could you submit the patch upstream please? (see http://www.greenwoodsoftware.com/less/#bugs).

comment:2 by robert@…, 18 years ago

I did report it upstream... The problem is this:

checking for sigset_t... no

Then in less.h:

#if HAVE_SIGPROCMASK #if HAVE_SIGSET_T #else #undef HAVE_SIGPROCMASK #endif

So when make(1) gets to building os.c the:

#if HAVE_SIGPROCMASK

gets skipped over and:

#if HAVE_SIGSETMASK

is the next match.

comment:3 by Matthew Burgess, 18 years ago

Owner: changed from lfs-book@… to Matthew Burgess
Status: newassigned

comment:4 by robert@…, 18 years ago

I received an email today from greenwoodsoftware (the Less maintainers) saying that the "less-394-signal_fix-1.patch" was accepted and will be in the next Less release.

comment:5 by Matthew Burgess, 18 years ago

Milestone: 6.3

comment:6 by Matthew Burgess, 18 years ago

Resolution: fixed
Status: assignedclosed

comment:7 by Jeremy Huntwork, 17 years ago

Milestone: 6.3

Milestone 6.3 deleted

Note: See TracTickets for help on using tickets.