<div dir="ltr"><div class="gmail_quote"><font face="courier new, monospace">[ Apologies for the previous post from which I omitted</font></div><div class="gmail_quote"><font face="courier new, monospace">  a Subject line.]</font></div>
<div class="gmail_quote"><br><div dir="ltr"><div><div><div><span style="font-family:courier new,monospace">I am at the point of finally linking libglx.a but<br>the loader generates a substantial number of `undefined<br>symbol' errors:<br>
<br>Undefined            first referenced</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> symbol                  in file</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">__indirect_glGetTexEnvfv            ./.libs/libglx.a(indirect_init.o)</span><br style="font-family:courier new,monospace">

<span style="font-family:courier new,monospace">__indirect_glGetTexEnviv            ./.libs/libglx.a(indirect_init.o)</span><br style="font-family:courier new,monospace">      . . . . <br><br></div><span style="font-family:courier new,monospace">A grep of the source on the first symbol, for example, reveals this:</span><br style="font-family:courier new,monospace">

<br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">./src/glx/tests/indirect_api.cpp:void __indirect_glGetTexEnvfv(void) { }</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">./src/glx/tests/indirect_api.cpp:   EXPECT_EQ((_glapi_proc) __indirect_glGetTexEnvfv, table[_gloffset_GetTexEnvfv]);</span><br style="font-family:courier new,monospace">

<span style="font-family:courier new,monospace">./src/glx/indirect_init.c:    table[276] = (_glapi_proc) __indirect_glGetTexEnvfv;</span><br style="font-family:courier new,monospace"><br></div><span style="font-family:courier new,monospace">which suggests that these symbols are meant to be undefined<br>

and</span><span style="font-family:courier new,monospace"> resolved later, and yet this is a static library. Is this<br>the case? If so, the -z defs argument to the</span><span style="font-family:courier new,monospace"> loader should be<br>

removed plus --no-undefined, but that would mean</span><span style="font-family:courier new,monospace"> tampering with<br>libtool.</span><br style="font-family:courier new,monospace"><br style="font-family:courier new,monospace">

</div><span style="font-family:courier new,monospace">Does anyone understand this problem?</span><span class="HOEnZb"><font color="#888888"><br style="font-family:courier new,monospace"><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">Noel Hunt</span><br>
</font></span></div>
</div><br></div>