Re: Re: Install probs

Brian Aker <[email protected]> Wed, 17 Dec 2003 23:13:38 -0800
Newsgroups gmane.comp.apache.mod-mp3
Organization TangentOrg
Message-ID <1071731618.30613.883.camel@avenger>
The problem, I believe, is that Apache was built with CC (Sun's
compiler) and not gcc. So apxs is passing options thinking that it will
be dealing with a Sun compiler.

  -Brian

On Wed, 2003-12-17 at 19:41, [email protected] wrote:
> Hi, I have aliased cc to gcc now get this error: 
> 
> `/usr/apache/bin/apxs -q CC` -I`/usr/apache/bin/apxs -q INCLUDEDIR` 
> `/usr/apache/bin/apxs -q CFLAGS` -DCONTENT_DISPOSITION  -DSELECT_ENABLED -c 
> src/mod_mp3.c -DCONTENT_DISPOSITION  -DSELECT_ENABLED -o src/mod_mp3.o
> cc: unrecognized option `-Xa'
> cc: language ildoff not recognized
> cc: src/mod_mp3.c: linker input file unused because linking not done
> `/usr/apache/bin/apxs -q CC` -I`/usr/apache/bin/apxs -q INCLUDEDIR` 
> `/usr/apache/bin/apxs -q CFLAGS` -DCONTENT_DISPOSITION  -DSELECT_ENABLED -c 
> src/directives.c -DCONTENT_DISPOSITION  -DSELECT_ENABLED -o src/directives.o
> cc: unrecognized option `-Xa'
> cc: language ildoff not recognized
> cc: src/directives.c: linker input file unused because linking not done
> `/usr/apache/bin/apxs -q CC` -I`/usr/apache/bin/apxs -q INCLUDEDIR` 
> `/usr/apache/bin/apxs -q CFLAGS` -DCONTENT_DISPOSITION  -DSELECT_ENABLED -c 
> src/ice.c -DCONTENT_DISPOSITION  -DSELECT_ENABLED -o src/ice.o
> cc: unrecognized option `-Xa'
> cc: language ildoff not recognized
> cc: src/ice.c: linker input file unused because linking not done
> `/usr/apache/bin/apxs -q CC` -I`/usr/apache/bin/apxs -q INCLUDEDIR` 
> `/usr/apache/bin/apxs -q CFLAGS` -DCONTENT_DISPOSITION  -DSELECT_ENABLED -c 
> src/load.c -DCONTENT_DISPOSITION  -DSELECT_ENABLED -o src/load.o
> cc: unrecognized option `-Xa'
> cc: language ildoff not recognized
> cc: src/load.c: linker input file unused because linking not done
> `/usr/apache/bin/apxs -q CC` -I`/usr/apache/bin/apxs -q INCLUDEDIR` 
> `/usr/apache/bin/apxs -q CFLAGS` -DCONTENT_DISPOSITION  -DSELECT_ENABLED -c 
> src/shout.c -DCONTENT_DISPOSITION  -DSELECT_ENABLED -o src/shout.o
> cc: unrecognized option `-Xa'
> cc: language ildoff not recognized
> cc: src/shout.c: linker input file unused because linking not done
> `/usr/apache/bin/apxs -q CC` -I`/usr/apache/bin/apxs -q INCLUDEDIR` 
> `/usr/apache/bin/apxs -q CFLAGS` -DCONTENT_DISPOSITION  -DSELECT_ENABLED -c 
> src/utility.c -DCONTENT_DISPOSITION  -DSELECT_ENABLED -o src/utility.o
> cc: unrecognized option `-Xa'
> cc: language ildoff not recognized
> cc: src/utility.c: linker input file unused because linking not done
> `/usr/apache/bin/apxs -q CC` -I`/usr/apache/bin/apxs -q INCLUDEDIR` 
> `/usr/apache/bin/apxs -q CFLAGS` -DCONTENT_DISPOSITION  -DSELECT_ENABLED -c 
> src/ogg.c -DCONTENT_DISPOSITION  -DSELECT_ENABLED -o src/ogg.o
> cc: unrecognized option `-Xa'
> cc: language ildoff not recognized
> cc: src/ogg.c: linker input file unused because linking not done
> `/usr/apache/bin/apxs -q CC` -I`/usr/apache/bin/apxs -q INCLUDEDIR` 
> `/usr/apache/bin/apxs -q CFLAGS` -DCONTENT_DISPOSITION  -DSELECT_ENABLED -c 
> src/common.c -DCONTENT_DISPOSITION  -DSELECT_ENABLED -o src/common.o
> cc: unrecognized option `-Xa'
> cc: language ildoff not recognized
> cc: src/common.c: linker input file unused because linking not done
> `/usr/apache/bin/apxs -q CC` -I`/usr/apache/bin/apxs -q INCLUDEDIR` 
> `/usr/apache/bin/apxs -q CFLAGS` -DCONTENT_DISPOSITION  -DSELECT_ENABLED -c 
> src/id3.c -DCONTENT_DISPOSITION  -DSELECT_ENABLED -o src/id3.o
> cc: unrecognized option `-Xa'
> cc: language ildoff not recognized
> cc: src/id3.c: linker input file unused because linking not done
> `/usr/apache/bin/apxs -q CC` -I`/usr/apache/bin/apxs -q INCLUDEDIR` 
> `/usr/apache/bin/apxs -q CFLAGS` -DCONTENT_DISPOSITION  -DSELECT_ENABLED -c 
> src/log.c -DCONTENT_DISPOSITION  -DSELECT_ENABLED -o src/log.o
> cc: unrecognized option `-Xa'
> cc: language ildoff not recognized
> cc: src/log.c: linker input file unused because linking not done
> `/usr/apache/bin/apxs -q CC` -I`/usr/apache/bin/apxs -q INCLUDEDIR` 
> `/usr/apache/bin/apxs -q CFLAGS` -DCONTENT_DISPOSITION  -DSELECT_ENABLED -c 
> src/internal_dispatch.c -DCONTENT_DISPOSITION  -DSELECT_ENABLED -o 
> src/internal_dispatch.o
> cc: unrecognized option `-Xa'
> cc: language ildoff not recognized
> cc: src/internal_dispatch.c: linker input file unused because linking not 
> done
> `/usr/apache/bin/apxs -q CC` -I`/usr/apache/bin/apxs -q INCLUDEDIR` 
> `/usr/apache/bin/apxs -q CFLAGS` -DCONTENT_DISPOSITION  -DSELECT_ENABLED -c 
> src/encode.c -DCONTENT_DISPOSITION  -DSELECT_ENABLED -o src/encode.o
> cc: unrecognized option `-Xa'
> cc: language ildoff not recognized
> cc: src/encode.c: linker input file unused because linking not done
> /usr/apache/bin/apxs -c -I`/usr/apache/bin/apxs -q INCLUDEDIR` src/mod_mp3.o 
> src/directives.o src/ice.o src/load.o src/shout.o src/utility.o src/ogg.o 
> src/common.o src/id3.o src/log.o src/internal_dispatch.o src/encode.o
> ld -G -o src/mod_mp3.so src/mod_mp3.o src/directives.o src/ice.o src/load.o 
> src/shout.o src/utility.o src/ogg.o src/common.o src/id3.o src/log.o 
> src/internal_dispatch.o src/encode.o
> ld: fatal: file src/mod_mp3.o: open failed: No such file or directory
> apxs:Break: Command failed with rc=1
> *** Error code 1
> make: Fatal error: Command failed for target `mod_mp3.so' 
> 
> thx 
> 
> 
> Brian Aker writes: 
> 
> > The fast solution is to just alias cc to gcc.
> >   -Brian 
> > 
> > 
> > On Wed, 2003-12-17 at 11:34, [email protected] wrote:
> >> I am running solaris 2.9 with the default apache 1.3.22 install.
> >> I am trying to install mod_mp3 as a dso.  
> >> 
> >> Here is the error I get when I type the make command:
> >> # make
> >> `/usr/apache/bin/apxs -q CC` -I`/usr/apache/bin/apxs -q INCLUDEDIR` 
> >> `/usr/apache/bin/apxs -q CFLAGS` -DCONTENT_DISPOSITION  -DSELECT_ENABLED -c 
> >> src/mod_mp3.c -DCONTENT_DISPOSITION  -DSELECT_ENABLED -o src/mod_mp3.o
> >> sh: cc: not found
> >> *** Error code 1
> >> make: Fatal error: Command failed for target `src/mod_mp3.o'  
> >> 
> >> I know this is complaining about cc but I have gcc in my path. I do I 
> >> correct this .  
> >> 
> >> Thanks !  
> >> 
> >> 
> >> Keven E. Jones
> >> _______________________________________________
> >> Mod_mp3 mailing list
> >> [email protected]
> >> http://lists.tangent.org/mailman/listinfo/mod_mp3
> > -- 
> > _______________________________________________________
> > Brian "Krow" Aker, [email protected]
> > Seattle, Washington
> > http://krow.net/
> > http://askbrian.org/
> > _______________________________________________________
> > You can't grep a dead tree. 
> > 
> > _______________________________________________
> > Mod_mp3 mailing list
> > [email protected]
> > http://lists.tangent.org/mailman/listinfo/mod_mp3
>  
> 
> 
> Keven E. Jones, President
> i3Link Communications
> [email protected]
> 301-218-4711 Office
> 301-218-4712 Fax
> 301-440-7580 Mobile 
> _______________________________________________
> Mod_mp3 mailing list
> [email protected]
> http://lists.tangent.org/mailman/listinfo/mod_mp3
-- 
_______________________________________________________
Brian "Krow" Aker, [email protected]
Seattle, Washington
http://krow.net/
http://askbrian.org/
_______________________________________________________
You can't grep a dead tree.