You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Markus Thei�inger <ma...@gmx.de> on 1998/12/09 19:17:06 UTC

config/3514: parallel compilation (make -j)

>Number:         3514
>Category:       config
>Synopsis:       parallel compilation (make -j)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Wed Dec  9 10:20:00 PST 1998
>Last-Modified:
>Originator:     markus.theissinger@gmx.de
>Organization:
apache
>Release:        1.3.3
>Environment:
Linux 2.0.35, SuSe distribution 5.3, 2xPentium II 350 MHz, ASUS p2b-ds board
>Description:
I hit on a problem compiling Apache 1.3.3 on an SMP Linux
using 'make -j' for parallel compilation.

src/support building is started to early, i.e. before
src/os/unix builds libos. libos is required for linking
src/support stuff.
>How-To-Repeat:
configure
make -j

Some output of make:
make[1]: Entering directory `/usr/src/apache_1.3.3'
===> src
make[2]: Entering directory `/usr/src/apache_1.3.3'
===> src/support
make[3]: Entering directory `/usr/src/apache_1.3.3/src'
make[3]: Entering directory `/usr/src/apache_1.3.3/src/support'
===> src/regex
gcc -c  -I../os/unix -I../include -I/usr/ssl/include   -DLINUX=2 -DUSE_HSREGEX -fpic -DSHARED_CORE -DAPACHE_SSL `../apaci` htpasswd.c
gcc -c  -I../os/unix -I../include -I/usr/ssl/include   -DLINUX=2 -DUSE_HSREGEX -fpic -DSHARED_CORE -DAPACHE_SSL `../apaci` htdigest.c
gcc -c  -I../os/unix -I../include -I/usr/ssl/include   -DLINUX=2 -DUSE_HSREGEX -fpic -DSHARED_CORE -DAPACHE_SSL `../apaci` rotatelogs.c
gcc -I.  -I../os/unix -I../include -I/usr/ssl/include   -DLINUX=2 -DUSE_HSREGEX -fpic -DSHARED_CORE -DAPACHE_SSL `../apaci`
 -DPOSIX_MISTAKE   -c regcomp.c -o regcomp.o
gcc -c  -I../os/unix -I../include -I/usr/ssl/include   -DLINUX=2 -DUSE_HSREGEX -fpic -DSHARED_CORE -DAPACHE_SSL `../apaci` logresolve.c
gcc -c  -I../os/unix -I../include -I/usr/ssl/include   -DLINUX=2 -DUSE_HSREGEX -fpic -DSHARED_CORE -DAPACHE_SSL `../apaci` ab.c
gcc -I.  -I../os/unix -I../include -I/usr/ssl/include   -DLINUX=2 -DUSE_HSREGEX -fpic -DSHARED_CORE -DAPACHE_SSL `../apaci`
 -DPOSIX_MISTAKE   -c regexec.c -o regexec.o
sed <apxs.pl >apxs \
    -e 's%@CC@%gcc%g' \
    -e 's%@CFLAGS@% -DLINUX=2 -DUSE_HSREGEX -fpic -DSHARED_CORE -DAPACHE_SSL `../apaci`%g' \
    -e 's%@CFLAGS_SHLIB@%-DSHARED_MODULE%g' \
    -e 's%@LD_SHLIB@%ld%g' \
    -e 's%@LDFLAGS_SHLIB@%-Bshareable%g' \
gcc -I.  -I../os/unix -I../include -I/usr/ssl/include   -DLINUX=2 -DUSE_HSREGEX -fpic -DSHARED_CORE -DAPACHE_SSL `../apaci`
 -DPOSIX_MISTAKE   -c regerror.c -o regerror.o
    -e 's%@LIBS_SHLIB@%%g' && chmod a+x apxs
gcc -I.  -I../os/unix -I../include -I/usr/ssl/include   -DLINUX=2 -DUSE_HSREGEX -fpic -DSHARED_CORE -DAPACHE_SSL `../apaci`
 -DPOSIX_MISTAKE   -c regfree.c -o regfree.o
gcc  -DLINUX=2 -DUSE_HSREGEX -fpic -DSHARED_CORE -DAPACHE_SSL `../apaci` htpasswd.o -o htpasswd   -L../os/unix -L../ap -los
 -lap  -lm -ldl -L/usr/ssl/lib -lssl -lcrypto
gcc  -DLINUX=2 -DUSE_HSREGEX -fpic -DSHARED_CORE -DAPACHE_SSL `../apaci` rotatelogs.o -o rotatelogs   -L../os/unix -L../ap -los -lap  -lm -ldl -L/usr/ssl/lib -lssl -lcrypto
/usr/i486-linux/bin/ld: cannot open -los: No such file or directory/usr/i486-linux/bin/ld
make[3]: *** [htpasswd] Error 1
make[3]: *** Waiting for unfinished jobs....
: cannot open -los: No such file or directory
make[3]: *** [rotatelogs] Error 1
make[3]: Leaving directory `/usr/src/apache_1.3.3/src/support'
make[3]: Entering directory `/usr/src/apache_1.3.3/src/support'
gcc -c  -I../os/unix -I../include -I/usr/ssl/include   -DLINUX=2 -DUSE_HSREGEX -fpic -DSHARED_CORE -DAPACHE_SSL -DHTTPD_USER=\"apache\"  -DUID_MIN=100  -DGID_MIN=100  -DUSERDIR_SUFFIX=\"public_html\"  -DLOG_EXEC=\"/usr/apache/var/log/suexec_log\"
  -DDOC_ROOT=\"/usr/apache/share/htdocs\"  -DSAFE_PATH=\"/usr/local/bin:/usr/bin/:/bin\"   suexec.c
rm -f libregex.a
ar cr libregex.a regcomp.o regexec.o regerror.o regfree.o
ranlib libregex.a
<=== src/regex
===> src/os/unix
....
>Fix:
Apply patch below to apache_1.3.3/Makefile.tmpl:
(Cut&paste into the www-form might have broken something,
please ask for the file as an email-attachment I you encounter any problems)

------------Start patch-------------
*** Makefile.tmpl.orig  Sat Sep 19 14:41:48 1998
--- Makefile.tmpl       Wed Dec  9 19:29:36 1998
***************
*** 147,153 ****
  #   build the package
  build:
        @echo "===> $(SRC)"
!       @$(MAKE) -f $(MKF) $(MFLAGS) $(MFWD) build-std $(build-support)
        @touch $(TOP)/$(SRC)/.apaci.build.ok
        @echo "<=== $(SRC)"

--- 147,154 ----
  #   build the package
  build:
        @echo "===> $(SRC)"
!       @$(MAKE) -f $(MKF) $(MFLAGS) $(MFWD) build-std
!       @$(MAKE) -f $(MKF) $(MFLAGS) $(MFWD) $(build-support)
        @touch $(TOP)/$(SRC)/.apaci.build.ok
        @echo "<=== $(SRC)"

------------End patch---------------
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <ap...@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]
[If you do not include this Cc, your reply may be ig-   ]
[nored unless you are responding to an explicit request ]
[from a developer.                                      ]
[Reply only with text; DO NOT SEND ATTACHMENTS!         ]