This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/14879] New: gcc-3.3.3 can't compile cgicc demo


I am trying to build cgicc with gcc-3.3.3.  I built gcc-3.3.3 with the following:

./configure --prefix=/opt/gnu --enable-languages=c,c++
make CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2 -fno-implicit-templates'
bootstrap
make install

I configured cgicc-3.2.2 as follows:

LDFLAGS=-L/opt/lib CCFLAGS="-I/opt/include" CXXFLAGS="-I/opt/include"
./configure --prefix=/opt --enable-fcgi-demos

When I run make, I get the following:

make[1]: Entering directory `/opt/src/cgicc-3.2.2/contrib'
if g++ -DHAVE_CONFIG_H -I. -I. -I../cgicc -I.. -I..    -Wall -W -pedantic
-I/opt/include -MT FCgiIO.o -MD -MP -MF ".deps/FCgiIO.Tpo" \
  -c -o FCgiIO.o `test -f 'FCgiIO.cpp' || echo './'`FCgiIO.cpp; \
then mv -f ".deps/FCgiIO.Tpo" ".deps/FCgiIO.Po"; \
else rm -f ".deps/FCgiIO.Tpo"; exit 1; \
fi
FCgiIO.cpp:32: error: parse error before `::' token
FCgiIO.cpp:40: error: syntax error before `.' token
FCgiIO.cpp:43: error: syntax error before `!=' token
FCgiIO.cpp:45: error: `s' was not declared in this scope
FCgiIO.cpp:46: error: parse error before `if'
FCgiIO.cpp:48: error: `s' was not declared in this scope
FCgiIO.cpp:48: error: ISO C++ forbids declaration of `fEnv' with no type
FCgiIO.cpp:48: error: `s' was not declared in this scope
FCgiIO.cpp:48: error: assignment (not initialization) in declaration
FCgiIO.cpp:49: error: parse error before `}' token
FCgiIO.cpp:52: error: parse error before `::' token
FCgiIO.cpp:60: error: syntax error before `.' token
distcc[3490] ERROR: compile on localhost failed
make[1]: *** [FCgiIO.o] Error 1
make[1]: Leaving directory `/opt/src/cgicc-3.2.2/contrib'
make: *** [all-recursive] Error 1


I have some C++ experience, and for the life of me, I have no idea what could
possibly be wrong with the FCgiIO.cpp file. I have reported this to the cgicc
list, but noone has explicitly stated they've ran into the same problem.

-- 
           Summary: gcc-3.3.3 can't compile cgicc demo
           Product: gcc
           Version: 3.3.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jsu2 at emory dot edu
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14879


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]