<div><br></div>Hi Gergely,<div><br></div><div>Thanks for the suggestions. I tried that but unfortunately I still get the same result. I added some entries to my .bashrc file adapting yours by substituting the local/lib, local/bin, include in your home directory to /usr/local which is where I have them installed. </div>
<div><br></div><div>Steve<br><br><div class="gmail_quote">On Tue, Jan 3, 2012 at 4:16 AM, Gergely Buday <span dir="ltr"><<a href="mailto:gbuday@gmail.com">gbuday@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Steve,<br>
<br>
here is my .bashrc, I do not remember why I did these but probably it<br>
will help you as well, tailored properly.<br>
<br>
if ! echo $PATH | grep "/home/gergoe/local/bin" >/dev/null<br>
then<br>
export PATH=/home/gergoe/local/bin:$PATH<br>
fi<br>
if ! echo $LD_LIBRARY_PATH | grep "/home/gergoe/local/lib" >/dev/null<br>
then<br>
export LD_LIBRARY_PATH=/usr/lib64:/home/gergoe/local/lib:$LD_LIBRARY_PATH<br>
fi<br>
<br>
if ! echo $LIBRARY_PATH | grep "/usr/lib64/mysql" >/dev/null<br>
then<br>
export LIBRARY_PATH=/usr/lib64/mysql:$LIBRARY_PATH<br>
fi<br>
if ! echo $CPATH | grep "/home/gergoe/include" >/dev/null<br>
then<br>
export CPATH=/home/gergoe/include:$CPATH<br>
fi<br>
<font color="#888888"><br>
- Gergely<br>
</font><div><div></div><div class="h5"><br>
On 3 January 2012 03:40, Steve Sims <<a href="mailto:steve@simsnet.org">steve@simsnet.org</a>> wrote:<br>
><br>
> Adam. Thanks for the quick response. Forgive my lack of gcc<br>
> compiler/linker<br>
> skills. I have lead a sheltered life programming mostly in SML :)<br>
> Regarding<br>
> your question, I am not sure how to check that it is loading the correct<br>
> version<br>
> of liburweb. What I tried was to just directly include liburweb.a on the<br>
> command<br>
> line produced by the urweb -debug. With that I get:<br>
><br>
> steve@truman:~/simsnet$ gcc -Werror -lm -pthread -L/usr/local/lib/urweb/..<br>
> -lurweb -lurweb_http -lssl -lcrypto /usr/local/lib/liburweb.a<br>
> /tmp/webapp.o -o /home/steve/simsnet/simsnet.exe -g<br>
> /usr/local/lib/liburweb.a(urweb.o): In function `uw_Basis_rand':<br>
> /home/steve/urweb/src/c/urweb.c:3821: undefined reference to `RAND_bytes'<br>
> /usr/local/lib/liburweb.a(urweb.o): In function `uw_Basis_crypt':<br>
> /home/steve/urweb/src/c/urweb.c:3884: undefined reference to `DES_fcrypt'<br>
> /usr/local/lib/liburweb.a(urweb.o): In function `uw_Basis_ceil':<br>
> /home/steve/urweb/src/c/urweb.c:3966: undefined reference to `ceil'<br>
> /usr/local/lib/liburweb.a(urweb.o): In function `uw_Basis_round':<br>
> /home/steve/urweb/src/c/urweb.c:3974: undefined reference to `llround'<br>
> /usr/local/lib/liburweb.a(openssl.o): In function `uw_sign':<br>
> /home/steve/urweb/src/c/openssl.c:68: undefined reference to `SHA256_Init'<br>
> /home/steve/urweb/src/c/openssl.c:69: undefined reference to `SHA256_Update'<br>
> /home/steve/urweb/src/c/openssl.c:70: undefined reference to `SHA256_Update'<br>
> /home/steve/urweb/src/c/openssl.c:71: undefined reference to `SHA256_Final'<br>
> collect2: ld returned 1 exit status<br>
><br>
> Which caused me to guess that liburweb.a wants to dynamically load the open<br>
> ssh libraries but is not finding them. So I added another -L flag to the<br>
> command line pointing to the directory containing the open ssh libraries<br>
> (libssl, libcrypto), but I still get the same errors as above.<br>
><br>
> Again, any advice is appreciated.<br>
><br>
> Thanks,<br>
> Steve<br>
><br>
><br>
><br>
> On Mon, Jan 2, 2012 at 6:34 PM, Adam Chlipala <<a href="mailto:adamc@impredicative.com">adamc@impredicative.com</a>><br>
> wrote:<br>
>><br>
>> Steve Sims wrote:<br>
>>><br>
>>> Hello. I have been watching Ur/Web for a while with great interest and<br>
>>> finally found<br>
>>> some time to kick the tires. Unfortunately, I hit the same error that<br>
>>> was reported on<br>
>>> the list in November:<br>
>>><br>
>>> $ urweb simsnet<br>
>>> /tmp/fileEazvG0/webapp.o: In function `uw_cookie_sig':<br>
>>> webapp.c:(.text+0xd4): undefined reference to `uw_hash_blocksize'<br>
>><br>
>><br>
>> Weird. This at least looks like a very basic issue. As you mentioned, my<br>
>> take on the problem before was that liburweb wasn't being dynamically loaded<br>
>> properly. Can you verify that the expected liburweb file is being<br>
>> consulted? Whatever is happening should be possible to debug just by<br>
>> working with the linker command line that you see with the '-debug' option.<br>
>><br>
>> _______________________________________________<br>
>> Ur mailing list<br>
>> <a href="mailto:Ur@impredicative.com">Ur@impredicative.com</a><br>
>> <a href="http://www.impredicative.com/cgi-bin/mailman/listinfo/ur" target="_blank">http://www.impredicative.com/cgi-bin/mailman/listinfo/ur</a><br>
><br>
><br>
><br>
> _______________________________________________<br>
> Ur mailing list<br>
> <a href="mailto:Ur@impredicative.com">Ur@impredicative.com</a><br>
> <a href="http://www.impredicative.com/cgi-bin/mailman/listinfo/ur" target="_blank">http://www.impredicative.com/cgi-bin/mailman/listinfo/ur</a><br>
><br>
<br>
_______________________________________________<br>
Ur mailing list<br>
<a href="mailto:Ur@impredicative.com">Ur@impredicative.com</a><br>
<a href="http://www.impredicative.com/cgi-bin/mailman/listinfo/ur" target="_blank">http://www.impredicative.com/cgi-bin/mailman/listinfo/ur</a><br>
</div></div></blockquote></div><br></div>