undefined reference to `__isoc99_sscanf'

Hi there panda users,

I am trying to compile here in centos , because well atm there is no binary so of course Im going to help by making --installer , - but atm I am getting this error and looking for help :

g++ -o built/bin/apply_patch -Lbuilt/lib -L/usr/X11R6/lib built/tmp/apply_patch_apply_patch.o -lpanda -lpandaexpress -lp3dtool -lp3dtoolconfig -lp3pystub -lz -lssl -lpthread -ldl
built/lib/libpanda.so: undefined reference to `__isoc99_sscanf’
collect2: ld returned 1 exit status
Storing dependency cache.
Elapsed Time: 12 sec

Thx anyone for some advice on this one :slight_smile:
nl

Hmm, it kind of seems like an installation issue on your end. Googling for that symbol turns up a few references; it looks like it was added to glibc in version 2.7. Is it possible you’ve got two different versions of glibc on your system, and you’re linking the wrong one at runtime?

David

I just have one version installed, which is 2.5-24

I take it therefore since this symbol was added in 2.7, that I"d need to somehow upgrade, oh fun :wink:

I have no direct need to use centos so I shall simply look at alternatives . I had no idea going in that it has such old libraries that would interfere with compiling panda etc.

cheers and thx for verifying this drwr.
nl

Well, it’s weird that your g++ is generating references to a symbol that’s not in the version of glibc that you have installed. Normally it would generate code that exactly matches your own glibc. Maybe something wrong with your g++ installation then? I guess you can try downgrading to a previous version of gcc.

David

I only have one version of gcc installed here which is 4.1.2-42. And yeah I dont see how g++ could create references to things that aren’t there :wink:

cheers
nl

I just got the same thing, it looks like the symbols are coming from the third party ffmpeg libs:

So, quick fix, compile with --no-ffmpeg, or drop in your own ffmpeg libs

Whoops, sorry about that. That lib comes from me, so I’ll investigate what went wrong when I compiled it.