kripken/emscripten — Issue #274: configuring speex with libogg
Author: paleozogt
Created: 2012-02-24 00:16:46+00:00
State: open

Using the workaround in #264, I was able to build libogg.a. However, configuring speex with it isn't working:
```
$ emconfigure ./configure --with-ogg=/home/asimmons/Development/libogg-install
...
checking for Ogg... no
*** Could not run Ogg test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means Ogg was incorrectly installed
*** or that you have moved Ogg since it was installed.
...
```

The config.log is [here](https://gist.github.com/1895977#file_config.log), but the relevant portion is this:
```
configure:21199: /home/asimmons/emscripten/emscripten/emcc -o conftest -fvisibility=hidden -I/home/asimmons/Development/libogg-install/include conftest.c -L/home/asimmons/Development/libogg-install/lib -logg >&5
clang: warning: argument unused during compilation: '-nostdinc++'
/home/asimmons/Development/libogg-install/lib/libogg.a: could not read symbols: Archive has no index; run ranlib to add one
clang: error: linker command failed with exit code 1 (use -v to see invocation)
```

The libogg.a file seems to be correct. In fact, if I run this exact same command myself, it will work (!). I'm not sure what's going on here.