INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Cc processes lingering

Cc processes lingering

(OP)
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.

RE: Cc processes lingering

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 "cc" processes are the C compiler. I would wait till they all complete before doing the "make install".

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 

RE: Cc processes lingering

(OP)
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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close