[Ur] Demo app not responding to urls.. other compiled programs work

Daniel Patterson dbpatterson at riseup.net
Fri Oct 23 18:29:06 EDT 2009


Written 23.10.2009 at 05:37 pm, Adam Chlipala <adamc at impredicative.com>:
>
>Which command line did you use to build the demo executable?
>Following the directions in the online tutorial demo works fine for me.
>
I built with the command specified in the tutorial:
urweb -dbms sqlite -db demo.db -demo Demo demo

and then run with:
./demo/demo.exe

>
>Yes.  What warnings were causing trouble?  What platform are you using?
>
The errors on a compile of Demo:
[daniel at kry urweb]$ urweb -dbms sqlite -db demo.db -demo Demo demo
cc1: warnings being treated as errors
/tmp/filexqFPOA/webapp.c: In function ‘__uwn_wrap_delete_1656’:
/tmp/filexqFPOA/webapp.c:5384: error: pointer type mismatch in
conditional expression
/tmp/filexqFPOA/webapp.c: In function ‘__uwn_wrap_add_1657’:
/tmp/filexqFPOA/webapp.c:5527: error: pointer type mismatch in
conditional expression
/tmp/filexqFPOA/webapp.c: In function ‘__uwn_recurse_1757’:
/tmp/filexqFPOA/webapp.c:7559: error: pointer type mismatch in
conditional expression
/tmp/filexqFPOA/webapp.c: In function ‘__uwn_wrap_add_1661’:
/tmp/filexqFPOA/webapp.c:7855: error: pointer type mismatch in
conditional expression
/tmp/filexqFPOA/webapp.c: In function ‘__uwn_wrap_addU_1663’:
/tmp/filexqFPOA/webapp.c:8050: error: pointer type mismatch in
conditional expression
/tmp/filexqFPOA/webapp.c:8064: error: pointer type mismatch in
conditional expression
/tmp/filexqFPOA/webapp.c: In function ‘__uwn_wrap_addT_1662’:
/tmp/filexqFPOA/webapp.c:8314: error: pointer type mismatch in
conditional expression
/tmp/filexqFPOA/webapp.c:8328: error: pointer type mismatch in
conditional expression
/tmp/filexqFPOA/webapp.c: In function ‘__uwn_wrap_save_1674’:
/tmp/filexqFPOA/webapp.c:9397: error: pointer type mismatch in
conditional expression
/tmp/filexqFPOA/webapp.c: In function ‘__uwn_wrap_delete_1675’:
/tmp/filexqFPOA/webapp.c:9539: error: pointer type mismatch in
conditional expression
/tmp/filexqFPOA/webapp.c: In function ‘__uwn_wrap_create_1673’:
/tmp/filexqFPOA/webapp.c:9713: error: pointer type mismatch in
conditional expression
/tmp/filexqFPOA/webapp.c: In function ‘__uwn_wrap_save_1679’:
/tmp/filexqFPOA/webapp.c:10125: error: pointer type mismatch in
conditional expression
/tmp/filexqFPOA/webapp.c: In function ‘__uwn_wrap_delete_1680’:
/tmp/filexqFPOA/webapp.c:10274: error: pointer type mismatch in
conditional expression
/tmp/filexqFPOA/webapp.c: In function ‘__uwn_wrap_create_1678’:
/tmp/filexqFPOA/webapp.c:10481: error: pointer type mismatch in
conditional expression
/tmp/filexqFPOA/webapp.c: In function ‘__uwn_wrap_save_1684’:
/tmp/filexqFPOA/webapp.c:10781: error: pointer type mismatch in
conditional expression
/tmp/filexqFPOA/webapp.c: In function ‘__uwn_wrap_delete_1685’:
/tmp/filexqFPOA/webapp.c:10896: error: pointer type mismatch in
conditional expression
/tmp/filexqFPOA/webapp.c: In function ‘__uwn_wrap_create_1683’:
/tmp/filexqFPOA/webapp.c:11033: error: pointer type mismatch in
conditional expression
/tmp/filexqFPOA/webapp.c: In function ‘__uwn_wrap_create_1689’:
/tmp/filexqFPOA/webapp.c:12474: error: pointer type mismatch in
conditional expression
/tmp/filexqFPOA/webapp.c: In function ‘__uwn_wrap_delete_1688’:
/tmp/filexqFPOA/webapp.c:12698: error: pointer type mismatch in
conditional expression
/tmp/filexqFPOA/webapp.c: In function ‘__uwn_wrap_main_1724’:
/tmp/filexqFPOA/webapp.c:12893: error: pointer type mismatch in
conditional expression
/tmp/filexqFPOA/webapp.c: In function ‘__uwn_wrap_main_1714’:
/tmp/filexqFPOA/webapp.c:13491: error: pointer type mismatch in
conditional expression
/tmp/filexqFPOA/webapp.c: In function ‘__uwn_wrap_main_1713’:
/tmp/filexqFPOA/webapp.c:13576: error: pointer type mismatch in
conditional expression
/tmp/filexqFPOA/webapp.c: In function ‘__uwn_wrap_main_1712’:
/tmp/filexqFPOA/webapp.c:13694: error: pointer type mismatch in
conditional expression
/tmp/filexqFPOA/webapp.c: In function ‘__uwn_wrap_main_1705’:
/tmp/filexqFPOA/webapp.c:14132: error: pointer type mismatch in
conditional expression
/tmp/filexqFPOA/webapp.c:14146: error: pointer type mismatch in
conditional expression
/tmp/filexqFPOA/webapp.c: In function ‘__uwn_wrap_main_1704’:
/tmp/filexqFPOA/webapp.c:14366: error: pointer type mismatch in
conditional expression
/tmp/filexqFPOA/webapp.c: In function ‘__uwn_wrap_main_1701’:
/tmp/filexqFPOA/webapp.c:14538: error: pointer type mismatch in
conditional expression
C compilation failed

My platform is (not sure what info you want): 

Linux kry 2.6.31-ARCH #1 SMP PREEMPT Thu Oct 8 14:35:12 CEST 2009 i686
Intel(R) Core(TM)2 Duo CPU P8400 @ 2.26GHz GenuineIntel GNU/Linux

gcc (GCC) 4.4.1

I'm on archlinux, so distribution version of mlton is:
aur/mlton 20070826-1
and mhash:
extra/mhash 0.9.9.9-1

Side question - any way to get the demo not to spawn an emacs process
on every file when it compiles? (if it doesnt do that for anyone else
I'll dig around and figure out what's going on with my platform, but I
figure it is something that can be stopped easily).

Thanks,
Daniel


>_______________________________________________
>Ur mailing list
>Ur at impredicative.com
>http://www.impredicative.com/cgi-bin/mailman/listinfo/ur


-- 
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.10 (GNU/Linux)

mQSuBErckYwRDACsKelqhKh/KcRyeCfD00196Atvq5KqDz8H9hkJSeDMvS84EhJa
2H0CSZh2PQUdLXXqrhmZPNBSZqXlLq752IV37B6Tw2ub6dslI/Dui3lj6jIU2M8V
JMFghnnapJK1AFOxFRJMH8scIlvi0mAzMHOwHFtnAjnDJKz5e8pYFtzlzKVPhp2U
ta0d3IHTd8pCV0uOleQKJDqiG0rzGcpp7hQin64N3UXdV565cyvKBZI8xiDqea0n
Nd8tmtnmW7wJJEh91gCMF95lmNIy6nX5kKEiQ9HlGSpCka4e4v4hhfg3XJwz5hNR
MHKgjE2VdlLi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6z5NrFlNzwwEwyXfqOZ/OExQmZDYpFkYtUxhbe9cO9hKx
jB+PdkHJEPOSkWeWT6GbrvsFnHOnT3WG0pQS3Y4bA7sjwE2/+5z0eB8tPcx0dDxa
3i2x8K4gCUz0MiG/orz8ln1MnplVut3q4u1fsy/VHN2hWZtcAloSQ7jE1d+HmsgN
taUnbenH04aI29UlrFzTd2cQKf222cE0gb5VakexPfS5emifwbQE2nt0Uhy3FySx
PQp2LmDOH7yKBXOpB78PBKtvdZoU9/BDtXp/+LJaLm9XBNfog4VJTwF9r/d3UU/m
NsAzMd8iVpj2TaSgEvxoI5c1H6D8PuCv9GIfZZGjxtHWE4+NtxgSPfrD7Tq/IKmB
JyKT3e9NNqPKcIWP3rj5ejRw15SGqDCL30dFFQGbJytRGG1E224xdiqpDHVLAYhn
BBgRCAAPBQJK3JGMAhsMBQkA7U4AAAoJEK8bJ/iAyILD8+QA/1oCW/g86RkVqOkj
jRhsQ+plm+teusLCEH4xnS81xCEoAQCP8a4e3EsRhKcFYnLeQ1pkOpUHtrVldQsz
EC2CW9gxNQ==
=TWid
-----END PGP PUBLIC KEY BLOCK-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 230 bytes
Desc: not available
URL: <http://www.impredicative.com/pipermail/ur/attachments/20091023/0ece01e7/attachment.pgp>


More information about the Ur mailing list