<div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Hello. I have been watching Ur/Web for a while with great interest and finally found </div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
some time to kick the tires. Unfortunately, I hit the same error that was reported on </div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">the list in November:</div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<br></div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">$ urweb simsnet</div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><div>/tmp/fileEazvG0/webapp.o: In function `uw_cookie_sig':</div>
<div>webapp.c:(.text+0xd4): undefined reference to `uw_hash_blocksize'</div><div>webapp.c:(.text+0xec): undefined reference to `uw_malloc'</div><div>webapp.c:(.text+0xfe): undefined reference to `uw_sign'</div>
<div>webapp.c:(.text+0x10a): undefined reference to `uw_Basis_makeSigString'</div><div>/tmp/fileEazvG0/webapp.o: In function `uw_handle':</div><div>webapp.c:(.text+0x181): undefined reference to `uw_write_header'</div>
<div>webapp.c:(.text+0x191): undefined reference to `uw_write_header'</div><div>webapp.c:(.text+0x1a1): undefined reference to `uw_write'</div><div>webapp.c:(.text+0x1a9): undefined reference to `uw_mayReturnIndirectly'</div>
<div>webapp.c:(.text+0x1b9): undefined reference to `uw_set_script_header'</div></div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">...</div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<br></div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">I could not find a resolution to this issue. Was it ever figured out?</div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<br></div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Here is what I did to get here.</div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<br></div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">I am using a fresh Ubuntu 11.10 install.</div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<br></div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">According to the install instructions from the Ur/Web manual I installed required packages:</div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<br></div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><div>$ sudo apt-get install openssh-server</div><div>$ sudo apt-get install mlton libssl-dev</div><div>$ sudo apt-get install libpq-dev</div>
<div>$ sudo apt-get install postgresql</div></div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
I downloaded and unziped the latest Ur/Web source distribution (20111127)</div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
Did:</div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">$ ./configure </div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">...</div>
<div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><div>Ur/Web configuration:</div><div> bin directory: BIN /usr/local/bin</div><div> lib directory: LIB /usr/local/lib/urweb</div>
<div> include directory: INCLUDE /usr/local/include/urweb</div><div> site-lisp directory: SITELISP /usr/local/share/emacs/site-lisp/urweb-mode</div><div> C compiler: CC gcc</div><div>
Extra CC args: CCARGS </div><div> Postgres C header: PGHEADER postgresql/libpq-fe.h</div><div> MySQL C header: MSHEADER mysql.h</div><div> SQLite C header: SQHEADER sqlite3.h</div>
<div><br></div><div> Version: 20111127</div></div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
$ make</div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">make all-recursive</div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">make[1]: Entering directory `/home/steve/urweb'</div>
<div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Making all in src/c</div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">make[2]: Entering directory `/home/steve/urweb/src/c'</div>
<div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">make[2]: Nothing to be done for `all'.</div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
make[2]: Leaving directory `/home/steve/urweb/src/c'</div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">make[2]: Entering directory `/home/steve/urweb'</div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
mlton -output bin/urweb src/compiler.mlb</div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">make[2]: Leaving directory `/home/steve/urweb'</div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
make[1]: Leaving directory `/home/steve/urweb'</div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
$ sudo make install</div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Seems to go through fine. Puts libraries in /usr/local/lib</div>
<div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">In the previous thread Adam said the missing symbols are from <span style="white-space:pre-wrap">liburweb.so</span></div>
<div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><span style="white-space:pre-wrap">which seems to be in /usr/local/lib with appropriate permissions:</span></div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<span style="white-space:pre-wrap"><br>
</span></div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><span style="white-space:pre-wrap">steve@truman:/usr/local/lib$ ls -l
total 696
-rw-r--r-- 1 root root 241918 <a href="tel:2012-01-02%2015" value="+12012010215" target="_blank" style="color:rgb(0,0,204)">2012-01-02 15</a>:46 liburweb.a
-rw-r--r-- 1 root root 16186 <a href="tel:2012-01-02%2015" value="+12012010215" target="_blank" style="color:rgb(0,0,204)">2012-01-02 15</a>:46 liburweb_cgi.a
-rwxr-xr-x 1 root root 967 <a href="tel:2012-01-02%2015" value="+12012010215" target="_blank" style="color:rgb(0,0,204)">2012-01-02 15</a>:46 <a href="http://liburweb_cgi.la/" target="_blank" style="color:rgb(0,0,204)">liburweb_cgi.la</a>
lrwxrwxrwx 1 root root 21 <a href="tel:2012-01-02%2015" value="+12012010215" target="_blank" style="color:rgb(0,0,204)">2012-01-02 15</a>:46 liburweb_cgi.so -> liburweb_cgi.so.0.0.0
lrwxrwxrwx 1 root root 21 <a href="tel:2012-01-02%2015" value="+12012010215" target="_blank" style="color:rgb(0,0,204)">2012-01-02 15</a>:46 liburweb_cgi.so.0 -> liburweb_cgi.so.0.0.0
-rwxr-xr-x 1 root root 19671 <a href="tel:2012-01-02%2015" value="+12012010215" target="_blank" style="color:rgb(0,0,204)">2012-01-02 15</a>:46 liburweb_cgi.so.0.0.0
-rw-r--r-- 1 root root 43258 <a href="tel:2012-01-02%2015" value="+12012010215" target="_blank" style="color:rgb(0,0,204)">2012-01-02 15</a>:46 liburweb_fastcgi.a
-rwxr-xr-x 1 root root 995 <a href="tel:2012-01-02%2015" value="+12012010215" target="_blank" style="color:rgb(0,0,204)">2012-01-02 15</a>:46 <a href="http://liburweb_fastcgi.la/" target="_blank" style="color:rgb(0,0,204)">liburweb_fastcgi.la</a>
lrwxrwxrwx 1 root root 25 <a href="tel:2012-01-02%2015" value="+12012010215" target="_blank" style="color:rgb(0,0,204)">2012-01-02 15</a>:46 liburweb_fastcgi.so -> liburweb_fastcgi.so.0.0.0
lrwxrwxrwx 1 root root 25 <a href="tel:2012-01-02%2015" value="+12012010215" target="_blank" style="color:rgb(0,0,204)">2012-01-02 15</a>:46 liburweb_fastcgi.so.0 -> liburweb_fastcgi.so.0.0.0
-rwxr-xr-x 1 root root 40897 <a href="tel:2012-01-02%2015" value="+12012010215" target="_blank" style="color:rgb(0,0,204)">2012-01-02 15</a>:46 liburweb_fastcgi.so.0.0.0
-rw-r--r-- 1 root root 29064 <a href="tel:2012-01-02%2015" value="+12012010215" target="_blank" style="color:rgb(0,0,204)">2012-01-02 15</a>:46 liburweb_http.a
-rwxr-xr-x 1 root root 974 <a href="tel:2012-01-02%2015" value="+12012010215" target="_blank" style="color:rgb(0,0,204)">2012-01-02 15</a>:46 <a href="http://liburweb_http.la/" target="_blank" style="color:rgb(0,0,204)">liburweb_http.la</a>
lrwxrwxrwx 1 root root 22 <a href="tel:2012-01-02%2015" value="+12012010215" target="_blank" style="color:rgb(0,0,204)">2012-01-02 15</a>:46 liburweb_http.so -> liburweb_http.so.0.0.0
lrwxrwxrwx 1 root root 22 <a href="tel:2012-01-02%2015" value="+12012010215" target="_blank" style="color:rgb(0,0,204)">2012-01-02 15</a>:46 liburweb_http.so.0 -> liburweb_http.so.0.0.0
-rwxr-xr-x 1 root root 30006 <a href="tel:2012-01-02%2015" value="+12012010215" target="_blank" style="color:rgb(0,0,204)">2012-01-02 15</a>:46 liburweb_http.so.0.0.0
-rwxr-xr-x 1 root root 939 <a href="tel:2012-01-02%2015" value="+12012010215" target="_blank" style="color:rgb(0,0,204)">2012-01-02 15</a>:46 <a href="http://liburweb.la/" target="_blank" style="color:rgb(0,0,204)">liburweb.la</a>
lrwxrwxrwx 1 root root 17 <a href="tel:2012-01-02%2015" value="+12012010215" target="_blank" style="color:rgb(0,0,204)">2012-01-02 15</a>:46 liburweb.so -> liburweb.so.0.0.0
lrwxrwxrwx 1 root root 17 <a href="tel:2012-01-02%2015" value="+12012010215" target="_blank" style="color:rgb(0,0,204)">2012-01-02 15</a>:46 liburweb.so.0 -> liburweb.so.0.0.0
-rwxr-xr-x 1 root root 220764 <a href="tel:2012-01-02%2015" value="+12012010215" target="_blank" style="color:rgb(0,0,204)">2012-01-02 15</a>:46 liburweb.so.0.0.0
-rw-r--r-- 1 root root 9366 <a href="tel:2012-01-02%2015" value="+12012010215" target="_blank" style="color:rgb(0,0,204)">2012-01-02 15</a>:46 liburweb_static.a
-rwxr-xr-x 1 root root 988 <a href="tel:2012-01-02%2015" value="+12012010215" target="_blank" style="color:rgb(0,0,204)">2012-01-02 15</a>:46 <a href="http://liburweb_static.la/" target="_blank" style="color:rgb(0,0,204)">liburweb_static.la</a>
lrwxrwxrwx 1 root root 24 <a href="tel:2012-01-02%2015" value="+12012010215" target="_blank" style="color:rgb(0,0,204)">2012-01-02 15</a>:46 liburweb_static.so -> liburweb_static.so.0.0.0
lrwxrwxrwx 1 root root 24 <a href="tel:2012-01-02%2015" value="+12012010215" target="_blank" style="color:rgb(0,0,204)">2012-01-02 15</a>:46 liburweb_static.so.0 -> liburweb_static.so.0.0.0
-rwxr-xr-x 1 root root 12311 <a href="tel:2012-01-02%2015" value="+12012010215" target="_blank" style="color:rgb(0,0,204)">2012-01-02 15</a>:46 liburweb_static.so.0.0.0
drwxrwsr-x 4 root staff 4096 2011-10-12 10:27 python2.7
drwxr-xr-x 4 root root 4096 <a href="tel:2012-01-02%2012" value="+12012010212" target="_blank" style="color:rgb(0,0,204)">2012-01-02 12</a>:10 urweb</span><span style="white-space:pre-wrap">
</span></div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><span style="white-space:pre-wrap"><br></span></div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<span style="white-space:pre-wrap">In the previous thread Adam also suggested the -debug flag to see the gcc command line. I get:</span></div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<span style="white-space:pre-wrap"><br></span></div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><span style="white-space:pre-wrap">gcc -pthread -Wimplicit -Werror -Wno-unused-value -I /usr/local/include/urweb -c /tmp/webapp.c -o /tmp/webapp.o -g
gcc -Werror -lm -pthread -L/usr/local/lib/urweb/.. -lurweb -lurweb_http -lssl -lcrypto /tmp/webapp.o -o /home/steve/simsnet/simsnet.exe -g
</span></div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><span style="white-space:pre-wrap"><br></span></div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<span style="white-space:pre-wrap">which seems to be pointing to the right directory via -L/usr/local/lib/urweb/..</span></div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><span style="white-space:pre-wrap"><br>
</span></div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><span style="white-space:pre-wrap">The only other thing I can think to mention is that Ubuntu 11.10 seems to be using gcc version 4.6.</span></div>
<div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><span style="white-space:pre-wrap"><br></span></div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<span style="white-space:pre-wrap">Any help would be greatly appreciated. I would love to play around with Ur/Web if I can get going. </span></div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<span style="white-space:pre-wrap"><br></span></div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><span style="white-space:pre-wrap">Best Regards,</span></div><div style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<span style="white-space:pre-wrap">Steve</span></div>