#44 Build failure with gcc 4.4

closed-duplicate
nobody
None
5
2010-01-04
2010-01-04
No

libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../intl -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -MT rpcs.lo -MD -MP -MF .deps/rpcs.Tpo -c rpcs.cc -fPIC -DPIC -o .libs/rpcs.o
rpcs.cc: In member function ‘Enum<rfsv::errs> rpcs::queryPrograms(processList&)’:
rpcs.cc:304: error: invalid conversion from ‘const char*’ to ‘char*’
make[2]: *** [rpcs.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
mv -f .deps/rpcs16.Tpo .deps/rpcs16.Plo

$ gcc -dumpversion
4.4.1

Obvious changes weren't sufficient to get it to build.

Discussion

  • Reuben Thomas

    Reuben Thomas - 2010-01-04

    Thanks for the report. I have applied the patch that Debian uses, which is in fact pretty obvious: cast s to (char *) in line 304 of lib/rpcs.cc. I have checked this in to CVS and will release a new version immediately.

     
  • Reuben Thomas

    Reuben Thomas - 2010-01-04
    • status: open --> closed-duplicate
     

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