[ create a new paste ] login | about

Link: http://codepad.org/5xJup3gL    [ raw code | fork ]

C, pasted on Apr 11:
In file included from direct/src/plugin/p3d_plugin_composite1.cxx:2:0:
direct/src/plugin/p3dAuthSession.cxx: In member function int P3DAuthSession::posix_create_process():
direct/src/plugin/p3dAuthSession.cxx:445:22: error: fork was not declared in this scope
   pid_t child = fork();
                      ^
direct/src/plugin/p3dAuthSession.cxx:454:33: error: chdir was not declared in this scope
     if (chdir(_start_dir.c_str()) < 0) {
                                 ^
direct/src/plugin/p3dAuthSession.cxx:473:31: error: execle was not declared in this scope
            (char *)0, &ptrs[0]);
                               ^
direct/src/plugin/p3dAuthSession.cxx:475:12: error: _exit was not declared in this scope
     _exit(1);
            ^
In file included from direct/src/plugin/p3d_plugin_composite1.cxx:11:0:
direct/src/plugin/p3dHost.cxx: In static member function static bool P3DHost::copy_file(const string&, const string&):
direct/src/plugin/p3dHost.cxx:844:18: error: getpid was not declared in this scope
   strm << getpid();
                  ^
direct/src/plugin/p3dHost.cxx:858:35: error: unlink was not declared in this scope
       unlink(temp_filename.c_str());
                                   ^
direct/src/plugin/p3dHost.cxx:867:33: error: unlink was not declared in this scope
     unlink(temp_filename.c_str());
                                 ^
direct/src/plugin/p3dHost.cxx:875:29: error: unlink was not declared in this scope
   unlink(to_filename.c_str());
                             ^
direct/src/plugin/p3dHost.cxx: In static member function static bool P3DHost::save_xml_file(TiXmlDocument*, const string&):
direct/src/plugin/p3dHost.cxx:928:18: error: getpid was not declared in this scope
   strm << getpid();
                  ^
direct/src/plugin/p3dHost.cxx:932:33: error: unlink was not declared in this scope
     unlink(temp_filename.c_str());
                                 ^
direct/src/plugin/p3dHost.cxx:940:29: error: unlink was not declared in this scope
   unlink(to_filename.c_str());
                             ^
In file included from direct/src/plugin/p3d_plugin_composite1.cxx:25:0:
direct/src/plugin/p3dSplashWindow.cxx: In member function bool P3DSplashWindow::read_image_data_png(P3DSplashWindow::ImageData&, std::string&, FILE*, const string&):
direct/src/plugin/p3dSplashWindow.cxx:389:55: error: invalid conversion from void (*)(png_const_structrp, png_const_charp) {aka void (*)(const png_struct_def*, const char*)} to png_error_ptr {aka void (*)(png_struct_def*, const char*)} [-fpermissive]
                                 png_error, png_warning);
                                                       ^
In file included from /usr/include/libpng16/png.h:485:0,
                 from direct/src/plugin/p3dSplashWindow.cxx:19,
                 from direct/src/plugin/p3d_plugin_composite1.cxx:25:
/usr/include/libpng16/png.h:1083:29: note: initializing argument 3 of png_struct* png_create_read_struct(png_const_charp, png_voidp, png_error_ptr, png_error_ptr)
 PNG_EXPORTA(4, png_structp, png_create_read_struct,
                             ^
/usr/include/libpng16/pngconf.h:309:70: note: in definition of macro PNG_FUNCTION
 #  define PNG_FUNCTION(type, name, args, attributes) attributes type name args
                                                                      ^
/usr/include/libpng16/png.h:1083:1: note: in expansion of macro PNG_EXPORTA
 PNG_EXPORTA(4, png_structp, png_create_read_struct,
 ^
In file included from direct/src/plugin/p3d_plugin_composite1.cxx:25:0:
direct/src/plugin/p3dSplashWindow.cxx:389:55: error: invalid conversion from void (*)(png_const_structrp, png_const_charp) {aka void (*)(const png_struct_def*, const char*)} to png_error_ptr {aka void (*)(png_struct_def*, const char*)} [-fpermissive]
                                 png_error, png_warning);
                                                       ^
In file included from /usr/include/libpng16/png.h:485:0,
                 from direct/src/plugin/p3dSplashWindow.cxx:19,
                 from direct/src/plugin/p3d_plugin_composite1.cxx:25:
/usr/include/libpng16/png.h:1083:29: note: initializing argument 4 of png_struct* png_create_read_struct(png_const_charp, png_voidp, png_error_ptr, png_error_ptr)
 PNG_EXPORTA(4, png_structp, png_create_read_struct,
                             ^
/usr/include/libpng16/pngconf.h:309:70: note: in definition of macro PNG_FUNCTION
 #  define PNG_FUNCTION(type, name, args, attributes) attributes type name args
                                                                      ^
/usr/include/libpng16/png.h:1083:1: note: in expansion of macro PNG_EXPORTA
 PNG_EXPORTA(4, png_structp, png_create_read_struct,
 ^
Storing dependency cache.
Elapsed Time: 1 min 8 sec
The following command returned a non-zero value: g++ -ftemplate-depth-30 -fPIC -c -o built_cmu_rt/tmp/plugin_plugin.o -Ibuilt_cmu_rt/tmp -Ibuilt_cmu_rt/include -I/usr/include/libpng16 -DMAKEPANDA= -DLINK_ALL_STATIC= -DHAVE_X11=1 -Idirect/src/plugin -pthread -O3 -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -DBUILDING_P3D_PLUGIN direct/src/plugin/p3d_plugin_composite1.cxx
Build terminated.


Create a new paste based on this one


Comments: