Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cc processes lingering

Status
Not open for further replies.

misscognos

Programmer
May 5, 2006
142
US
Hi,

New to this. I am trying to go through the configure, make, make install process with 2.4.26. trying to compile 64 bit on Solaris 11.

I set up zlib, pcre and drop apr and apr-util in the httpd extract and use the included apr option.

When I run a configure or make (on anything- zlib, pcre, httpd), it appears to complete on the command line but if I check the processes there are a bunch of cc processes. They do eventually go away but take forever to go away- hours some times. Htttpd has the largest number of lingering cc processes and it takes the longest. The processes are using CPU.

Is this what is supposed to happen? I don't see any errors. But, it just seems very weird. Since I am new I am afraid I may have done something wrong and don't realize it.
 
I've never built Apache on Solaris, so it may be acting differently from what I'm used to, but I don't recall processes running after the make completes. BUT, those "[tt]cc[/tt]" processes are the C compiler. I would wait till they all complete before doing the "[tt]make install[/tt]".

Here's roughly the commands I use to build Apache...

Code:
export CFLAGS="-O2"
./configure --prefix=/app/apache --plus-whatever-other-options-you-want
make clean
make
make install

 
Thanks for the response. This one seems a little more complicated because of the 64 bit. This is what I am doing.


FINALDIRECTORY=/usr/local; export FINALDIRECTORY

EXTRACTLOCATION=/Dr/c; export EXTRACTLOCATION



Zlibdirectory=zlib; export Zlibdirectory

zlibfile=zlib-1.2.5.tar.gz; export zlibfile

pcredir=pcre; export pcredir

pcrefile=pcre-8.37.tar.gz; export pcrefile

apachedir=apache; export apachedir

apachefile=httpd-2.4.26.tar.gz; export apachefile

ssldir=/lib/64; export ssldir

aprlfile=apr-1.6.2.tar.gz; export aprlfile

aprutilfile=apr-util-1.6.0.tar.gz; export aprutilfile



#ZLIB

cd $EXTRACTLOCATION



LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib; export LD_LIBRARY_PATH

PATH=/usr/sfw/bin:/usr/bin:/usr/ccs/bin:/usr/dt/bin:/usr/openwin/bin:/usr/sbin:/opt/solarisstudio12.4/bin; export PATH

CFLAGS=-"m64 -fast -xcode=pic32"; export CFLAGS

LDSHARED="cc -m64 -G"; export LDSHARED



#extract files

tar -zxvf $zlibfile



cd $EXTRACTLOCATION/${zlibfile/.tar.gz/}

./configure --prefix=$FINALDIRECTORY/$Zlibdirectory



make

make install





#PCRE

cd $EXTRACTLOCATION



#extract files

tar -zxvf $pcrefile



CFLAGS="-m64"; export CFLAGS

cd $EXTRACTLOCATION/${pcrefile/.tar.gz/}

./configure --disable-cpp --prefix=$FINALDIRECTORY/$pcredir



make

make install



#APACHE





LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib; export LD_LIBRARY_PATH

PATH=/usr/sfw/bin:/usr/bin:/usr/ccs/bin:/usr/dt/bin:/usr/openwin/bin:/usr/sbin:/opt/solarisstudio12.4/bin; export PATH

LDSHARED="cc -m64 -G"; export LDSHARED

CFLAGS="-DEAPI -m64"; export CFLAGS



cd $EXTRACTLOCATION







tar -zxvf $apachefile



cp $EXTRACTLOCATION/$aprlfile $EXTRACTLOCATION/${apachefile/.tar.gz/}/srclib/$aprlfile

cd $EXTRACTLOCATION/${apachefile/.tar.gz/}/srclib



tar -zxvf $aprlfile

mv ${aprlfile/.tar.gz/} apr





cp $EXTRACTLOCATION/$aprutilfile $EXTRACTLOCATION/${apachefile/.tar.gz/}/srclib/$aprutilfile

cd $EXTRACTLOCATION/${apachefile/.tar.gz/}/srclib



tar -zxvf $aprutilfile

mv ${aprutilfile/.tar.gz/} apr-util



cd $EXTRACTLOCATION/${apachefile/.tar.gz/}



./configure --prefix=$FINALDIRECTORY/$apachedir --enable-so --enable-mods-shared=all --with-pcre=$FINALDIRECTORY/$pcredir --with-apxs --with-included-apr --enable-unique_id=shared --enable-proxy --enable-proxy-ajp --enable-proxy-connect --with-z=$FINALDIRECTORY/$Zlibdirectory --with-ssl=$ssldir --enable-mods-static=ssl --enable-proxy-balancer --enable-proxy-http





cd $EXTRACTLOCATION/${apachefile/.tar.gz/}

gmake

gmake install
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top