I actually downloaded the libjingle once I realized it was dealing with p2p, since I work in a similar area and want to check it out.
I downloaded the expat lib and copied it to the third-party directory and compiled it without problems like this:
# ../../swtoolkit/hammer.sh expat
And here are the results:
scons: Reading SConscript files ...
scons: warning: The build_dir keyword has been deprecated; use the variant_dir keyword instead.
File "<myPath>/swtoolkit/site_scons/site_init.py", line 203, in BuildEnvironmentSConscripts
scons: done reading SConscript files.
scons: Building targets ...
________Compiling build/dbg/obj/third_party/expat-2.0.1/lib/xmlparse.o
________Compiling build/dbg/obj/third_party/expat-2.0.1/lib/xmlrole.o
________Compiling build/dbg/obj/third_party/expat-2.0.1/lib/xmltok.o
________Creating library build/dbg/obj/libexpat.a
________Indexing build/dbg/obj/libexpat.a
Install file: "build/dbg/obj/libexpat.a" as "build/dbg/lib/libexpat.a"
scons: done building targets.
Could it be something as simple as the directory permissions?
Here's what I have:
# ls -al third_party/
...
drwxr-xr-x 12 notroot notroot 4096 2012-05-30 02:14 expat-2.0.1
...
# ls -al third_party/expat-2.0.1/
...
drwxr-xr-x 2 notroot notroot 4096 2012-05-30 02:09 lib
...
# ls -al third_party/expat-2.0.1/lib
...
-rwxr-xr-x 1 notroot notroot 193934 2012-05-30 02:09 xmlparse.c
...
Actually all of the files in the third_party/expat-2.0.1/lib
dir have the same permissions, I just didnt want to list them all here.