From schamp at commonwerx.org Mon Apr 18 15:42:32 2005 From: schamp at commonwerx.org (Sean Champ) Date: Mon, 18 Apr 2005 08:42:32 -0700 Subject: [lgtk-devel] glade Message-ID: <20050418154232.GB10524@tokamak.commonwerx.net> Hi, I was loading lgtk with asdf, but I was running into a problem about an undefined symbol, from the glade libs. After I'd pushed "-lglade-2.0" onto lgtk-asd::*gtklibs* it worked alright. As for how lgtk.asd might be modified, for this -- just to bring this to attention, inasmuch as I put to the email buffer, for it: I think that pkg-config might not be configured to name the glade library, if there would be no explicit argument, provided for it. Supposing that it would be so: I do not know what 'pkg-config' argument would be used, in particular, so in order to make 'pkg-config' emit the special word that would tell ld, "load glade now" Tired of catching flack in "the common lisp community", -- sean From mmommer at common-lisp.net Mon Apr 18 16:32:08 2005 From: mmommer at common-lisp.net (Mario Mommer) Date: Mon, 18 Apr 2005 18:32:08 +0200 Subject: [lgtk-devel] glade In-Reply-To: <20050418154232.GB10524@tokamak.commonwerx.net> References: <20050418154232.GB10524@tokamak.commonwerx.net> Message-ID: Hi Sean, Sean Champ writes: > I was loading lgtk with asdf, but I was running into a problem about > an undefined symbol, from the glade libs. > > After I'd pushed "-lglade-2.0" onto lgtk-asd::*gtklibs* it worked > alright. Can you tell me what symbol? I don't remember merging in any glade stuff, so I'm a bit surprised :-) > As for how lgtk.asd might be modified, for this -- just to bring this > to attention, inasmuch as I put to the email buffer, for it: > > I think that pkg-config might not be configured to name the glade > library, if there would be no explicit argument, provided for it. > > Supposing that it would be so: I do not know what 'pkg-config' > argument would be used, in particular, so in order to make > 'pkg-config' emit the special word that would tell ld, "load glade > now" I presume that pushing "-lglade-2.0" onto lgtk-asd::*gtklibs* might be a decent workaround for the moment. > Tired of catching flack in "the common lisp community", Hm... I don't quite understand that comment, although I'm probably lacking some context. As far as lgtk-devel is concerned, this is flak-free zone, so feel free. Regards, Mario. From schamp at commonwerx.org Tue Apr 19 11:31:50 2005 From: schamp at commonwerx.org (Sean Champ) Date: Tue, 19 Apr 2005 04:31:50 -0700 Subject: [lgtk-devel] glade In-Reply-To: References: <20050418154232.GB10524@tokamak.commonwerx.net> Message-ID: <20050419113149.GA17051@tokamak.commonwerx.net> Hello Mario, There is a diff attached to this email -- such that I would like to propose about the glade-lib handling -- should it be found applicable. It's no huge thing, of course. It seemed, however, like the code -- as available in the diff -- might serve to resolve the issue, somewhat "broadly", such that any other Debian users, at least, might not encounter a quirk about it. * A rundown of the modifications, proposed in the diff: ** Motivation The proposed code does serve to remove the pkg-config library-naming arguments from the functions in which pkg-config command would be called. ** Particulars What the diff'd code does: - defines a *pkgconfig-modules* parameter - sets *pkgconfig-modules* to be used (when pkg-config is executed), for the identification of loader/header directives that are required for the respective load/compile operation. ** Issues There is an issue about it, in the fact that the glade lib does not need not be named (in the call to pkg-config), when wrappers.c is compiled, but yet, with the diff, the glade lib would be named, as so, when wrappers.c is compiled -- the same, then, as when ld would be called There is a workaround for resolving this, but one manner of the workaround requires that some more code wold be written, for extending ASDF. I've written up a little incidental proposal for such; I expect that it may be not ineresting to anyone but myself, as yet. However, just to in case: http://gimbal.paunix.org/tmp/projects/README.asdf.foreign-c-interface.txt The "proposal" part of it, about ASDF, starts at about line 163 of the file. I am sure, it's may be not easy to read. I can, however, accept questions and/or suggestiosn, gladly, about any part or detail of it. I know that it should probably be reformated as DocBook, that file. For now, though, it is officially stopped, in its first revision -- that proposal for a rather incidental extension of ASDF; I would be open for any questions/comments, about it, however. The rest of this is like "a normal response" On 04-18-05, Mario Mommer wrote: > > Hi Sean, > > Sean Champ writes: > > I was loading lgtk with asdf, but I was running into a problem about > > an undefined symbol, from the glade libs. > > > > After I'd pushed "-lglade-2.0" onto lgtk-asd::*gtklibs* it worked > > alright. > > Can you tell me what symbol? I don't remember merging in any glade > stuff, so I'm a bit surprised :-) It was glade_xml_signal_connect_data > > > Tired of catching flack in "the common lisp community", > > Hm... I don't quite understand that comment, although I'm probably > lacking some context. As far as lgtk-devel is concerned, this is > flak-free zone, so feel free. Certainly, I can understand if that statement, mine, would not have been understandable. I regard it, now, as it having been a response - in some vague terms - after what I have encountered in some community, such that has coincided about Common LISP -- such that I may expect to encounter again, ever, and "deal with it" though I will. Sometimes, such has been one heck of a put-off, about this simple programming language -- some of the pomp and attitude that I have noticed, of anyone, coinciding about Common LISP, and of course, little if any of it is actually about the language, or programming, or anything technical, anything practical. Anyhow, if while I will just stay away from a channel in IRC and not bother with c.l.l, then I bet, I'll stop thinking as if the Common LISP community was going to be only productive of (mild) strife, hassles, and any general annoyance, to me -- among people, all code still being "a common norm", of course. Anyhow, hasta ----- Sean Below: The diff (unidiff'd), for the modifications proposed upon lgtk.asd Index: lgtk.asd =================================================================== RCS file: /project/lgtk/cvsroot/lgtk/lgtk.asd,v retrieving revision 1.10 diff -p -u -u -r1.10 lgtk.asd --- lgtk.asd 13 May 2004 19:33:49 -0000 1.10 +++ lgtk.asd 19 Apr 2005 08:59:57 -0000 @@ -12,6 +12,11 @@ (defvar *ccompiler* "cc") + +;; list of library/module names to provide to pkgconfig +(defparameter *pkgconfig-modules* '("gtk+-2.0" "ligblade-2.0")) + + ;; Split a string at whitespace. (defun splitatspc (str) (labels ((whitespace-p (c) @@ -32,10 +37,10 @@ (cdr buf)))) (defun pkg-config-lib-string () - #+sbcl (run-program "pkg-config" '("--libs" "gtk+-2.0") + #+sbcl (run-program "pkg-config" (list* "--libs" *pkgconfig-modules*) :search t :output :stream) - #+cmu (ext:run-program "pkg-config" '("--libs" "gtk+-2.0") + #+cmu (ext:run-program "pkg-config" (list* "--libs" *pkgconfig-modules*) :output :stream)) ;; Get the list of libraries. @@ -55,10 +60,10 @@ (defun pkg-config-cflags-string () - #+sbcl (run-program "pkg-config" '("--cflags" "gtk+-2.0") + #+sbcl (run-program "pkg-config" (list* "--cflags" *pkgconfig-modules*) :search t :output :stream) - #+cmu (ext:run-program "pkg-config" '("--cflags" "gtk+-2.0") + #+cmu (ext:run-program "pkg-config" (list* "--cflags" *pkgconfig-modules*) :output :stream)) (defun get-gtk-cflags () From dk778899 at mail.runan.ha.cn Thu Apr 21 01:32:33 2005 From: dk778899 at mail.runan.ha.cn (Naren) Date: Thu, 21 Apr 2005 09:32:33 +0800 Subject: [lgtk-devel] Re: Valid Advertisement Message-ID: <20050421013029.E6ADB886F9@common-lisp.net> To lgtk-devel at common-lisp.net: E-mail is the best grow tool. We offer Marketing with quality service. 1. Target Email list We can provide target email list you need, which are compiled only on your order. We will customize your client email list. * We have millions of lists in a wide variety of categories. 2. Send out Targeted list for you We can send your email message to your target clients! We will customize your email list and send your message for you. For details: www.promotecompany.com * We also offer Web Hosting & mail server. Regards! Naren Marketing Team sales at promotecompany.com No and Thanks: ToLi at MSN.com?subject=lgtk-devel at common-lisp.net From dk778899 at mail.runan.ha.cn Thu Apr 21 01:34:00 2005 From: dk778899 at mail.runan.ha.cn (Naren) Date: Thu, 21 Apr 2005 09:34:00 +0800 Subject: [lgtk-devel] Re: Valid Advertisement Message-ID: <20050421013200.5E5C5886F9@common-lisp.net> To lgtk-devel at common-lisp.net: E-mail is the best grow tool. We offer Marketing with quality service. 1. Target Email list We can provide target email list you need, which are compiled only on your order. We will customize your client email list. * We have millions of lists in a wide variety of categories. 2. Send out Targeted list for you We can send your email message to your target clients! We will customize your email list and send your message for you. For details: www.promotecompany.com * We also offer Web Hosting & mail server. Regards! Naren Marketing Team sales at promotecompany.com No and Thanks: ToLi at MSN.com?subject=lgtk-devel at common-lisp.net From schamp at commonwerx.org Mon Apr 25 13:19:43 2005 From: schamp at commonwerx.org (Sean Champ) Date: Mon, 25 Apr 2005 06:19:43 -0700 Subject: [lgtk-devel] glade -- typo fixed in diff In-Reply-To: <20050419113149.GA17051@tokamak.commonwerx.net> References: <20050418154232.GB10524@tokamak.commonwerx.net> <20050419113149.GA17051@tokamak.commonwerx.net> Message-ID: <20050425131943.GA1553@tokamak.commonwerx.net> Hello, At the end of the previous email, I had included a small diff. The diffed code, simply, was made such that it would move the list of pkconfig module names, out from within the pkgconfig-calling functions, and such that it would add "libglade-2.0" to the list (discovered, heh) of module names. Begging pardon, but the diff contained a typo -- "ligblade" instead of "libglade", it was. The typo has been fixed. I'll excuse myself, for not having loaded/tested the affected asd file, before having sent the diff -- it seemed like it would work, as intended, but there was the tpyo, there. Perhaps I will "meditate on unit testign", also. The diff is repeated, below, should it be deemed to be of use. -- Sean Champ schamp at commonwerx.org Index: lgtk.asd =================================================================== RCS file: /project/lgtk/cvsroot/lgtk/lgtk.asd,v retrieving revision 1.10 diff -p -u -u -r1.10 lgtk.asd --- lgtk.asd 13 May 2004 19:33:49 -0000 1.10 +++ lgtk.asd 25 Apr 2005 13:06:13 -0000 @@ -12,6 +12,11 @@ (defvar *ccompiler* "cc") + +;; list of library/module names to provide to pkgconfig +(defparameter *pkgconfig-modules* '("gtk+-2.0" "libglade-2.0")) + + ;; Split a string at whitespace. (defun splitatspc (str) (labels ((whitespace-p (c) @@ -32,10 +37,10 @@ (cdr buf)))) (defun pkg-config-lib-string () - #+sbcl (run-program "pkg-config" '("--libs" "gtk+-2.0") + #+sbcl (run-program "pkg-config" (list* "--libs" *pkgconfig-modules*) :search t :output :stream) - #+cmu (ext:run-program "pkg-config" '("--libs" "gtk+-2.0") + #+cmu (ext:run-program "pkg-config" (list* "--libs" *pkgconfig-modules*) :output :stream)) ;; Get the list of libraries. @@ -55,10 +60,10 @@ (defun pkg-config-cflags-string () - #+sbcl (run-program "pkg-config" '("--cflags" "gtk+-2.0") + #+sbcl (run-program "pkg-config" (list* "--cflags" *pkgconfig-modules*) :search t :output :stream) - #+cmu (ext:run-program "pkg-config" '("--cflags" "gtk+-2.0") + #+cmu (ext:run-program "pkg-config" (list* "--cflags" *pkgconfig-modules*) :output :stream)) (defun get-gtk-cflags () From mmommer at common-lisp.net Tue Apr 26 15:11:31 2005 From: mmommer at common-lisp.net (Mario Mommer) Date: Tue, 26 Apr 2005 17:11:31 +0200 Subject: [lgtk-devel] glade -- typo fixed in diff In-Reply-To: <20050425131943.GA1553@tokamak.commonwerx.net> References: <20050418154232.GB10524@tokamak.commonwerx.net> <20050419113149.GA17051@tokamak.commonwerx.net> <20050425131943.GA1553@tokamak.commonwerx.net> Message-ID: Hi, Sean Champ writes: > At the end of the previous email, I had included a small diff. The > diffed code, simply, was made such that it would move the list of > pkconfig module names, out from within the pkgconfig-calling > functions, and such that it would add "libglade-2.0" to the list > (discovered, heh) of module names. > > Begging pardon, but the diff contained a typo -- "ligblade" instead of > "libglade", it was. > > The typo has been fixed. I'll excuse myself, for not having > loaded/tested the affected asd file, before having sent the diff -- it > seemed like it would work, as intended, but there was the tpyo, > there. Perhaps I will "meditate on unit testign", also. > > The diff is repeated, below, should it be deemed to be of use. It looks good. I'll merge it in later today. Thanks for the patch! Regards, Mario. From mmommer at common-lisp.net Thu Apr 28 18:14:17 2005 From: mmommer at common-lisp.net (Mario S. Mommer) Date: Thu, 28 Apr 2005 20:14:17 +0200 Subject: [lgtk-devel] glade -- typo fixed in diff In-Reply-To: <20050425131943.GA1553@tokamak.commonwerx.net> (Sean Champ's message of "Mon, 25 Apr 2005 06:19:43 -0700") References: <20050418154232.GB10524@tokamak.commonwerx.net> <20050419113149.GA17051@tokamak.commonwerx.net> <20050425131943.GA1553@tokamak.commonwerx.net> Message-ID: <87is267oqu.fsf@darkstar.example.net> Sean Champ writes: > The diff is repeated, below, should it be deemed to be of use. patch applied. Thanks! Regards, Mario.