Bug 45287 - build failure because of difference between BSD and GNU make
Summary: build failure because of difference between BSD and GNU make
Status: NEEDINFO
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Build (show other bugs)
Version: 2.5-HEAD
Hardware: PC FreeBSD
: P4 minor (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-26 06:04 UTC by Takashi Sato
Modified: 2018-02-25 21:05 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Takashi Sato 2008-06-26 06:04:28 UTC
How to reproduce:

1. download httpd-2.2.9 tarball
2. $ cd httpd-2.2.9
3. patch to avoid bug 44631
4. $ ./buildconf
5. $ cd ../
6. $ mkdir 2.2.9-build && cd 2.2.9-build
8. $ ./configure --with-included-apr
9. $ cd server
10. $ make export_files

tmp=export_files_unsorted.txt;  rm -f $tmp && touch $tmp;  for dir in /usr/home/takashi/development/httpd-2.2.9/include /usr/home/takashi/development/httpd-2.2.9/os/unix /usr/home/takashi/development/httpd-2.2.9/modules/http; do  ls $dir/*.h >> $tmp;  done;  for dir in /usr/home/takashi/development/2.2.9-build/srclib/apr/include /usr/home/takashi/development/httpd-2.2.9/srclib/apr/include /usr/home/takashi/development/2.2.9-build/srclib/apr-util/include /usr/home/takashi/development/httpd-2.2.9/srclib/apr-util/include; do  (ls $dir/ap[ru].h $dir/ap[ru]_*.h >> $tmp 2>/dev/null);  done;  sort -u $tmp > export_files;  rm -f $tmp
*** Error code 1

Stop in /usr/home/takashi/development/2.2.9-build/server.

"do  (ls $dir/ap[ru].h $dir/ap[ru]_*.h >> $tmp 2>/dev/null);  done;"
fails, then make export_files stops.

This is because of difference between FreeBSD make and GNU make.
Following Makefile fails on FreeBSD make, but successes on GNU make.

foo:
[tab]false;true
Comment 1 William A. Rowe Jr. 2008-06-26 10:28:59 UTC
Noted; interesting analysis thank you(!)  Commenting so this pops to the top
of my bugzilla query for followup.
Comment 2 rahul 2008-08-20 10:16:40 UTC
Has this been fixed in trunk?
I could not reproduce it in trunk,
|uname -a
FreeBSD vayavyam.India.Sun.COM 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May  7 04:32:43 UTC 2006     root@opus.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

|make export_files
tmp=export_files_unsorted.txt;  rm -f $tmp && touch $tmp;  for dir in /space/store/apache.20.Aug/httpd/include /space/store/apache.20.Aug/httpd/os/unix; do  ls $dir/*.h >> $tmp;  done;  for dir in /space/store/apache.20.Aug/httpd/srclib/apr/include /space/store/apache.20.Aug/httpd/srclib/apr-util/include; do  (ls $dir/ap[ru].h $dir/ap[ru]_*.h >> $tmp 2>/dev/null);  done;  sort -u $tmp > export_files;  rm -f $tmp

|which make 
/usr/bin/make
Comment 3 Philp M. Gollucci 2009-01-18 16:19:13 UTC
CC myself on FreeBSD related bugs
Comment 4 Rainer Jung 2018-02-25 21:05:03 UTC
Undo spam change