I had the same result as Pranjal. After building from the Mercurial repo and applying Pranjal's change to config.sml I am up and running. Thanks very much for the assistance.
Steve On Thu, Jan 5, 2012 at 7:51 PM, Pranjal Vachaspati <[email protected]> wrote: > It still gives the following errors: > > /usr/local/lib/urweb/../liburweb.so: undefined reference to `RAND_bytes' > /usr/local/lib/urweb/../liburweb.so: undefined reference to `DES_fcrypt' > /usr/local/lib/urweb/../liburweb.so: undefined reference to `SHA256_Init' > /usr/local/lib/urweb/../liburweb.so: undefined reference to `SHA256_Final' > /usr/local/lib/urweb/../liburweb.so: undefined reference to `SHA256_Update' > collect2: ld returned 1 exit status > make: *** [all] Error 1 > > But when I switch the order of -lssl and -lcrypto in config.sml it works. > > -- > Pranjal Vachaspati > > > > On Thu, Jan 5, 2012 at 5:25 PM, Adam Chlipala <[email protected]>wrote: > >> Pranjal Vachaspati wrote: >> >>> I just upgraded my Ubuntu installation to 11.10 and had the same >>> problem. The following argument order seems to work: >>> >>> gcc -Werror -pthread -L /usr/local/lib/ -lurweb_http -lurweb webapp.o >>> -lsqlite3 -lm -lcrypto -lssl -o output.exe >>> >>> 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. >>> >> >> Thanks for the very actionable report! :) >> >> 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. >> >> Steve and Pranjal, does this new version work for you? >> >> >> ______________________________**_________________ >> Ur mailing list >> [email protected] >> http://www.impredicative.com/**cgi-bin/mailman/listinfo/ur<http://www.impredicative.com/cgi-bin/mailman/listinfo/ur> >> > > > _______________________________________________ > Ur mailing list > [email protected] > http://www.impredicative.com/cgi-bin/mailman/listinfo/ur > >
_______________________________________________ Ur mailing list [email protected] http://www.impredicative.com/cgi-bin/mailman/listinfo/ur
