On Wed, Feb 25, 2004 at 04:29:06PM -0500, Howell, Andrew wrote: > Changing "cc=echo" to "cc=" seems to have fixed the problem. > > Applying the changes below in a separate also run seemed to fixed the > problem.
Actually that wasn't a good fix. Here's what I've adopted now: --- Makefile.PL (revision 153) +++ Makefile.PL (working copy) @@ -369,7 +369,7 @@ system("make $DBD_ORA_OBJ.o CC='$Config{cc}'"); # make a valid .o file. my $make = "$Config{make} -f $mkfile $build_target" - ." ECHODO=echo ECHO=echo GENCLNTSH='echo genclntsh' CC=echo" + ." ECHODO=echo ECHO=echo GENCLNTSH='echo genclntsh' CC=true" ." OPTIMIZE= CCFLAGS=" ." EXE=DBD_ORA_EXE OBJS=$DBD_ORA_OBJ.o"; print "by executing: [$make]\n"; @@ -398,6 +398,7 @@ print "Oracle oci build prolog:\n \t[", join("]\n\t[", @prolog), "]\n" if @prolog; print "Oracle oci build command:\n\t[", join("]\n\t[", @cmds ), "]\n"; if (@cmds == 1 && (my $build = shift @cmds) =~ /DBD_ORA_EXE/) { + $build =~ s/\s*true\s+//; # remove dummy compiler $build =~ s/$DBD_ORA_OBJ.o//; # remove dummy object file $build =~ s/\S+\s+DBD_ORA_EXE//; # remove dummy exe file and preceding flag $build =~ s/-o build\S*//; # remove -o target that confuses gcc at least on Sun Please let me know if that works okay for you. Tim.