<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
On 10/20/2012 10:58 AM, David Snider wrote:
<blockquote cite="mid:5082BC06.9020506@davidsnider.net" type="cite">
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
  <div class="moz-cite-prefix">For some reason you have to link pq
after everything else. It doesn't do this with sqlite or mysql.<br>
  <br>
david@ubuntu:~/Projects/UrShop$ gcc -Werror  -pthread  -L/usr/local/lib
-lurweb_http -lurweb /tmp/webapp.o -lpq -lm -lcrypto -lssl -o
/home/david/Projects/UrShop/urshop.exe -g
/home/david/Projects/UrShop/lib/sha.o<br>
/usr/bin/ld: /usr/local/lib/liburweb.so: undefined reference to symbol '<a
 moz-do-not-send="true" class="moz-txt-link-abbreviated"
 href="mailto:SHA256_Init@@OPENSSL_1.0.0">SHA256_Init@@OPENSSL_1.0.0</a>'<br>
/usr/bin/ld: note: '<a moz-do-not-send="true"
 class="moz-txt-link-abbreviated"
 href="mailto:SHA256_Init@@OPENSSL_1.0.0">SHA256_Init@@OPENSSL_1.0.0</a>'
is defined in DSO
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libcrypto.so

so try adding it to the linker command line<br>
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libcrypto.so:

could not read symbols: Invalid operation<br>
collect2: ld returned 1 exit status<br>
  <br>
  <br>
david@ubuntu:~/Projects/UrShop$ gcc -Werror  -pthread  -L/usr/local/lib
-lurweb_http -lurweb /tmp/webapp.o -lm -lcrypto -lssl -lpq -o
/home/david/Projects/UrShop/urshop.exe -g
/home/david/Projects/UrShop/lib/sha.o<br>
  </div>
</blockquote>
<br>
OK, I've pushed this change to the public Mercurial repository.  Does
it work for you now?<br>
<br>
I hope I'm not undoing some past fix for someone else's report that the
order should be reversed. :)<br>
</body>
</html>