[Chicken-users] About Chicken Compiler CSC's Option

2014-06-10 Thread blueperson
Hello,
Everybody.
I just want to learn the software Hato that found in chicken's website,
but failed in make it. The error showed csc: invalid option `-G'. I
check the Makefile and find CHICKEN_OPTS=-O2 -G. And I also type csc
-help to show all the options but cann't find it.
I cann't found the csc's history data. If anyone can tell me what's the
'-G' option now looks like??

Thanks!


blueperson


___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] About Chicken Compiler CSC's Option

2014-06-10 Thread Christian Kellermann
* blueperson blueperson1...@gmail.com [140610 09:26]:
 Hello,
 Everybody.
 I just want to learn the software Hato that found in chicken's website,
 but failed in make it. The error showed csc: invalid option `-G'. I
 check the Makefile and find CHICKEN_OPTS=-O2 -G. And I also type csc
 -help to show all the options but cann't find it.
 I cann't found the csc's history data. If anyone can tell me what's the
 '-G' option now looks like??

The version of hato as found on foof's website currently does not
build with newer Chickens. However there are several versions flowing
around. IIRC Moritz has a port here:

hg clone https://code.google.com/r/datenhobel-hato-egg-update/

I have done this myself partly (just needed parts of hato, especially
the test suite did not work for me but I did not dig deeper there),
if you need this I can put the diffs somewhere.

YMMV,

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] About Chicken Compiler CSC's Option

2014-06-10 Thread blueperson
于 2014年06月10日 15:32, Christian Kellermann 写道:
 * blueperson blueperson1...@gmail.com [140610 09:26]:
 Hello,
 Everybody.
 I just want to learn the software Hato that found in chicken's website,
 but failed in make it. The error showed csc: invalid option `-G'. I
 check the Makefile and find CHICKEN_OPTS=-O2 -G. And I also type csc
 -help to show all the options but cann't find it.
 I cann't found the csc's history data. If anyone can tell me what's the
 '-G' option now looks like??
 The version of hato as found on foof's website currently does not
 build with newer Chickens. However there are several versions flowing
 around. IIRC Moritz has a port here:

 hg clone https://code.google.com/r/datenhobel-hato-egg-update/

 I have done this myself partly (just needed parts of hato, especially
 the test suite did not work for me but I did not dig deeper there),
 if you need this I can put the diffs somewhere.

 YMMV,

 Christian

Thanks for your help!
I get a clone use hg clone
https://code.google.com/r/datenhobel-hato-egg-update/;. But get the same
error csc: invalid option `-G'  when I make it. I use chicken
4.8.0.3 in gentoo.
I'm just a beginner on programming and didn't write much codes. I just
want to write a MUA first to learn something. For personal reasons I
choose scheme/chicken, and only found a MTA hato.


blueperson

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] About Chicken Compiler CSC's Option

2014-06-10 Thread Peter Bex
On Tue, Jun 10, 2014 at 05:56:55PM +0800, blueperson wrote:
 Thanks for your help!
 I get a clone use hg clone
 https://code.google.com/r/datenhobel-hato-egg-update/;. But get the same
 error csc: invalid option `-G'  when I make it. I use chicken
 4.8.0.3 in gentoo.

Have you tried simply removing the -G option?  I don't know what it
does, and as far as I can tell there never was such an option in the
first place.  I can't explain why this option is in the Makefile though.

Perhaps nobody uses the Makefile at all; there's also a hato.setup file,
which would be used when you simply type chicken-install after
switching to the directory.  It is an egg, after all, so perhaps it's
meant to be installed as an egg.

 I'm just a beginner on programming and didn't write much codes. I just
 want to write a MUA first to learn something. For personal reasons I
 choose scheme/chicken, and only found a MTA hato.

Hato isn't really actively maintained AFAIK, so this might not be the
best choice to get started; there may be a few roadblocks like this
you will run into.  An experienced programmer would have few problems
with this, but as a learning project it may be mostly an exercise in
frustration.  Of course, if you decide to do it anyway we're here to
help out, and if you would like some more direct help feel free to drop
by the IRC channel, it's full of friendly people :)

Cheers,
Peter
-- 
http://www.more-magic.net

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] bug update-uri in uri-common

2014-06-10 Thread Kristian Lein-Mathisen
If we go for (b), we could also provide a normalize-uri-port which sets it
to #f if it's already equal to the default port of its scheme. And perhaps
an optional normalize? argument to the uri-string procedure?

K.


On Sun, Jun 8, 2014 at 8:16 PM, Evan Hanson ev...@foldling.org wrote:

 On 2014-06-08 11:14, Peter Bex wrote:
  On Sat, Jun 07, 2014 at 09:01:01PM -0400, John Cowan wrote:
   Peter Bex scripsit:
  
c) The port should not be reset, but the uri should be printed
 without
port if it's the default for this scheme.
  
   +1 for (c).
 
  hm, but if you really want to print http://foo:80/blabla, how
  should that work?

 In that case I don't think it's unreasonable to expect the user to
 define their own function to build a string from the URI's composite
 parts. We have to pick a default behavior one way or the other, and
 without the port seems like the better one to me.

 Regards,

 Evan

 ___
 Chicken-users mailing list
 Chicken-users@nongnu.org
 https://lists.nongnu.org/mailman/listinfo/chicken-users

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] About Chicken Compiler CSC's Option

2014-06-10 Thread blueperson
于 2014年06月10日 18:07, Peter Bex 写道:
 On Tue, Jun 10, 2014 at 05:56:55PM +0800, blueperson wrote:
 Thanks for your help!
 I get a clone use hg clone
 https://code.google.com/r/datenhobel-hato-egg-update/;. But get the same
 error csc: invalid option `-G'  when I make it. I use chicken
 4.8.0.3 in gentoo.
 Have you tried simply removing the -G option?  I don't know what it
 does, and as far as I can tell there never was such an option in the
 first place.  I can't explain why this option is in the Makefile though.

 Perhaps nobody uses the Makefile at all; there's also a hato.setup file,
 which would be used when you simply type chicken-install after
 switching to the directory.  It is an egg, after all, so perhaps it's
 meant to be installed as an egg
I have removed the -G option when I get the error first time, but it
shows another error that seems really strange. It shows:

Syntax error (import): cannot import from undefined module
domain-keys

But I saw the domain-keys.scm really in the directory.

For the second, I found no files looks like hato.setup.

 I'm just a beginner on programming and didn't write much codes. I just
 want to write a MUA first to learn something. For personal reasons I
 choose scheme/chicken, and only found a MTA hato.
 Hato isn't really actively maintained AFAIK, so this might not be the
 best choice to get started; there may be a few roadblocks like this
 you will run into.  An experienced programmer would have few problems
 with this, but as a learning project it may be mostly an exercise in
 frustration.  Of course, if you decide to do it anyway we're here to
 help out, and if you would like some more direct help feel free to drop
 by the IRC channel, it's full of friendly people :)

 Cheers,
 Peter
I just to have a try. Do you have any experiences about chicken projects
that is suitable for me?
This is my first time to use a mailing list, and found all your people
are really friendly.
I'll try the IRC channel.

Really thanks.

blueperson

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] About Chicken Compiler CSC's Option

2014-06-10 Thread Peter Bex
On Tue, Jun 10, 2014 at 07:23:51PM +0800, blueperson wrote:
 于 2014年06月10日 18:07, Peter Bex 写道:
 I have removed the -G option when I get the error first time, but it
 shows another error that seems really strange. It shows:
 
 Syntax error (import): cannot import from undefined module
 domain-keys
 
 But I saw the domain-keys.scm really in the directory.

Hm, that's odd.  I think the Makefile has bitrotted or something.
If you really want to know how it's to be used you'd have to ask
Alex Shinn, Hato's original author.

 For the second, I found no files looks like hato.setup.

There's one in the updated fork which Christian pointed out:
https://code.google.com/r/datenhobel-hato-egg-update/

 I just to have a try. Do you have any experiences about chicken projects
 that is suitable for me?

I don't know, what kind of project you want to do is mostly up to you :)
I'd pick something that doesn't require too many extra libraries, or only
libraries that are actively maintained, so you can focus on the
programming itself.

 This is my first time to use a mailing list, and found all your people
 are really friendly.

We try :)

 I'll try the IRC channel.

Please do, it'll be easier to discuss things there.

Cheers,
Peter
-- 
http://www.more-magic.net

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] About Chicken Compiler CSC's Option

2014-06-10 Thread Christian Kellermann
blueperson blueperson1...@gmail.com writes:

 于 2014年06月10日 18:07, Peter Bex 写道:

 On Tue, Jun 10, 2014 at 05:56:55PM +0800, blueperson wrote:
 Thanks for your help!
 I get a clone use hg clone
 https://code.google.com/r/datenhobel-hato-egg-update/;. But get the same
 error csc: invalid option `-G'  when I make it. I use chicken
 4.8.0.3 in gentoo.
 Have you tried simply removing the -G option?  I don't know what it
 does, and as far as I can tell there never was such an option in the
 first place.  I can't explain why this option is in the Makefile though.

 Perhaps nobody uses the Makefile at all; there's also a hato.setup file,
 which would be used when you simply type chicken-install after
 switching to the directory.  It is an egg, after all, so perhaps it's
 meant to be installed as an egg
 I have removed the -G option when I get the error first time, but it
 shows another error that seems really strange. It shows:
 
 Syntax error (import): cannot import from undefined module
 domain-keys
 
 But I saw the domain-keys.scm really in the directory.

Yeah the Makefile is buggy.

Please find my WIP patch attached to this email.

HTH,

Christian

diff -r d5c309011dea Makefile
--- a/Makefile	Sun Apr 07 12:22:52 2013 +0900
+++ b/Makefile	Tue Jun 10 14:02:49 2014 +0200
@@ -1,13 +1,13 @@
 
 CSC=csc
-CHICKEN_OPTS=-O2 -G
+CHICKEN_OPTS=-O2 
 
-SOURCES=hato-prob.scm hato-mime.scm hato-archive.scm hato-smtp.scm \
-	hato-base64.scm quoted-printable.scm domain-keys.scm \
-	html-parser.scm hato-i3db.scm hato-uri.scm user-env.scm dns.scm \
-	hato-spf.scm hato-pop.scm hato-imap.scm hato-daemon.scm \
+SOURCES=quoted-printable.scm hato-i3db.scm hato-base64.scm hato-mime.scm hato-token.scm hato-prob.scm hato-archive.scm dns.scm hato-smtp.scm \
+	domain-keys.scm \
+	hato-uri.scm user-env.scm \
+	hato-spf.scm hato-md5.scm hato-pop.scm hato-imap.scm let-keywords.scm hato-daemon.scm \
 	hato-db.scm hato-config.scm hato-rfc3028.scm hato-date.scm \
-	hato-nntp.scm hato-filter.scm lru-cache.scm
+	hato-nntp.scm safe-io.scm hato-log.scm hato-utils.scm hato-filter-env.scm let-args.scm safe-eval.scm
 MODULES=$(SOURCES:%.scm=%.so)
 
 INSTALL	= /usr/bin/install -c
@@ -28,7 +28,7 @@
 modules: $(MODULES)
 
 %.so: %.scm
-	$(CSC) $(CHICKEN_OPTS) -s $ 21
+	$(CSC) $(CHICKEN_OPTS) -J -s $ 21
 
 
 
@@ -67,8 +67,8 @@
 	$(INSTALL) hato-mta $(BIN_DIR)
 	$(INSTALL) hato-classify $(BIN_DIR)
 	$(INSTALL) hato-fetch $(BIN_DIR)
-	$(INSTALL) $(MODULES) $(MODULES:%.so=%.exports) \
-	`chicken-setup -repository`
+	$(INSTALL) $(MODULES) $(MODULES:%.so=%.import.scm) \
+	`chicken-install -repository`
 
 uninstall:
 	$(RM) -f $(BIN_DIR)/hato-mta
diff -r d5c309011dea domain-keys.scm
--- a/domain-keys.scm	Sun Apr 07 12:22:52 2013 +0900
+++ b/domain-keys.scm	Tue Jun 10 14:02:49 2014 +0200
@@ -42,13 +42,13 @@
 ;; Convenience routine, returns a complete new MAIL-TEXT string, signed
 ;; as with the same arguments to DOMAIN-KEY-SIGNATURE.
 
-(require-library dns hato-base64 hato-mime)
+(require-library miscmacros dns hato-base64 hato-mime)
 
 (module domain-keys
   (domain-key-verify domain-key-sign domain-key-signature
dkey-normalize-simple dkey-normalize-nofws)
 
-(import scheme chicken extras ports data-structures regex posix dns hato-base64 hato-mime)
+(import scheme chicken extras miscmacros ports data-structures regex posix dns hato-base64 hato-mime)
 
 (define (string-strip-whitespace str)
   (string-translate str  \t))
@@ -225,7 +225,7 @@
   (let ((res
  (base64-encode-string
   (read-string #f in
-(process-wait pid)
+(ignore-values (process-wait pid))
 res
 
 (define (domain-key-signature mail-string private-key-file . o)
diff -r d5c309011dea hato-archive.scm
--- a/hato-archive.scm	Sun Apr 07 12:22:52 2013 +0900
+++ b/hato-archive.scm	Tue Jun 10 14:02:49 2014 +0200
@@ -78,7 +78,7 @@
 
 
 
-(define (set-file-position! fd where . o)
+#;(define (set-file-position! fd where . o)
   (set! (file-position fd) (if (pair? o) (cons where o) where)))
 
 (define (current-seconds-string)
diff -r d5c309011dea hato-classify.scm
--- a/hato-classify.scm	Sun Apr 07 12:22:52 2013 +0900
+++ b/hato-classify.scm	Tue Jun 10 14:02:49 2014 +0200
@@ -3,7 +3,7 @@
 ;; Copyright (c) 2005 Alex Shinn.  All rights reserved.
 ;; BSD-style license: http://www.debian.org/misc/bsd.license
 
-(include let-args.scm)
+(use let-args)
 
 (cond-expand
  (static
diff -r d5c309011dea hato-i3db.scm
--- a/hato-i3db.scm	Sun Apr 07 12:22:52 2013 +0900
+++ b/hato-i3db.scm	Tue Jun 10 14:02:49 2014 +0200
@@ -23,12 +23,12 @@
 
 (import scheme chicken extras posix lolevel srfi-4)
 
-(define (set-file-position! fd where . o)
+#;(define (set-file-position! fd where . o)
   (set! (file-position fd) (if (pair? o) (cons where o) where)))
 
 (define (pointer-u24-ref ptr)
   (bitwise-ior 

Re: [Chicken-users] About Chicken Compiler CSC's Option

2014-06-10 Thread blueperson
于 2014年06月10日 19:50, Peter Bex 写道:
 On Tue, Jun 10, 2014 at 07:23:51PM +0800, blueperson wrote:
 于 2014年06月10日 18:07, Peter Bex 写道:
 I have removed the -G option when I get the error first time, but it
 shows another error that seems really strange. It shows:
 
 Syntax error (import): cannot import from undefined module
 domain-keys
 
 But I saw the domain-keys.scm really in the directory.
 Hm, that's odd.  I think the Makefile has bitrotted or something.
 If you really want to know how it's to be used you'd have to ask
 Alex Shinn, Hato's original author.

 For the second, I found no files looks like hato.setup.
 There's one in the updated fork which Christian pointed out:
 https://code.google.com/r/datenhobel-hato-egg-update/

 I just to have a try. Do you have any experiences about chicken projects
 that is suitable for me?
 I don't know, what kind of project you want to do is mostly up to you :)
 I'd pick something that doesn't require too many extra libraries, or only
 libraries that are actively maintained, so you can focus on the
 programming itself.

 This is my first time to use a mailing list, and found all your people
 are really friendly.
 We try :)

 I'll try the IRC channel.
 Please do, it'll be easier to discuss things there.

 Cheers,
 Peter
Thanks for all your help. I decide to learn the basics of chicken first
because I found I really unconversant on it.

blueperson

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] About Chicken Compiler CSC's Option

2014-06-10 Thread Andy Bennett

Hi,


Yeah the Makefile is buggy.

Please find my WIP patch attached to this email.


This looks more comprehensive than my patch. As I just use hato-smtp.scm I 
get away without building most of it.


I use the datenhobel-hato-egg and my approach is to do make clean 
followed by chicken-install. chicken-install won't install the egg 
properly unless you make clean beforehand so it's worth always doing both 
steps.


Hato also seems to install a version of lru-cache that is incompatible with 
the sql-de-lite egg so I always chicken-install lru-cache after 
installing hato.


For the bits that won't build or I can't be bothered fighting with 
dependencies for on all platforms (i3db), I just comment them out in 
hato.setup. My current commented-out list is:


;; (compile-module hato-i3db)
;; (compile-module hato-imap)
;; (compile-module hato-pop)
;; (compile-module hato-nntp)
;; (compile-module hato-http)
;; (compile-module hato-spf)
;; (compile-module hato-token)
;; (compile-module hato-prob)
;; (compile-module hato-filter-env)
;; (compile-module highlight)
;; (compile-module html-summary)
;; (compile-module wiki-utils)
;; (compile-module wiki-parse)
;; (compile-module wiki-write)
;; (compile-executable hato-fetch)
;; (compile-executable hato-httpd)


As I use chicken-install to build things I don't need to patch the 
Makefile.


If you need any of that stuff then you're probably better off with 
Christian's patch: I just use hato-smtp.scm to send mail out.





Regards,
@ndy

--
andy...@ashurst.eu.org
http://www.ashurst.eu.org/
0x7EBA75FF

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users