Trouble Compiling on Fedora 17 [Solved]

I’ve tried to compile with Fedora 17. I’ve consistantly gotten an error around built/tmp/pgraph_composite*.so area

[jhurst@ranLaptop panda3d-1.7.2]$ sudo python makepanda/makepanda.py --everything --installer --no-artoolkit --no-fmodex --no-fcollada --no-egl --no-nvidiacg --no-ode --no-squish --no-vrpn --no-xf86dga --no-openc
Generating library cache...
Generating dependencies...
[  0%] Building C++ object built/tmp/dtoolbase_composite1.o
[  0%] Building C++ object built/tmp/dtoolbase_composite2.o
[  0%] Building C object built/tmp/dtoolbase_lookup3.o
[  0%] Building C++ object built/tmp/dtoolbase_indent.o
[  0%] Building C object built/tmp/dtoolutil_gnu_getopt.o
[  1%] Building C object built/tmp/dtoolutil_gnu_getopt1.o
[  1%] Building C++ object built/tmp/dtoolutil_composite.o
[  1%] Building C++ object built/tmp/dtool_dtool.o
[  1%] Linking dynamic library built/lib/libp3dtool.so
[  2%] Building Bison object built/tmp/cppParser_cppBison.o
[  2%] Building C++ object built/tmp/cppParser_composite.o
In file included from dtool/src/cppparser/cppParser_composite2.cxx:4:0,
                 from dtool/src/cppparser/cppParser_composite.cxx:2:
dtool/src/cppparser/cppExpression.cxx: In member function ‘void* CPPExpression::Result::as_pointer() const’:
dtool/src/cppparser/cppExpression.cxx:135:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
dtool/src/cppparser/cppExpression.cxx:138:28: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
[  2%] Linking static library built/tmp/libcppParser.a
[  2%] Building C++ object built/tmp/prc_composite.o
[  3%] Building C++ object built/tmp/dconfig_composite.o
[  3%] Building C++ object built/tmp/interrogatedb_composite.o
[  3%] Building C++ object built/tmp/dtoolconfig_pydtool.o
[  3%] Building C++ object built/tmp/dtoolconfig_dtoolconfig.o
[  4%] Linking dynamic library built/lib/libp3dtoolconfig.so
[  4%] Building C++ object built/tmp/pystub_pystub.o
[  4%] Linking dynamic library built/lib/libp3pystub.so
[  4%] Building C++ object built/tmp/interrogate_composite.o
[  4%] Linking executable built/bin/interrogate
[  5%] Building C++ object built/tmp/interrogate_module_interrogate_module.o
[  5%] Linking executable built/bin/interrogate_module
[  5%] Building C++ object built/tmp/parse_file_parse_file.o
[  5%] Linking executable built/bin/parse_file
[  6%] Building C++ object built/tmp/make-prc-key_makePrcKey.o
[  6%] Linking executable built/bin/make-prc-key
[  6%] Building C++ object built/tmp/test_interrogate_test_interrogate.o
[  6%] Linking executable built/bin/test_interrogate
[  6%] Building C++ object built/tmp/pandabase_pandabase.o
[  7%] Building C++ object built/tmp/express_composite1.o
[  7%] Building C++ object built/tmp/express_composite2.o
[  7%] Building Interrogate database built/pandac/input/libexpress.in
[  8%] Building C++ object built/tmp/downloader_composite.o
[  8%] Building Interrogate database built/pandac/input/libdownloader.in
[  8%] Building C++ object built/tmp/pandaexpress_pandaexpress.o
[  8%] Building Interrogate object built/tmp/libpandaexpress_module.o
Referencing Library libdownloader
Referencing Library libexpress
[  9%] Linking dynamic library built/lib/libpandaexpress.so
[  9%] Building C++ object built/tmp/pipeline_composite.o
[  9%] Building C object built/tmp/pipeline_contextSwitch.o
[  9%] Building Interrogate database built/pandac/input/libpipeline.in
[ 10%] Building C++ object built/tmp/putil_composite1.o
[ 10%] Building C++ object built/tmp/putil_composite2.o
[ 10%] Building Interrogate database built/pandac/input/libputil.in
[ 11%] Building C++ object built/tmp/audio_composite.o
[ 11%] Building Interrogate database built/pandac/input/libaudio.in
[ 11%] Building C++ object built/tmp/event_composite.o
[ 12%] Building Interrogate database built/pandac/input/libevent.in
[ 12%] Building C++ object built/tmp/linmath_composite.o
In file included from panda/src/linmath/lvecBase3.cxx:18:0,
                 from panda/src/linmath/linmath_composite1.cxx:5,
                 from panda/src/linmath/linmath_composite.cxx:1:
panda/src/linmath/lvecBase3_src.cxx: In member function ‘int LVecBase3f::__setattr__(PyObject*, const string&, PyObject*)’:
panda/src/linmath/lvecBase3_src.cxx:105:14: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null]
In file included from panda/src/linmath/lvecBase3.cxx:21:0,
                 from panda/src/linmath/linmath_composite1.cxx:5,
                 from panda/src/linmath/linmath_composite.cxx:1:
panda/src/linmath/lvecBase3_src.cxx: In member function ‘int LVecBase3d::__setattr__(PyObject*, const string&, PyObject*)’:
panda/src/linmath/lvecBase3_src.cxx:105:14: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null]
In file included from panda/src/linmath/lvecBase4.cxx:18:0,
                 from panda/src/linmath/linmath_composite1.cxx:6,
                 from panda/src/linmath/linmath_composite.cxx:1:
panda/src/linmath/lvecBase4_src.cxx: In member function ‘int LVecBase4f::__setattr__(PyObject*, const string&, PyObject*)’:
panda/src/linmath/lvecBase4_src.cxx:119:14: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null]
In file included from panda/src/linmath/lvecBase4.cxx:21:0,
                 from panda/src/linmath/linmath_composite1.cxx:6,
                 from panda/src/linmath/linmath_composite.cxx:1:
panda/src/linmath/lvecBase4_src.cxx: In member function ‘int LVecBase4d::__setattr__(PyObject*, const string&, PyObject*)’:
panda/src/linmath/lvecBase4_src.cxx:119:14: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null]
[ 12%] Building Interrogate database built/pandac/input/liblinmath.in
[ 13%] Building C++ object built/tmp/mathutil_composite.o
[ 13%] Building Interrogate database built/pandac/input/libmathutil.in
[ 13%] Building C++ object built/tmp/gsgbase_composite.o
[ 14%] Building Interrogate database built/pandac/input/libgsgbase.in
[ 14%] Building C++ object built/tmp/pnmimage_composite.o
[ 14%] Building Interrogate database built/pandac/input/libpnmimage.in
[ 15%] Building C++ object built/tmp/nativenet_composite.o
[ 15%] Building Interrogate database built/pandac/input/libnativenet.in
[ 15%] Building C++ object built/tmp/net_composite.o
[ 16%] Building Interrogate database built/pandac/input/libnet.in
[ 16%] Building C++ object built/tmp/pstatclient_composite.o
[ 16%] Building Interrogate database built/pandac/input/libpstatclient.in
[ 17%] Building C++ object built/tmp/gobj_composite1.o
[ 17%] Building C++ object built/tmp/gobj_composite2.o
In file included from panda/src/gobj/gobj_composite2.cxx:19:0:
panda/src/gobj/texturePool.cxx: In member function ‘Texture* TexturePool::ns_load_3d_texture(const Filename&, bool, const LoaderOptions&)’:
panda/src/gobj/texturePool.cxx:545:3: warning: converting ‘false’ to pointer type ‘Texture*’ [-Wconversion-null]
panda/src/gobj/texturePool.cxx: In member function ‘Texture* TexturePool::ns_load_cube_map(const Filename&, bool, const LoaderOptions&)’:
panda/src/gobj/texturePool.cxx:644:3: warning: converting ‘false’ to pointer type ‘Texture*’ [-Wconversion-null]
[ 17%] Building Interrogate database built/pandac/input/libgobj.in
[ 18%] Building C++ object built/tmp/lerp_composite.o
[ 18%] Building Interrogate database built/pandac/input/liblerp.in
[ 18%] Building C++ object built/tmp/pgraphnodes_composite1.o
[ 18%] Building C++ object built/tmp/pgraphnodes_composite2.o
[ 19%] Building Interrogate database built/pandac/input/libpgraphnodes.in
[ 19%] Building C++ object built/tmp/pgraph_nodePath.o
panda/src/pgraph/nodePath.cxx: In member function ‘const int NodePath::get_instance_count() const’:
panda/src/pgraph/nodePath.cxx:3798:3: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null]
[ 19%] Building C++ object built/tmp/pgraph_composite1.o
[ 20%] Building C++ object built/tmp/pgraph_composite2.o
[ 20%] Building C++ object built/tmp/pgraph_composite3.o
In file included from built/include/nodePointerTo.h:85:0,
                 from panda/src/pgraph/pandaNode.h:38,
                 from panda/src/pgraph/lensNode.h:20,
                 from panda/src/pgraph/lensNode.cxx:15,
                 from panda/src/pgraph/pgraph_composite3.cxx:2:
built/include/nodePointerTo.I: In instantiation of ‘NodeConstPointerTo<T>& NodeConstPointerTo<T>::operator=(const NodeConstPointerTo<T>&) [with T = RenderState]’:
panda/src/pgraph/pandaNode.cxx:162:33:   required from here
built/include/nodePointerTo.I:292:3: error: ‘reassign’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
built/include/nodePointerTo.I:292:3: note: declarations in dependent base ‘NodePointerToBase<RenderState>’ are not found by unqualified lookup
built/include/nodePointerTo.I:292:3: note: use ‘this->reassign’ instead
built/include/nodePointerTo.I: In instantiation of ‘NodeConstPointerTo<T>& NodeConstPointerTo<T>::operator=(const NodeConstPointerTo<T>&) [with T = TransformState]’:
panda/src/pgraph/pandaNode.cxx:163:37:   required from here
built/include/nodePointerTo.I:292:3: error: ‘reassign’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
built/include/nodePointerTo.I:292:3: note: declarations in dependent base ‘NodePointerToBase<TransformState>’ are not found by unqualified lookup
built/include/nodePointerTo.I:292:3: note: use ‘this->reassign’ instead
built/include/nodePointerTo.I: In instantiation of ‘NodeConstPointerTo<T>& NodeConstPointerTo<T>::operator=(const To*) [with T = RenderState; NodeConstPointerTo<T>::To = RenderState]’:
panda/src/pgraph/pandaNode.cxx:1189:23:   required from here
built/include/nodePointerTo.I:264:3: error: ‘reassign’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
built/include/nodePointerTo.I:264:3: note: declarations in dependent base ‘NodePointerToBase<RenderState>’ are not found by unqualified lookup
built/include/nodePointerTo.I:264:3: note: use ‘this->reassign’ instead
built/include/nodePointerTo.I: In instantiation of ‘NodeConstPointerTo<T>& NodeConstPointerTo<T>::operator=(const To*) [with T = TransformState; NodeConstPointerTo<T>::To = TransformState]’:
panda/src/pgraph/pandaNode.cxx:1346:27:   required from here
built/include/nodePointerTo.I:264:3: error: ‘reassign’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
built/include/nodePointerTo.I:264:3: note: declarations in dependent base ‘NodePointerToBase<TransformState>’ are not found by unqualified lookup
built/include/nodePointerTo.I:264:3: note: use ‘this->reassign’ instead
Storing dependency cache.
Elapsed Time: 12 min 47 sec

[/code]

.

Thanks. That was the fix.

[ 28%] Building C++ object built/tmp/p3movies_composite2.o
In file included from panda/src/movies/p3movies_composite2.cxx:3:0:
panda/src/movies/ffmpegVirtualFile.cxx: In member function ‘bool FfmpegVirtualFile::open_vfs(const Filename&)’:
panda/src/movies/ffmpegVirtualFile.cxx:123:72: error: ‘av_open_input_file’ was not declared in this scope
In file included from panda/src/movies/p3movies_composite2.cxx:3:0:
panda/src/movies/ffmpegVirtualFile.cxx: In member function ‘bool FfmpegVirtualFile::open_subfile(const SubfileInfo&)’:
panda/src/movies/ffmpegVirtualFile.cxx:179:72: error: ‘av_open_input_file’ was not declared in this scope
panda/src/movies/ffmpegVirtualFile.cxx: In member function ‘void FfmpegVirtualFile::close()’:
panda/src/movies/ffmpegVirtualFile.cxx:197:5: warning: ‘void av_close_input_file(AVFormatContext*)’ is deprecated (declared at /usr/include/ffmpeg/libavformat/avformat.h:1622) [-Wdeprecated-declarations]
panda/src/movies/ffmpegVirtualFile.cxx:197:40: warning: ‘void av_close_input_file(AVFormatContext*)’ is deprecated (declared at /usr/include/ffmpeg/libavformat/avformat.h:1622) [-Wdeprecated-declarations]
In file included from panda/src/movies/p3movies_composite2.cxx:3:0:
panda/src/movies/ffmpegVirtualFile.cxx: In static member function ‘static void FfmpegVirtualFile::register_protocol()’:
panda/src/movies/ffmpegVirtualFile.cxx:231:10: error: ‘URLProtocol’ does not name a type
panda/src/movies/ffmpegVirtualFile.cxx:232:3: error: ‘protocol’ was not declared in this scope
panda/src/movies/ffmpegVirtualFile.cxx:249:52: error: ‘av_register_protocol2’ was not declared in this scope
In file included from panda/src/movies/p3movies_composite2.cxx:3:0:
panda/src/movies/ffmpegVirtualFile.cxx: In static member function ‘static int FfmpegVirtualFile::pandavfs_open(URLContext*, const char*, int)’:
panda/src/movies/ffmpegVirtualFile.cxx:271:4: error: invalid use of incomplete type ‘struct URLContext’
In file included from panda/src/movies/ffmpegAudioCursor.h:26:0,
from panda/src/movies/ffmpegAudio.cxx:19,
from panda/src/movies/p3movies_composite2.cxx:1:
panda/src/movies/ffmpegVirtualFile.h:31:8: error: forward declaration of ‘struct URLContext’
In file included from panda/src/movies/p3movies_composite2.cxx:3:0:
panda/src/movies/ffmpegVirtualFile.cxx: In static member function ‘static int FfmpegVirtualFile::pandavfs_read(URLContext*, unsigned char*, int)’:
panda/src/movies/ffmpegVirtualFile.cxx:282:52: error: invalid use of incomplete type ‘struct URLContext’
In file included from panda/src/movies/ffmpegAudioCursor.h:26:0,
from panda/src/movies/ffmpegAudio.cxx:19,
from panda/src/movies/p3movies_composite2.cxx:1:
panda/src/movies/ffmpegVirtualFile.h:31:8: error: forward declaration of ‘struct URLContext’
In file included from panda/src/movies/p3movies_composite2.cxx:3:0:
panda/src/movies/ffmpegVirtualFile.cxx: In static member function ‘static int64_t FfmpegVirtualFile::pandavfs_seek(URLContext*, int64_t, int)’:
panda/src/movies/ffmpegVirtualFile.cxx:324:52: error: invalid use of incomplete type ‘struct URLContext’
In file included from panda/src/movies/ffmpegAudioCursor.h:26:0,
from panda/src/movies/ffmpegAudio.cxx:19,
from panda/src/movies/p3movies_composite2.cxx:1:
panda/src/movies/ffmpegVirtualFile.h:31:8: error: forward declaration of ‘struct URLContext’
In file included from panda/src/movies/p3movies_composite2.cxx:3:0:
panda/src/movies/ffmpegVirtualFile.cxx: In static member function ‘static int FfmpegVirtualFile::pandavfs_close(URLContext*)’:
panda/src/movies/ffmpegVirtualFile.cxx:365:4: error: invalid use of incomplete type ‘struct URLContext’
In file included from panda/src/movies/ffmpegAudioCursor.h:26:0,
from panda/src/movies/ffmpegAudio.cxx:19,
from panda/src/movies/p3movies_composite2.cxx:1:
panda/src/movies/ffmpegVirtualFile.h:31:8: error: forward declaration of ‘struct URLContext’
In file included from panda/src/movies/p3movies_composite2.cxx:4:0:
panda/src/movies/ffmpegAudioCursor.cxx: In constructor ‘FfmpegAudioCursor::FfmpegAudioCursor(FfmpegAudio*)’:
panda/src/movies/ffmpegAudioCursor.cxx:55:7: warning: ‘int av_find_stream_info(AVFormatContext*)’ is deprecated (declared at /usr/include/ffmpeg/libavformat/avformat.h:1446) [-Wdeprecated-declarations]
panda/src/movies/ffmpegAudioCursor.cxx:55:38: warning: ‘int av_find_stream_info(AVFormatContext*)’ is deprecated (declared at /usr/include/ffmpeg/libavformat/avformat.h:1446) [-Wdeprecated-declarations]
panda/src/movies/ffmpegAudioCursor.cxx:81:6: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/ffmpeg/libavcodec/avcodec.h:3569) [-Wdeprecated-declarations]
panda/src/movies/ffmpegAudioCursor.cxx:81:42: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/ffmpeg/libavcodec/avcodec.h:3569) [-Wdeprecated-declarations]
In file included from panda/src/movies/p3movies_composite2.cxx:4:0:
panda/src/movies/ffmpegAudioCursor.cxx: In member function ‘bool FfmpegAudioCursor::reload_buffer()’:
panda/src/movies/ffmpegAudioCursor.cxx:218:17: warning: ‘int avcodec_decode_audio3(AVCodecContext*, int16_t*, int*, AVPacket*)’ is deprecated (declared at /usr/include/ffmpeg/libavcodec/avcodec.h:3852) [-Wdeprecated-declarations]
panda/src/movies/ffmpegAudioCursor.cxx:218:74: warning: ‘int avcodec_decode_audio3(AVCodecContext*, int16_t*, int*, AVPacket*)’ is deprecated (declared at /usr/include/ffmpeg/libavcodec/avcodec.h:3852) [-Wdeprecated-declarations]
In file included from panda/src/movies/p3movies_composite2.cxx:4:0:
panda/src/movies/ffmpegAudioCursor.cxx: In member function ‘virtual void FfmpegAudioCursor::seek(double)’:
panda/src/movies/ffmpegAudioCursor.cxx:266:6: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/ffmpeg/libavcodec/avcodec.h:3569) [-Wdeprecated-declarations]
panda/src/movies/ffmpegAudioCursor.cxx:266:42: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/ffmpeg/libavcodec/avcodec.h:3569) [-Wdeprecated-declarations]
In file included from panda/src/movies/p3movies_composite2.cxx:5:0:
panda/src/movies/ffmpegVideoCursor.cxx: In member function ‘bool FfmpegVideoCursor::open_stream()’:
panda/src/movies/ffmpegVideoCursor.cxx:512:7: warning: ‘int av_find_stream_info(AVFormatContext*)’ is deprecated (declared at /usr/include/ffmpeg/libavformat/avformat.h:1446) [-Wdeprecated-declarations]
panda/src/movies/ffmpegVideoCursor.cxx:512:38: warning: ‘int av_find_stream_info(AVFormatContext*)’ is deprecated (declared at /usr/include/ffmpeg/libavformat/avformat.h:1446) [-Wdeprecated-declarations]
panda/src/movies/ffmpegVideoCursor.cxx:544:7: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/ffmpeg/libavcodec/avcodec.h:3569) [-Wdeprecated-declarations]
panda/src/movies/ffmpegVideoCursor.cxx:544:43: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/ffmpeg/libavcodec/avcodec.h:3569) [-Wdeprecated-declarations]
Storing dependency cache.
Elapsed Time: 7 min 22 sec
The following command returned a non-zero value: g++ -ftemplate-depth-30 -fPIC -c -o built/tmp/p3movies_composite2.o -Ibuilt/tmp -Ibuilt/include -I/usr/include/python2.7 -I/usr/include/ffmpeg -I/usr/include/ffmpeg -I/usr/include/ffmpeg -I/usr/include/ffmpeg -DMAKEPANDA= -Ipanda/src/movies -pthread -msse2 -O2 -DBUILDING_PANDA panda/src/movies/p3movies_composite2.cxx
Build terminated.

We do not support the latest version of ffmpeg at this point, sorry. It’s fairly high on my todo list.