2.35; Solaris 2.7; make won't at mg_errors.cp

Help
2001-05-25
2001-05-31
  • Brian Tingle

    Brian Tingle - 2001-05-25

    make[2]: Entering directory `/cdldevel/tingle/gsdl/src/mgpp/text'
    ...
    c++ -c -DHAVE_CONFIG_H   -I../../.. -I../lib -I. -ansi -DSILENT -DSHORT_SUFFIX -O2 -ansi -DSILENT -DSHORT_SUFFIX -D__cplusplus mg_errors.cpp
    mg_errors.cpp: In function `void MgErrorData(char *)':
    mg_errors.cpp:59: implicit declaration of function `int strdup(...)'
    mg_errors.cpp:59: assignment to `char *' from `int' lacks a cast
    make[2]: *** [mg_errors.o] Error 1
    make[2]: Leaving directory `/cdldevel/tingle/gsdl/src/mgpp/text'
    make[1]: *** [all] Error 1
    make[1]: Leaving directory `/cdldevel/tingle/gsdl/src/mgpp'
    make: *** [all] Error 1

     
    • Anonymous - 2001-05-25

      Brian Tingle wrote:
      >
      > >Are you sure this is the right version? The released 2.35 mg_errors.cpp
      > >is needed, as it has
      > >"#define _XOPEN_SOURCE 1" and "#define _XOPEN_SOURCE_EXTENDED 1" at the
      > >top of the file, and has strdup on line 61, not 59.
      >
      > Well, I guess its not the right version (no XOPEN bit and strdup on line
      > 59); but it *is* from gsdl-2.35-src.tar that I downloaded today from
      > sourceforge; so I guess the version on line is not the right version??
      >

      You're right - it looks like I forgot to add the headers to this one
      file. Add the 2 #defines before the first #include and it should
      be fine. gcc doesn't seem to need it, which is why we didn't pick it
      up on our solaris boxes.

      John

       
    • Brian Tingle

      Brian Tingle - 2001-05-30

      trying to make USE_FASTCGI=1; gcc version 2.95.3 20010315
      making all in src/recpt
      make[1]: Entering directory `/cdldevel/tingle/gsdl/src/recpt'
      c++ -c   -O2 -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DUSE_FASTCGI -DHAVE_CONFIG_H -I../../lib -I. -I../colservr -I../../packages/mg -I../../packages/mg/lib -I../../packages/mg/src/text -I../../packages/fcgi/include -I../mgpp/lib -I../mgpp/text cgiwrapper.cpp
      cgiwrapper.cpp:45: fcgiapp.h: No such file or directory
      make[1]: *** [cgiwrapper.o] Error 1
      make[1]: Leaving directory `/cdldevel/tingle/gsdl/src/recpt'
      make: *** [all] Error 1

       
      • Anonymous - 2001-05-31

        > cgiwrapper.cpp:45: fcgiapp.h: No such file or directory

        Do you have fastcgi installed on your system? If so, is it in a "standard" place?
        I'm not on a unix box at the moment, so I can't check the source, but I thought
        that fast-cgi support was disabled unless explicitly enabled at configure time.
        Try ./configure --help and see if any of the options relate to fast-cgi.

        John.

         

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks