ok. use this,
# cd /usr/sfw/bin

 # ln-s gcc /usr/bin

then try...
& tell me..


On Wed, Mar 5, 2008 at 11:33 AM, ChrisS <[EMAIL PROTECTED]>
wrote:

> Partha Goswami wrote:
> > gcc is, located, in /usr/sfw/bin you have to export part, or make soft
> link,
> > for that...
> >
> > On Wed, Mar 5, 2008 at 11:17 AM, ChrisS <
> [EMAIL PROTECTED]>
> > wrote:
> >
> >
> >> I am trying to compile mod_jk current on Solaris 10 x86 (intel). After
> >> spending a huge amount of time, I finally get it to compile and this is
> >> the output I receive.
> >>
> >> bash-3.00#./configure --with-apxs=/usr/apache/bin/apxs
> >> checking build system type... i386-pc-solaris2.10
> >> checking host system type... i386-pc-solaris2.10
> >> checking target system type... i386-pc-solaris2.10
> >> checking for a BSD-compatible install... scripts/build/unix/install-sh
> -c
> >> checking whether build environment is sane... yes
> >> checking for a thread-safe mkdir -p... scripts/build/unix/install-sh -c
> -d
> >> checking for gawk... no
> >> checking for mawk... no
> >> checking for nawk... nawk
> >> checking whether make sets $(MAKE)... yes
> >> checking for test... /usr/bin/test
> >> checking for rm... /usr/bin/rm
> >> checking for grep... /usr/bin/grep
> >> checking for echo... /usr/bin/echo
> >> checking for sed... /usr/bin/sed
> >> checking for cp... /usr/bin/cp
> >> checking for mkdir... /usr/bin/mkdir
> >> need to check for Perl first, apxs depends on it...
> >> checking for perl... /usr/bin/perl
> >> building connector for "apache-1.3"
> >> checking for gcc... /usr/sfw/bin/gcc
> >> checking for C compiler default output file name... a.out
> >> checking whether the C compiler works... yes
> >> checking whether we are cross compiling... no
> >> checking for suffix of executables...
> >> checking for suffix of object files... o
> >> checking whether we are using the GNU C compiler... yes
> >> checking whether /usr/sfw/bin/gcc accepts -g... yes
> >> checking for /usr/sfw/bin/gcc option to accept ISO C89... none needed
> >> checking for style of include used by make... GNU
> >> checking dependency style of /usr/sfw/bin/gcc... none
> >> checking for a sed that does not truncate output... /usr/bin/sed
> >> checking for grep that handles long lines and -e... (cached)
> /usr/bin/grep
> >> checking for egrep... /usr/bin/egrep
> >> checking for ld used by /usr/sfw/bin/gcc... /usr/ccs/bin/ld
> >> checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
> >> checking for /usr/ccs/bin/ld option to reload object files... -r
> >> checking for BSD-compatible nm... /usr/ccs/bin/nm -p
> >> checking whether ln -s works... yes
> >> checking how to recognize dependent libraries... pass_all
> >> checking how to run the C preprocessor... /usr/sfw/bin/gcc -E
> >> checking for ANSI C header files... yes
> >> checking for sys/types.h... yes
> >> checking for sys/stat.h... yes
> >> checking for stdlib.h... yes
> >> checking for string.h... yes
> >> checking for memory.h... yes
> >> checking for strings.h... yes
> >> checking for inttypes.h... yes
> >> checking for stdint.h... yes
> >> checking for unistd.h... yes
> >> checking dlfcn.h usability... yes
> >> checking dlfcn.h presence... yes
> >> checking for dlfcn.h... yes
> >> checking for g++... g++
> >> checking whether we are using the GNU C++ compiler... yes
> >> checking whether g++ accepts -g... yes
> >> checking dependency style of g++... none
> >> checking how to run the C++ preprocessor... g++ -E
> >> checking for g77... no
> >> checking for f77... no
> >> checking for xlf... no
> >> checking for frt... no
> >> checking for pgf77... no
> >> checking for cf77... no
> >> checking for fort77... no
> >> checking for fl32... no
> >> checking for af77... no
> >> checking for f90... no
> >> checking for xlf90... no
> >> checking for pgf90... no
> >> checking for pghpf... no
> >> checking for epcf90... no
> >> checking for gfortran... no
> >> checking for g95... no
> >> checking for f95... no
> >> checking for fort... no
> >> checking for xlf95... no
> >> checking for ifort... no
> >> checking for ifc... no
> >> checking for efc... no
> >> checking for pgf95... no
> >> checking for lf95... no
> >> checking for ftn... no
> >> checking whether we are using the GNU Fortran 77 compiler... no
> >> checking whether  accepts -g... no
> >> checking the maximum length of command line arguments... 786240
> >> checking command to parse /usr/ccs/bin/nm -p output from
> >> /usr/sfw/bin/gcc object... ok
> >> checking for objdir... .libs
> >> checking for ar... ar
> >> checking for ranlib... ranlib
> >> checking for strip... strip
> >> checking if /usr/sfw/bin/gcc supports -fno-rtti -fno-exceptions... no
> >> checking for /usr/sfw/bin/gcc option to produce PIC... -fPIC
> >> checking if /usr/sfw/bin/gcc PIC flag -fPIC works... yes
> >> checking if /usr/sfw/bin/gcc static flag -static works... no
> >> checking if /usr/sfw/bin/gcc supports -c -o file.o... yes
> >> checking whether the /usr/sfw/bin/gcc linker (/usr/ccs/bin/ld) supports
> >> shared libraries... yes
> >> checking whether -lc should be explicitly linked in... yes
> >> checking dynamic linker characteristics... solaris2.10 ld.so
> >> checking how to hardcode library paths into programs... immediate
> >> checking whether stripping libraries is possible... no
> >> checking for shl_load... no
> >> checking for shl_load in -ldld... no
> >> checking for dlopen... yes
> >> checking whether a program can dlopen itself... yes
> >> checking whether a statically linked program can dlopen itself... yes
> >> checking if libtool supports shared libraries... yes
> >> checking whether to build shared libraries... yes
> >> checking whether to build static libraries... yes
> >> configure: creating libtool
> >> appending configuration tag "CXX" to libtool
> >> checking for ld used by g++... /usr/ccs/bin/ld
> >> checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
> >> checking whether the g++ linker (/usr/ccs/bin/ld) supports shared
> >> libraries... yes
> >> checking for g++ option to produce PIC... -fPIC
> >> checking if g++ PIC flag -fPIC works... yes
> >> checking if g++ static flag -static works... no
> >> checking if g++ supports -c -o file.o... yes
> >> checking whether the g++ linker (/usr/ccs/bin/ld) supports shared
> >> libraries... yes
> >> checking dynamic linker characteristics... solaris2.10 ld.so
> >> checking how to hardcode library paths into programs... immediate
> >> appending configuration tag "F77" to libtool
> >> LIBTOOL="$(SHELL) $(top_builddir)/libtool"
> >> checking for char... yes
> >> checking size of char... 1
> >> checking for int... yes
> >> checking size of int... 4
> >> checking for long... yes
> >> checking size of long... 4
> >> checking for short... yes
> >> checking size of short... 2
> >> checking for long double... yes
> >> checking size of long double... 12
> >> checking for long long... yes
> >> checking size of long long... 8
> >> checking for longlong... no
> >> checking size of longlong... 0
> >> checking size of pid_t... 4
> >> checking for snprintf... yes
> >> checking for vsnprintf... yes
> >> checking for flock... no
> >> checking for setsockopt in -lsocket... yes
> >> checking sys/filio.h usability... yes
> >> checking sys/filio.h presence... yes
> >> checking for sys/filio.h... yes
> >> checking whether to use SO_RCVTIMEO with setsockopt()... no
> >> checking whether to use SO_SNDTIMEO with setsockopt()... no
> >> checking for target platform... unix
> >> no apache given
> >> no netscape given
> >> configure: creating ./config.status
> >> config.status: creating Makefile
> >> config.status: creating apache-1.3/Makefile
> >> config.status: creating apache-1.3/Makefile.apxs
> >> config.status: creating apache-2.0/Makefile
> >> config.status: creating apache-2.0/Makefile.apxs
> >> config.status: creating common/Makefile
> >> config.status: creating common/list.mk
> >> config.status: creating common/jk_types.h
> >> config.status: creating jni/Makefile
> >> config.status: creating common/portable.h
> >> config.status: common/portable.h is unchanged
> >> config.status: executing depfiles commands
> >> configure: WARNING: Using CC from environment:
> >> configure: WARNING:     CC="/usr/sfw/bin/gcc"
> >> configure: WARNING: instead of CC from apxs:
> >> configure: WARNING:     CC="cc"
> >> configure: WARNING: If "make" throws an error of the form
> >> configure: WARNING:     "libtool: compile: unable to infer tagged
> >> configuration"configure: WARNING:     "libtool: compile: specify a tag
> >> with `--tag'"
> >> configure: WARNING: try running configure without setting CC,
> >> configure: WARNING: or at least CC should start with "cc"
> >> bash-3.00#
> >>
> >> I have not been able to figure out the warnings on this as of yet and I
> >> have tried setting various enviroment variables to combat it, all to no
> >> avail.
> >>
> >> This is the output from my gmake attempt:
> >>
> >> bash-3.00#gmake
> >> Making all in common
> >> gmake[1]: Entering directory `/www/connectors/jk/native/common'
> >> gmake[1]: Nothing to be done for `all'.
> >> gmake[1]: Leaving directory `/www/connectors/jk/native/common'
> >> Making all in apache-1.3
> >> gmake[1]: Entering directory `/www/connectors/jk/native/apache-1.3'
> >> /bin/sh ../libtool --mode=link /usr/sfw/bin/gcc -o mod_jk.la -module
> >> -rpath /usr/apache/libexec mod_jk.lo ../common/jk_ajp12_worker.lo
> >> ../common/jk_connect.lo ../common/jk_msg_buff.lo ../common/jk_util.lo
> >> ../common/jk_ajp13.lo ../common/jk_pool.lo ../common/jk_worker.lo
> >> ../common/jk_ajp13_worker.lo ../common/jk_lb_worker.lo
> >> ../common/jk_sockbuf.lo ../common/jk_map.lo
> >> ../common/jk_uri_worker_map.lo ../common/jk_ajp14.lo
> >> ../common/jk_ajp14_worker.lo ../common/jk_md5.lo ../common/jk_shm.lo
> >> ../common/jk_ajp_common.lo ../common/jk_context.lo ../common/jk_url.lo
> >> ../common/jk_status.lo
> >> /usr/sfw/bin/gcc -shared -Wl,-h -Wl,mod_jk.so.0 -o
> >> .libs/mod_jk.so.0.0.0  .libs/mod_jk.o ../common/.libs/jk_ajp12_worker.o
> >> ../common/.libs/jk_connect.o ../common/.libs/jk_msg_buff.o
> >> ../common/.libs/jk_util.o ../common/.libs/jk_ajp13.o
> >> ../common/.libs/jk_pool.o ../common/.libs/jk_worker.o
> >> ../common/.libs/jk_ajp13_worker.o ../common/.libs/jk_lb_worker.o
> >> ../common/.libs/jk_sockbuf.o ../common/.libs/jk_map.o
> >> ../common/.libs/jk_uri_worker_map.o ../common/.libs/jk_ajp14.o
> >> ../common/.libs/jk_ajp14_worker.o ../common/.libs/jk_md5.o
> >> ../common/.libs/jk_shm.o ../common/.libs/jk_ajp_common.o
> >> ../common/.libs/jk_context.o ../common/.libs/jk_url.o
> >> ../common/.libs/jk_status.o  -lc
> >> gcc: .libs/mod_jk.o: No such file or directory
> >> gcc: ../common/.libs/jk_ajp12_worker.o: No such file or directory
> >> gcc: ../common/.libs/jk_connect.o: No such file or directory
> >> gcc: ../common/.libs/jk_msg_buff.o: No such file or directory
> >> gcc: ../common/.libs/jk_util.o: No such file or directory
> >> gcc: ../common/.libs/jk_ajp13.o: No such file or directory
> >> gcc: ../common/.libs/jk_pool.o: No such file or directory
> >> gcc: ../common/.libs/jk_worker.o: No such file or directory
> >> gcc: ../common/.libs/jk_ajp13_worker.o: No such file or directory
> >> gcc: ../common/.libs/jk_lb_worker.o: No such file or directory
> >> gcc: ../common/.libs/jk_sockbuf.o: No such file or directory
> >> gcc: ../common/.libs/jk_map.o: No such file or directory
> >> gcc: ../common/.libs/jk_uri_worker_map.o: No such file or directory
> >> gcc: ../common/.libs/jk_ajp14.o: No such file or directory
> >> gcc: ../common/.libs/jk_ajp14_worker.o: No such file or directory
> >> gcc: ../common/.libs/jk_md5.o: No such file or directory
> >> gcc: ../common/.libs/jk_shm.o: No such file or directory
> >> gcc: ../common/.libs/jk_ajp_common.o: No such file or directory
> >> gcc: ../common/.libs/jk_context.o: No such file or directory
> >> gcc: ../common/.libs/jk_url.o: No such file or directory
> >> gcc: ../common/.libs/jk_status.o: No such file or directory
> >> gmake[1]: *** [mod_jk.la] Error 1
> >> gmake[1]: Leaving directory `/www/connectors/jk/native/apache-1.3'
> >> gmake: *** [all-recursive] Error 1
> >> bash-3.00#
> >>
> >> I have set most of my planned test environment up. This involves
> session
> >> splitting between two Tomcat instances(this needs thorough testing).
> >> Ultimately I would like to load balance between my little cluster of
> >> TomcatNodes but I can't until mod_jk is working. I am using
> >> apache1.3.39, Tomcat 5.5.20. There is no SSL involved at the moment but
> >> this is a must if I take this into a live environment after testing.
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To start a new topic, e-mail: users@tomcat.apache.org
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >> Thanks for the reply Partha. I have the following environment!
>  env
> HZ=
> TERM=xterm
> SHELL=/sbin/sh
> OLDPWD=/www/connectors/jk
> gcc=/usr/sfw/bin/gcc
> PATH=/usr/bin:/usr/sbin:/usr/sfw/bin:/usr/ccs/bin:/usr/local/bin
> MAIL=/var/mail/root
> PWD=/www/connectors/jk/native
> LANG=C
> TZ=GB
> SHLVL=1
> HOME=/
> LOGNAME=root
> CC=/usr/sfw/bin/gcc
> _=/usr/bin/env
> bash-3.00#
>
>
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Regards
Partha Goswami
Solaris/Open solaris User Group
www.solaris-user-group.org

Reply via email to