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