It still gives the following errors: <div><br clear="all">/usr/local/lib/urweb/../liburweb.so: undefined reference to `RAND_bytes'<div>/usr/local/lib/urweb/../liburweb.so: undefined reference to `DES_fcrypt'</div><div>
/usr/local/lib/urweb/../liburweb.so: undefined reference to `SHA256_Init'</div><div>/usr/local/lib/urweb/../liburweb.so: undefined reference to `SHA256_Final'</div><div>/usr/local/lib/urweb/../liburweb.so: undefined reference to `SHA256_Update'</div>
<div>collect2: ld returned 1 exit status</div><div>make: *** [all] Error 1</div><div><br></div><div>But when I switch the order of -lssl and -lcrypto in config.sml it works.</div><div><br></div><div>--</div>Pranjal Vachaspati<br>
<br><br><div class="gmail_quote">On Thu, Jan 5, 2012 at 5:25 PM, Adam Chlipala <span dir="ltr"><<a href="mailto:adamc@impredicative.com">adamc@impredicative.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">Pranjal Vachaspati wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I just upgraded my Ubuntu installation to 11.10 and had the same problem. The following argument order seems to work:<br>
<br>
gcc -Werror -pthread -L /usr/local/lib/ -lurweb_http -lurweb webapp.o -lsqlite3 -lm -lcrypto -lssl -o output.exe<br>
<br>
I'm not sure how to make Ur/web use this order, though, nor am I sure why the old argument order doesn't work.<br>
</blockquote>
<br></div>
Thanks for the very actionable report! :)<br>
<br>
I've changed the compiler (in the public Mercurial repo) to use _almost_ the above argument order, on my Debian system. The relative order of "-lcrypto" and "-lssl" is coming from a standard Autoconf macro, so I don't want to touch it.<br>
<br>
Steve and Pranjal, does this new version work for you?<div class="HOEnZb"><div class="h5"><br>
<br>
______________________________<u></u>_________________<br>
Ur mailing list<br>
<a href="mailto:Ur@impredicative.com" target="_blank">Ur@impredicative.com</a><br>
<a href="http://www.impredicative.com/cgi-bin/mailman/listinfo/ur" target="_blank">http://www.impredicative.com/<u></u>cgi-bin/mailman/listinfo/ur</a><br>
</div></div></blockquote></div><br></div>