bugmake - Bugs: bug #15026, make-3.80 shell function returns...

 
 

bug #15026: make-3.80 shell function returns null string

Submitted by:  None
Submitted on:  Mon 21 Nov 2005 08:27:52 AM UTC  
 
Severity: 3 - NormalItem Group: Bug
Status: Works for mePrivacy: Public
Assigned to: NoneOpen/Closed: Closed
Component Version: 3.80Operating System: POSIX-Based
Fixed Release: NoneTriage Status: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 12 Dec 2005 01:36:07 PM UTC, comment #3:

The SYS_SIGLIST issue is already fixed in the source. I'm not familiar with any errors that might be generated by "cc -std1"; if you like you can post them here and I'll take a look at them.

Paul D. Smith <psmith>
Project Administrator
Wed 23 Nov 2005 09:49:20 AM UTC, comment #2:

This problem has been fixed already.
make-3.81beta3 works well. Thank you.

I had some problems in compiling. Probably you know already but I'll report them just in case.

HAVE_DECL_SYS_SIGLIST is defined in 'config.h', therefor signame.c(30):!defined(HAVE_DECL_SYS_SIGLIST) is always false.

'cc' with '-std1' is interrupted by errors in compiling 'main.c'.
('cc' without '-std1' is OK.)

Anonymous
Mon 21 Nov 2005 07:21:07 PM UTC, comment #1:

This works fine for me, so I suspect it's an issue on OSF1. Especially with the commend about read(2) getting EINTR: since you're not running parallel make here (-j) you shouldn't be getting EINTR signals at all.
However, you can try the latest beta of GNU make, where there are some loops to try to handle EINTR, and see if that helps at all:
ftp://alpha.gnu.org/gnu/make/make-3.81beta3.tar.gz

Paul D. Smith <psmith>
Project Administrator
Mon 21 Nov 2005 08:27:52 AM UTC, original submission:

make-3.79.1 shell function returns expected string.
But make-3.80 shell function returns null string.
The result is as follows:
% uname -a
OSF1 kokemomo V4.0 878 alpha
% cat shell.mk
VPATH = .:../src:/var/tmp/gnu:/var/tmp/include

shout := $(shell echo $(subst :, ,$(VPATH)) | \
awk '{for(i=1;i<=NF;i++) print length($$i) " " $$i}' | \
sort -u -k1,1nr -k2 | \
awk '{gsub(/\./,"\\.",$$2); print "s|\\([: \t]\\)" $$2 "/|\\1|g;"}')

test:
echo '$(shout)'
%
% ../make-3.79.1/make -v
GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
Built for alpha-dec-osf4.0d
Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000
Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

Report bugs to <bug-make@gnu.org>.

% ../make-3.79.1/make -f shell.mk
echo 's|\([: ]\)/var/tmp/include/|\1|g; s|\([: ]\)/var/tmp/gnu/|\1|g; s|\([: ]\)\.\./src/|\1|g; s|\([: ]\)\./|\1|g;'
s|\([: ]\)/var/tmp/include/|\1|g; s|\([: ]\)/var/tmp/gnu/|\1|g; s|\([: ]\)\.\./src/|\1|g; s|\([: ]\)\./|\1|g;
%
% ../make-3.80/make -v
GNU Make 3.80
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
% ../make-3.80/make -f shell.mk
echo ''

%

FYI:
make-3.80/function.c(1609)
The read() function returns -1 and errno sets [EINTR] on my system.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #2643:  func_shell.tar.gz added by None (4KiB - application/x-gzip-compressed - captured screen image, make-3.80/config.h, description file for test)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Mon 12 Dec 2005 01:36:07 PM UTCpsmithOpen/ClosedOpen=>Closed
Mon 21 Nov 2005 07:21:07 PM UTCpsmithStatusNone=>Works for me
Mon 21 Nov 2005 08:27:52 AM UTCNoneAttached File-=>Added func_shell.tar.gz, #3120

Back to the top


Powered by Savane 3.1-cleanup1