You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(44) |
Nov
(18) |
Dec
(3) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(12) |
Feb
(5) |
Mar
(8) |
Apr
(51) |
May
(1) |
Jun
|
Jul
(3) |
Aug
(2) |
Sep
(8) |
Oct
(1) |
Nov
(53) |
Dec
(17) |
2004 |
Jan
(20) |
Feb
(18) |
Mar
(11) |
Apr
(2) |
May
(1) |
Jun
(4) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2005 |
Jan
|
Feb
|
Mar
(6) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(3) |
Oct
|
Nov
|
Dec
|
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
(6) |
2007 |
Jan
(1) |
Feb
(3) |
Mar
(2) |
Apr
|
May
|
Jun
(1) |
Jul
(1) |
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
From: Justin Y. <ju...@sk...> - 2003-04-16 14:25:24
|
For the apache & similar parsers, I've currently got the following XML: <apache-style> <property> <name>Hostname</name> <value>myhost.com</value> </property> <section> <name>Directory</name> <value>/</value> ... </section> <property> <name>LoadModule</name> <value>cgi_module</value> <value>modules/mod_cgi.so</value> </property> ... </apache-style> The main issue is how to handle multiple value tags. In most (but not all) cases, the order of the arguments to the various directives is important, as each position has a different meaning, such as with LoadModule. There needs to be a way to preserve this in the XML. With the passwd and group files, we use unique XML tags for each column in the file. The only other option, which doesn't seem very good, is to put a position attribute on each value tag, i.e.: <property> <name>LoadModule</name> <value pos="0">cgi_module</value> <value pos="1">modules/mod_cgi.so</value> </property> The only real advantage of this approach is that everything is still a "value" tag. If we use unique XML tags, the problem is that since each directive has a different number and type of arguments, they won't be consistent as they are with group and passwd, i.e.: <property> <name>LoadModule</name> <modulename>cgi_module</modulename> <modulepath>modules/mod_cgi.so</modulepath> </property> <property> <name>LogFormat</name> <logstring quoting="2">%{Referer}i -> %U</logstring> <identifier>agent</identifier> </property> In this case, we would have some problems: 1) not have a value tag to display in UI 2) can't make a "default" form that works for all directives To solve this, there are a few solutions I've thought of: A) make the parameter tags (modulename, modulepath, logstring, identifier, etc.) extend the type "value" and the UIs look for that instead of a "value" tag. This solves problem #1, although the UI has to recognize that there could be >1 tag of type value. B) copy some of all of the parameters into a read-only value tag, so the user can see the current value (although not displayed in a pretty way), but have to double-click on the form to edit the value, or even better do this automatically as is currently done with the multi-value control. This solves problem #1. C) give up on default form, make custom form for each multi-valued directive & use solution B to handle values. A bad solution to #2 D) a variation on solution A where the first parameter tag extends the type "value1", the second "value2", etc. value1, value2, value3, etc. would then extend value. This way the UI has something of type "value" to display for the value if you just want to display the first, or you can use solution B to combine all of them into a fake read-only value. This solves #1, and provided a default form could be made which only shows each of value1 thru valueN if they exist (otherwise no control would be shown at all for the missing valueN's). This is again a slight variation on solution B but is adds the ability to locate a particular parameter by its position. E) don't use custom tags for the parameters, just use value1, value2, value3, etc. This makes things simpler, but for humans wanting to locate the "identifier" for a LogFormat directive, it is more difficult because they need to know its in a value2 tag instead of a "identifier" tag, i.e.: resolve_path(".apache-style.logformat.identifier") vs. resolve_path(".apache-style.logformat.value2") I think that solution D seems the best for this problem and can't come up with anything better, what do you think? An additional thing I thought of (sorry this is getting so long) is that apache often has multiple directives (such as LoadModule or LogFormat) in a row. How will we address them using resolve_path or similar API calls? Right now resolve_path just returns the first match it finds right? I can't recall off hand, but I think XPath has a syntax for requesting all LogFormat directives, such as resolve_path(".apache-style.logformat[ALL]"), or just a particular one, such as resolve_path(".apache-style.logformat[2]"). I know thats not the right syntax, but it seems like we'll need something similar for apache. Justin -- SkiingYAC Custom Solutions http://www.SkiingYAC.com |
From: Justin Y. <ju...@sk...> - 2003-04-16 13:12:47
|
The extending howto is now up to date on the website. You can view the new section at http://config4gnu.sf.net/docs/extending/entities.html On Tue, 15 Apr 2003 20:50:52 -0400 "Jason Long" <jl...@me...> wrote: > I added some initial information on type definitions to the extending > HOWTO in extending.xml. You can check it out in DocBook format from > the website repository, or just wait for Justin to run a website > update. > > Jason Long > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Config4gnu-developer mailing list > Con...@li... > https://lists.sourceforge.net/lists/listinfo/config4gnu-developer > > -- SkiingYAC Custom Solutions http://www.SkiingYAC.com |
From: Jason L. <jl...@me...> - 2003-04-16 00:46:41
|
I added some initial information on type definitions to the extending HOWTO in extending.xml. You can check it out in DocBook format from the website repository, or just wait for Justin to run a website update. Jason Long |
From: Christian L P. <pe...@co...> - 2003-04-15 18:15:36
|
Justin, The src tar ball compiled just fine. Okay now what? No just kidding. I am back to reading the docs. Thank you Jason and Justin. -- Christian Pearce www.commnav.com On Tue, 15 Apr 2003 13:41:32 -0400, Justin Yackoski wrote: > > Christian, > > Yeah you should just be able to compile the "release" without needing to upgrade SWIG. Its more of what sourceforge considers a release than what we'd consider a release. Really, I just did a make dist in the CVS tree and uploaded the tarball. So maybe its more like a snapshot. Its still all sources, no binaries, the main difference is that you can compile it without SWIG at all. > > Justin > > On Tue, 15 Apr 2003 11:46:21 EDT > "Christian L Pearce " <pe...@co...> wrote: > > > I am using SWIG 1.1. Stock Red Hat 9. You should add this to the > > requirements in the INSTALL file. I will try to find an RPM for the > > newer version or... > > > > A release? Awesome. I didn't think you guys were going to put > > binaries out for a while. What methods do you use for packaging? > > > > Looks like you fixed the Reply mode on the list. That is great. > > > > -- > > Christian Pearce > > www.commnav.com > > > > > > On Tue, 15 Apr 2003 11:37:00 -0400, Justin Yackoski wrote: > > > > > > Christian, > > > > > > You wouldn't be chance be using SWIG 1.1? I searched google and > > > people seem to be reporting that same error on line 292 with SWIG > > > 1.1. We've been using 1.3.16, and I seem to recall some sort of > > > problem with SWIG 1.1 we had that made us use 1.3.x. > > > > > > I'd suggest either upgrading SWIG, or downloading a release I just > > > added which has the SWIG stuff already generated. To download the > > > release, go to > > > http://sourceforge.net/project/showfiles.php?group_id=62306 > > > > > > Justin > > > > > > > > > On Tue, 15 Apr 2003 09:30:24 EDT > > > "Christian L Pearce " <pe...@co...> wrote: > > > > > > > Ok I see why you are using gcc 2.95. I updated my code. > > > > Everything compiled with the new fixes you added. I am now > > > > running into a problem with the SWIG part of the project. I > > > > haven't invested any time into understanding the problem. I > > > > figured I would post it to see if you guys any and starting ideas > > > > for me. > > > > > > > > g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" > > > > -DPACKAGE_VERSION=\"\"-DPACKAGE_STRING=\"\" > > > > -DPACKAGE_BUGREPORT=\"\"-DPACKAGE=\"config4gnu\" > > > > -DVERSION=\"0.1.8\" -DSTDC_HEADERS=1-DHAVE_SYS_TYPES_H=1 > > > > -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1-DHAVE_STRING_H=1 > > > > -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1-DHAVE_INTTYPES_H=1 > > > > -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1-DHAVE_DLFCN_H=1 -I. -I. > > > > -I/usr/include/glib-2.0-I/usr/lib/glib-2.0/include > > > > -I/usr/lib/sigc++-1.2/include-I/usr/include/sigc++-1.2 > > > > -I/usr/local/xerces-c-LINUX-c++-2_2_0//include > > > > -I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE > > > > -I../../../src/libconfig4gnu -g -O2 -c config4gnu_wrap.cxx-MT > > > > config4gnu_wrap.lo -MD -MP -MF .deps/config4gnu_wrap.TPlo -fPIC > > > > -DPIC-o .libs/config4gnu_wrap.lo config4gnu_wrap.cxx: In function > > > > `char* SWIG_GetPtr(SV*, void**, char*)': config4gnu_wrap.cxx:292: > > > > `sv_undef' undeclared (first use this function) > > > > config4gnu_wrap.cxx:292: (Each undeclared identifier is reported > > > > only once for > > > > each function it appears in.) > > > > config4gnu_wrap.cxx: In function `void _swig_create_magic(SV*, > > > > char*, int > > > > (*)(SV*, MAGIC*), int (*)(SV*, MAGIC*))': > > > > config4gnu_wrap.cxx:411: invalid conversion from `int (*)(SV*, > > > > MAGIC*)' to `int > > > > (*)(PerlInterpreter*, SV*, MAGIC*)' > > > > config4gnu_wrap.cxx:412: invalid conversion from `int (*)(SV*, > > > > MAGIC*)' to `int > > > > (*)(PerlInterpreter*, SV*, MAGIC*)' > > > > config4gnu_wrap.cxx: In function `int > > > > _wrap_set_CfgBuiltin_PRIMITIVE(SV*, > > > > MAGIC*)': > > > > config4gnu_wrap.cxx:469: `CfgBuiltin' undeclared (first use this > > > > function) config4gnu_wrap.cxx:469: parse error before `::' token > > > > config4gnu_wrap.cxx: In function `int > > > > _wrap_val_CfgBuiltin_PRIMITIVE(SV*, > > > > MAGIC*)': > > > > config4gnu_wrap.cxx:480: parse error before `::' token > > > > config4gnu_wrap.cxx: In function `int > > > > _wrap_set_CfgBuiltin_LINK(SV*, MAGIC*)': config4gnu_wrap.cxx:494: > > > > parse error before `::' token config4gnu_wrap.cxx: In function > > > > `int _wrap_val_CfgBuiltin_LINK(SV*, MAGIC*)': > > > > config4gnu_wrap.cxx:505: parse error before `::' token > > > > config4gnu_wrap.cxx: In function `int > > > > _wrap_set_CfgBuiltin_LIST(SV*, MAGIC*)': config4gnu_wrap.cxx:519: > > > > parse error before `::' token config4gnu_wrap.cxx: In function > > > > `int _wrap_val_CfgBuiltin_LIST(SV*, MAGIC*)': > > > > config4gnu_wrap.cxx:530: parse error before `::' token > > > > config4gnu_wrap.cxx: In function `int > > > > _wrap_set_CfgBuiltin_NORMAL(SV*, > > > > MAGIC*)': > > > > config4gnu_wrap.cxx:544: parse error before `::' token > > > > config4gnu_wrap.cxx: In function `int > > > > _wrap_val_CfgBuiltin_NORMAL(SV*, > > > > MAGIC*)': > > > > config4gnu_wrap.cxx:555: parse error before `::' token > > > > config4gnu_wrap.cxx: In function `int > > > > _wrap_set_CfgBuiltin_IMPORT(SV*, > > > > MAGIC*)': > > > > config4gnu_wrap.cxx:569: parse error before `::' token > > > > config4gnu_wrap.cxx: In function `int > > > > _wrap_val_CfgBuiltin_IMPORT(SV*, > > > > MAGIC*)': > > > > config4gnu_wrap.cxx:580: parse error before `::' token > > > > config4gnu_wrap.cxx: In function `int > > > > _wrap_set_CfgBuiltin_SINGLE_LINE_STRING(SV*, MAGIC*)': > > > > config4gnu_wrap.cxx:594: parse error before `::' token > > > > config4gnu_wrap.cxx: In function `int > > > > _wrap_val_CfgBuiltin_SINGLE_LINE_STRING(SV*, MAGIC*)': > > > > config4gnu_wrap.cxx:605: parse error before `::' token > > > > config4gnu_wrap.cxx: In function `int > > > > _wrap_set_CfgBuiltin_BOOLEAN(SV*, > > > > MAGIC*)': > > > > config4gnu_wrap.cxx:619: parse error before `::' token > > > > config4gnu_wrap.cxx: In function `int > > > > _wrap_val_CfgBuiltin_BOOLEAN(SV*, > > > > MAGIC*)': > > > > config4gnu_wrap.cxx:630: parse error before `::' token > > > > config4gnu_wrap.cxx: In function `int > > > > _wrap_set_CfgBuiltin_PROPERTY(SV*, > > > > MAGIC*)': > > > > config4gnu_wrap.cxx:644: parse error before `::' token > > > > config4gnu_wrap.cxx: In function `int > > > > _wrap_val_CfgBuiltin_PROPERTY(SV*, > > > > MAGIC*)': > > > > config4gnu_wrap.cxx:655: parse error before `::' token > > > > config4gnu_wrap.cxx: In function `int > > > > _wrap_set_CfgBuiltin_SECTION(SV*, > > > > MAGIC*)': > > > > config4gnu_wrap.cxx:669: parse error before `::' token > > > > config4gnu_wrap.cxx: In function `int > > > > _wrap_val_CfgBuiltin_SECTION(SV*, > > > > MAGIC*)': > > > > config4gnu_wrap.cxx:680: parse error before `::' token > > > > config4gnu_wrap.cxx: In function `void > > > > boot_config4gnu(PerlInterpreter*, CV*)': config4gnu_wrap.cxx:1507: > > > > declaration of C function `void > > > > boot_config4gnu(PerlInterpreter*, CV*)' conflicts with > > > > config4gnu_wrap.cxx:426: previous declaration `void > > > > boot_config4gnu(CV*)' here config4gnu_wrap.cxx: In function `void > > > > boot_config4gnu(PerlInterpreter*, CV*)': config4gnu_wrap.cxx:1575: > > > > `sv_yes' undeclared (first use this function) make[3]: *** > > > > [config4gnu_wrap.lo] Error 1 make[3]: Leaving directory > > > > `/home/pearcec/config4gnu/src/wrappers/perl5' make[2]: *** > > > > [all-recursive] Error 1 make[2]: Leaving directory > > > > `/home/pearcec/config4gnu/src/wrappers' make[1]: *** > > > > [all-recursive] Error 1 make[1]: Leaving directory > > > > `/home/pearcec/config4gnu/src' make: *** [all-recursive] Error 1 > > > > > > > > -- > > > > Christian Pearce > > > > www.commnav.com > > > > > > > > > > > > On Mon, 14 Apr 2003 09:32:23 -0400, Jason Long wrote: > > > > > > > > > > I think gcc 3+ is less backwards compatible with its header > > > > > files. Mainly I have to go through the source and make sure > > > > > every time I use a standard template library class I qualify it > > > > > using the std namespace. > > > > > > > > > > We're currently using 2.95 because that's what Gentoo was using > > > > > when we built our computers. Switching would require recompiling > > > > > all of our dependent libraries... libsigc++, glibmm, gtkmm, > > > > > Xerces, etc. > > > > > > > > > > I fixed the error that you mentioned in your email. I wsa able > > > > > to verify that it compiles with gcc 3.2, but I can only assume > > > > > it will correctly link against other libraries compiled with gcc > > > > > 3+. > > > > > > > > > > Jason > > > > > > > > > > Index: src/libconfig4gnu/BackendHelper.cc > > > > > =============================================================== > > > > > ==== RCS file: > > > > > /cvsroot/config4gnu/config4gnu/src/libconfig4gnu/BackendHelper. > > > > > cc,v retrieving revision 1.10 > > > > > diff -u -p -r1.10 BackendHelper.cc > > > > > --- src/libconfig4gnu/BackendHelper.cc 11 Apr 2003 14:35:14 -0000 > > > > > 1.10+++ src/libconfig4gnu/BackendHelper.cc 14 Apr 2003 13:23:50 > > > > > -0000@@ -56,9 +56,9 @@ Cfg::load_config_file(std::string filena > > > > > void > > > > > Cfg::save_config_file(std::string output, std::string filename) > > > > > { > > > > > - ofstream file; > > > > > + std::ofstream file; > > > > > filename = rewrite_filename(filename); > > > > > - file.open(filename.c_str(), ios::out); > > > > > + file.open(filename.c_str(), std::ios::out); > > > > > assert(file.is_open()); > > > > > > > > > > file << output; > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > This sf.net email is sponsored by:ThinkGeek > > > > Welcome to geek heaven. > > > > http://thinkgeek.com/sf > > > > _______________________________________________ > > > > Config4gnu-developer mailing list > > > > Con...@li... > > > > https://lists.sourceforge.net/lists/listinfo/config4gnu-developer > > > > > > > > > > > > > > > > > -- > > > SkiingYAC > > > Custom Solutions > > > http://www.SkiingYAC.com > > > > > > > > > ------------------------------------------------------- > > > This sf.net email is sponsored by:ThinkGeek > > > Welcome to geek heaven. > > > http://thinkgeek.com/sf > > > _______________________________________________ > > > Config4gnu-developer mailing list > > > Con...@li... > > > https://lists.sourceforge.net/lists/listinfo/config4gnu-developer > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Config4gnu-developer mailing list > > Con...@li... > > https://lists.sourceforge.net/lists/listinfo/config4gnu-developer > > > > > > > -- > SkiingYAC > Custom Solutions > http://www.SkiingYAC.com > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Config4gnu-developer mailing list > Con...@li... > https://lists.sourceforge.net/lists/listinfo/config4gnu-developer > |
From: Justin Y. <ju...@sk...> - 2003-04-15 17:42:07
|
Christian, Yeah you should just be able to compile the "release" without needing to upgrade SWIG. Its more of what sourceforge considers a release than what we'd consider a release. Really, I just did a make dist in the CVS tree and uploaded the tarball. So maybe its more like a snapshot. Its still all sources, no binaries, the main difference is that you can compile it without SWIG at all. Justin On Tue, 15 Apr 2003 11:46:21 EDT "Christian L Pearce " <pe...@co...> wrote: > I am using SWIG 1.1. Stock Red Hat 9. You should add this to the > requirements in the INSTALL file. I will try to find an RPM for the > newer version or... > > A release? Awesome. I didn't think you guys were going to put > binaries out for a while. What methods do you use for packaging? > > Looks like you fixed the Reply mode on the list. That is great. > > -- > Christian Pearce > www.commnav.com > > > On Tue, 15 Apr 2003 11:37:00 -0400, Justin Yackoski wrote: > > > > Christian, > > > > You wouldn't be chance be using SWIG 1.1? I searched google and > > people seem to be reporting that same error on line 292 with SWIG > > 1.1. We've been using 1.3.16, and I seem to recall some sort of > > problem with SWIG 1.1 we had that made us use 1.3.x. > > > > I'd suggest either upgrading SWIG, or downloading a release I just > > added which has the SWIG stuff already generated. To download the > > release, go to > > http://sourceforge.net/project/showfiles.php?group_id=62306 > > > > Justin > > > > > > On Tue, 15 Apr 2003 09:30:24 EDT > > "Christian L Pearce " <pe...@co...> wrote: > > > > > Ok I see why you are using gcc 2.95. I updated my code. > > > Everything compiled with the new fixes you added. I am now > > > running into a problem with the SWIG part of the project. I > > > haven't invested any time into understanding the problem. I > > > figured I would post it to see if you guys any and starting ideas > > > for me. > > > > > > g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" > > > -DPACKAGE_VERSION=\"\"-DPACKAGE_STRING=\"\" > > > -DPACKAGE_BUGREPORT=\"\"-DPACKAGE=\"config4gnu\" > > > -DVERSION=\"0.1.8\" -DSTDC_HEADERS=1-DHAVE_SYS_TYPES_H=1 > > > -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1-DHAVE_STRING_H=1 > > > -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1-DHAVE_INTTYPES_H=1 > > > -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1-DHAVE_DLFCN_H=1 -I. -I. > > > -I/usr/include/glib-2.0-I/usr/lib/glib-2.0/include > > > -I/usr/lib/sigc++-1.2/include-I/usr/include/sigc++-1.2 > > > -I/usr/local/xerces-c-LINUX-c++-2_2_0//include > > > -I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE > > > -I../../../src/libconfig4gnu -g -O2 -c config4gnu_wrap.cxx-MT > > > config4gnu_wrap.lo -MD -MP -MF .deps/config4gnu_wrap.TPlo -fPIC > > > -DPIC-o .libs/config4gnu_wrap.lo config4gnu_wrap.cxx: In function > > > `char* SWIG_GetPtr(SV*, void**, char*)': config4gnu_wrap.cxx:292: > > > `sv_undef' undeclared (first use this function) > > > config4gnu_wrap.cxx:292: (Each undeclared identifier is reported > > > only once for > > > each function it appears in.) > > > config4gnu_wrap.cxx: In function `void _swig_create_magic(SV*, > > > char*, int > > > (*)(SV*, MAGIC*), int (*)(SV*, MAGIC*))': > > > config4gnu_wrap.cxx:411: invalid conversion from `int (*)(SV*, > > > MAGIC*)' to `int > > > (*)(PerlInterpreter*, SV*, MAGIC*)' > > > config4gnu_wrap.cxx:412: invalid conversion from `int (*)(SV*, > > > MAGIC*)' to `int > > > (*)(PerlInterpreter*, SV*, MAGIC*)' > > > config4gnu_wrap.cxx: In function `int > > > _wrap_set_CfgBuiltin_PRIMITIVE(SV*, > > > MAGIC*)': > > > config4gnu_wrap.cxx:469: `CfgBuiltin' undeclared (first use this > > > function) config4gnu_wrap.cxx:469: parse error before `::' token > > > config4gnu_wrap.cxx: In function `int > > > _wrap_val_CfgBuiltin_PRIMITIVE(SV*, > > > MAGIC*)': > > > config4gnu_wrap.cxx:480: parse error before `::' token > > > config4gnu_wrap.cxx: In function `int > > > _wrap_set_CfgBuiltin_LINK(SV*, MAGIC*)': config4gnu_wrap.cxx:494: > > > parse error before `::' token config4gnu_wrap.cxx: In function > > > `int _wrap_val_CfgBuiltin_LINK(SV*, MAGIC*)': > > > config4gnu_wrap.cxx:505: parse error before `::' token > > > config4gnu_wrap.cxx: In function `int > > > _wrap_set_CfgBuiltin_LIST(SV*, MAGIC*)': config4gnu_wrap.cxx:519: > > > parse error before `::' token config4gnu_wrap.cxx: In function > > > `int _wrap_val_CfgBuiltin_LIST(SV*, MAGIC*)': > > > config4gnu_wrap.cxx:530: parse error before `::' token > > > config4gnu_wrap.cxx: In function `int > > > _wrap_set_CfgBuiltin_NORMAL(SV*, > > > MAGIC*)': > > > config4gnu_wrap.cxx:544: parse error before `::' token > > > config4gnu_wrap.cxx: In function `int > > > _wrap_val_CfgBuiltin_NORMAL(SV*, > > > MAGIC*)': > > > config4gnu_wrap.cxx:555: parse error before `::' token > > > config4gnu_wrap.cxx: In function `int > > > _wrap_set_CfgBuiltin_IMPORT(SV*, > > > MAGIC*)': > > > config4gnu_wrap.cxx:569: parse error before `::' token > > > config4gnu_wrap.cxx: In function `int > > > _wrap_val_CfgBuiltin_IMPORT(SV*, > > > MAGIC*)': > > > config4gnu_wrap.cxx:580: parse error before `::' token > > > config4gnu_wrap.cxx: In function `int > > > _wrap_set_CfgBuiltin_SINGLE_LINE_STRING(SV*, MAGIC*)': > > > config4gnu_wrap.cxx:594: parse error before `::' token > > > config4gnu_wrap.cxx: In function `int > > > _wrap_val_CfgBuiltin_SINGLE_LINE_STRING(SV*, MAGIC*)': > > > config4gnu_wrap.cxx:605: parse error before `::' token > > > config4gnu_wrap.cxx: In function `int > > > _wrap_set_CfgBuiltin_BOOLEAN(SV*, > > > MAGIC*)': > > > config4gnu_wrap.cxx:619: parse error before `::' token > > > config4gnu_wrap.cxx: In function `int > > > _wrap_val_CfgBuiltin_BOOLEAN(SV*, > > > MAGIC*)': > > > config4gnu_wrap.cxx:630: parse error before `::' token > > > config4gnu_wrap.cxx: In function `int > > > _wrap_set_CfgBuiltin_PROPERTY(SV*, > > > MAGIC*)': > > > config4gnu_wrap.cxx:644: parse error before `::' token > > > config4gnu_wrap.cxx: In function `int > > > _wrap_val_CfgBuiltin_PROPERTY(SV*, > > > MAGIC*)': > > > config4gnu_wrap.cxx:655: parse error before `::' token > > > config4gnu_wrap.cxx: In function `int > > > _wrap_set_CfgBuiltin_SECTION(SV*, > > > MAGIC*)': > > > config4gnu_wrap.cxx:669: parse error before `::' token > > > config4gnu_wrap.cxx: In function `int > > > _wrap_val_CfgBuiltin_SECTION(SV*, > > > MAGIC*)': > > > config4gnu_wrap.cxx:680: parse error before `::' token > > > config4gnu_wrap.cxx: In function `void > > > boot_config4gnu(PerlInterpreter*, CV*)': config4gnu_wrap.cxx:1507: > > > declaration of C function `void > > > boot_config4gnu(PerlInterpreter*, CV*)' conflicts with > > > config4gnu_wrap.cxx:426: previous declaration `void > > > boot_config4gnu(CV*)' here config4gnu_wrap.cxx: In function `void > > > boot_config4gnu(PerlInterpreter*, CV*)': config4gnu_wrap.cxx:1575: > > > `sv_yes' undeclared (first use this function) make[3]: *** > > > [config4gnu_wrap.lo] Error 1 make[3]: Leaving directory > > > `/home/pearcec/config4gnu/src/wrappers/perl5' make[2]: *** > > > [all-recursive] Error 1 make[2]: Leaving directory > > > `/home/pearcec/config4gnu/src/wrappers' make[1]: *** > > > [all-recursive] Error 1 make[1]: Leaving directory > > > `/home/pearcec/config4gnu/src' make: *** [all-recursive] Error 1 > > > > > > -- > > > Christian Pearce > > > www.commnav.com > > > > > > > > > On Mon, 14 Apr 2003 09:32:23 -0400, Jason Long wrote: > > > > > > > > I think gcc 3+ is less backwards compatible with its header > > > > files. Mainly I have to go through the source and make sure > > > > every time I use a standard template library class I qualify it > > > > using the std namespace. > > > > > > > > We're currently using 2.95 because that's what Gentoo was using > > > > when we built our computers. Switching would require recompiling > > > > all of our dependent libraries... libsigc++, glibmm, gtkmm, > > > > Xerces, etc. > > > > > > > > I fixed the error that you mentioned in your email. I wsa able > > > > to verify that it compiles with gcc 3.2, but I can only assume > > > > it will correctly link against other libraries compiled with gcc > > > > 3+. > > > > > > > > Jason > > > > > > > > Index: src/libconfig4gnu/BackendHelper.cc > > > > =============================================================== > > > > ==== RCS file: > > > > /cvsroot/config4gnu/config4gnu/src/libconfig4gnu/BackendHelper. > > > > cc,v retrieving revision 1.10 > > > > diff -u -p -r1.10 BackendHelper.cc > > > > --- src/libconfig4gnu/BackendHelper.cc 11 Apr 2003 14:35:14 -0000 > > > > 1.10+++ src/libconfig4gnu/BackendHelper.cc 14 Apr 2003 13:23:50 > > > > -0000@@ -56,9 +56,9 @@ Cfg::load_config_file(std::string filena > > > > void > > > > Cfg::save_config_file(std::string output, std::string filename) > > > > { > > > > - ofstream file; > > > > + std::ofstream file; > > > > filename = rewrite_filename(filename); > > > > - file.open(filename.c_str(), ios::out); > > > > + file.open(filename.c_str(), std::ios::out); > > > > assert(file.is_open()); > > > > > > > > file << output; > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This sf.net email is sponsored by:ThinkGeek > > > Welcome to geek heaven. > > > http://thinkgeek.com/sf > > > _______________________________________________ > > > Config4gnu-developer mailing list > > > Con...@li... > > > https://lists.sourceforge.net/lists/listinfo/config4gnu-developer > > > > > > > > > > > > -- > > SkiingYAC > > Custom Solutions > > http://www.SkiingYAC.com > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Config4gnu-developer mailing list > > Con...@li... > > https://lists.sourceforge.net/lists/listinfo/config4gnu-developer > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Config4gnu-developer mailing list > Con...@li... > https://lists.sourceforge.net/lists/listinfo/config4gnu-developer > > -- SkiingYAC Custom Solutions http://www.SkiingYAC.com |
From: Christian L P. <pe...@co...> - 2003-04-15 15:44:46
|
I am using SWIG 1.1. Stock Red Hat 9. You should add this to the requirements in the INSTALL file. I will try to find an RPM for the newer version or... A release? Awesome. I didn't think you guys were going to put binaries out for a while. What methods do you use for packaging? Looks like you fixed the Reply mode on the list. That is great. -- Christian Pearce www.commnav.com On Tue, 15 Apr 2003 11:37:00 -0400, Justin Yackoski wrote: > > Christian, > > You wouldn't be chance be using SWIG 1.1? I searched google and people seem to be reporting that same error on line 292 with SWIG 1.1. We've been using 1.3.16, and I seem to recall some sort of problem with SWIG 1.1 we had that made us use 1.3.x. > > I'd suggest either upgrading SWIG, or downloading a release I just added which has the SWIG stuff already generated. To download the release, go to http://sourceforge.net/project/showfiles.php?group_id=62306 > > Justin > > > On Tue, 15 Apr 2003 09:30:24 EDT > "Christian L Pearce " <pe...@co...> wrote: > > > Ok I see why you are using gcc 2.95. I updated my code. Everything > > compiled with the new fixes you added. I am now running into a > > problem with the SWIG part of the project. I haven't invested any > > time into understanding the problem. I figured I would post it to see > > if you guys any and starting ideas for me. > > > > g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" > > -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" > > -DPACKAGE=\"config4gnu\" -DVERSION=\"0.1.8\" -DSTDC_HEADERS=1 > > -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 > > -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 > > -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 > > -DHAVE_DLFCN_H=1 -I. -I. -I/usr/include/glib-2.0 > > -I/usr/lib/glib-2.0/include -I/usr/lib/sigc++-1.2/include > > -I/usr/include/sigc++-1.2 > > -I/usr/local/xerces-c-LINUX-c++-2_2_0//include > > -I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE > > -I../../../src/libconfig4gnu -g -O2 -c config4gnu_wrap.cxx-MT > > config4gnu_wrap.lo -MD -MP -MF .deps/config4gnu_wrap.TPlo -fPIC -DPIC > > -o .libs/config4gnu_wrap.lo config4gnu_wrap.cxx: In function `char* > > SWIG_GetPtr(SV*, void**, char*)': config4gnu_wrap.cxx:292: `sv_undef' > > undeclared (first use this function) config4gnu_wrap.cxx:292: (Each > > undeclared identifier is reported only once for > > each function it appears in.) > > config4gnu_wrap.cxx: In function `void _swig_create_magic(SV*, char*, > > int > > (*)(SV*, MAGIC*), int (*)(SV*, MAGIC*))': > > config4gnu_wrap.cxx:411: invalid conversion from `int (*)(SV*, > > MAGIC*)' to `int > > (*)(PerlInterpreter*, SV*, MAGIC*)' > > config4gnu_wrap.cxx:412: invalid conversion from `int (*)(SV*, > > MAGIC*)' to `int > > (*)(PerlInterpreter*, SV*, MAGIC*)' > > config4gnu_wrap.cxx: In function `int > > _wrap_set_CfgBuiltin_PRIMITIVE(SV*, > > MAGIC*)': > > config4gnu_wrap.cxx:469: `CfgBuiltin' undeclared (first use this > > function) config4gnu_wrap.cxx:469: parse error before `::' token > > config4gnu_wrap.cxx: In function `int > > _wrap_val_CfgBuiltin_PRIMITIVE(SV*, > > MAGIC*)': > > config4gnu_wrap.cxx:480: parse error before `::' token > > config4gnu_wrap.cxx: In function `int _wrap_set_CfgBuiltin_LINK(SV*, > > MAGIC*)': config4gnu_wrap.cxx:494: parse error before `::' token > > config4gnu_wrap.cxx: In function `int _wrap_val_CfgBuiltin_LINK(SV*, > > MAGIC*)': config4gnu_wrap.cxx:505: parse error before `::' token > > config4gnu_wrap.cxx: In function `int _wrap_set_CfgBuiltin_LIST(SV*, > > MAGIC*)': config4gnu_wrap.cxx:519: parse error before `::' token > > config4gnu_wrap.cxx: In function `int _wrap_val_CfgBuiltin_LIST(SV*, > > MAGIC*)': config4gnu_wrap.cxx:530: parse error before `::' token > > config4gnu_wrap.cxx: In function `int _wrap_set_CfgBuiltin_NORMAL(SV*, > > MAGIC*)': > > config4gnu_wrap.cxx:544: parse error before `::' token > > config4gnu_wrap.cxx: In function `int _wrap_val_CfgBuiltin_NORMAL(SV*, > > MAGIC*)': > > config4gnu_wrap.cxx:555: parse error before `::' token > > config4gnu_wrap.cxx: In function `int _wrap_set_CfgBuiltin_IMPORT(SV*, > > MAGIC*)': > > config4gnu_wrap.cxx:569: parse error before `::' token > > config4gnu_wrap.cxx: In function `int _wrap_val_CfgBuiltin_IMPORT(SV*, > > MAGIC*)': > > config4gnu_wrap.cxx:580: parse error before `::' token > > config4gnu_wrap.cxx: In function `int > > _wrap_set_CfgBuiltin_SINGLE_LINE_STRING(SV*, MAGIC*)': > > config4gnu_wrap.cxx:594: parse error before `::' token > > config4gnu_wrap.cxx: In function `int > > _wrap_val_CfgBuiltin_SINGLE_LINE_STRING(SV*, MAGIC*)': > > config4gnu_wrap.cxx:605: parse error before `::' token > > config4gnu_wrap.cxx: In function `int > > _wrap_set_CfgBuiltin_BOOLEAN(SV*, > > MAGIC*)': > > config4gnu_wrap.cxx:619: parse error before `::' token > > config4gnu_wrap.cxx: In function `int > > _wrap_val_CfgBuiltin_BOOLEAN(SV*, > > MAGIC*)': > > config4gnu_wrap.cxx:630: parse error before `::' token > > config4gnu_wrap.cxx: In function `int > > _wrap_set_CfgBuiltin_PROPERTY(SV*, > > MAGIC*)': > > config4gnu_wrap.cxx:644: parse error before `::' token > > config4gnu_wrap.cxx: In function `int > > _wrap_val_CfgBuiltin_PROPERTY(SV*, > > MAGIC*)': > > config4gnu_wrap.cxx:655: parse error before `::' token > > config4gnu_wrap.cxx: In function `int > > _wrap_set_CfgBuiltin_SECTION(SV*, > > MAGIC*)': > > config4gnu_wrap.cxx:669: parse error before `::' token > > config4gnu_wrap.cxx: In function `int > > _wrap_val_CfgBuiltin_SECTION(SV*, > > MAGIC*)': > > config4gnu_wrap.cxx:680: parse error before `::' token > > config4gnu_wrap.cxx: In function `void > > boot_config4gnu(PerlInterpreter*, CV*)': config4gnu_wrap.cxx:1507: > > declaration of C function `void > > boot_config4gnu(PerlInterpreter*, CV*)' conflicts with > > config4gnu_wrap.cxx:426: previous declaration `void > > boot_config4gnu(CV*)' here config4gnu_wrap.cxx: In function `void > > boot_config4gnu(PerlInterpreter*, CV*)': config4gnu_wrap.cxx:1575: > > `sv_yes' undeclared (first use this function) make[3]: *** > > [config4gnu_wrap.lo] Error 1 make[3]: Leaving directory > > `/home/pearcec/config4gnu/src/wrappers/perl5' make[2]: *** > > [all-recursive] Error 1 make[2]: Leaving directory > > `/home/pearcec/config4gnu/src/wrappers' make[1]: *** [all-recursive] > > Error 1 make[1]: Leaving directory `/home/pearcec/config4gnu/src' > > make: *** [all-recursive] Error 1 > > > > -- > > Christian Pearce > > www.commnav.com > > > > > > On Mon, 14 Apr 2003 09:32:23 -0400, Jason Long wrote: > > > > > > I think gcc 3+ is less backwards compatible with its header files. > > > Mainly I have to go through the source and make sure every time I > > > use a standard template library class I qualify it using the std > > > namespace. > > > > > > We're currently using 2.95 because that's what Gentoo was using when > > > we built our computers. Switching would require recompiling all of > > > our dependent libraries... libsigc++, glibmm, gtkmm, Xerces, etc. > > > > > > I fixed the error that you mentioned in your email. I wsa able to > > > verify that it compiles with gcc 3.2, but I can only assume it will > > > correctly link against other libraries compiled with gcc 3+. > > > > > > Jason > > > > > > Index: src/libconfig4gnu/BackendHelper.cc > > > =================================================================== > > > RCS file: > > > /cvsroot/config4gnu/config4gnu/src/libconfig4gnu/BackendHelper.cc,v > > > retrieving revision 1.10 > > > diff -u -p -r1.10 BackendHelper.cc > > > --- src/libconfig4gnu/BackendHelper.cc 11 Apr 2003 14:35:14 -0000 > > > 1.10+++ src/libconfig4gnu/BackendHelper.cc 14 Apr 2003 13:23:50 -0000 > > > @@ -56,9 +56,9 @@ Cfg::load_config_file(std::string filena > > > void > > > Cfg::save_config_file(std::string output, std::string filename) > > > { > > > - ofstream file; > > > + std::ofstream file; > > > filename = rewrite_filename(filename); > > > - file.open(filename.c_str(), ios::out); > > > + file.open(filename.c_str(), std::ios::out); > > > assert(file.is_open()); > > > > > > file << output; > > > > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Config4gnu-developer mailing list > > Con...@li... > > https://lists.sourceforge.net/lists/listinfo/config4gnu-developer > > > > > > > -- > SkiingYAC > Custom Solutions > http://www.SkiingYAC.com > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Config4gnu-developer mailing list > Con...@li... > https://lists.sourceforge.net/lists/listinfo/config4gnu-developer > |
From: Justin Y. <ju...@sk...> - 2003-04-15 15:37:33
|
Christian, You wouldn't be chance be using SWIG 1.1? I searched google and people seem to be reporting that same error on line 292 with SWIG 1.1. We've been using 1.3.16, and I seem to recall some sort of problem with SWIG 1.1 we had that made us use 1.3.x. I'd suggest either upgrading SWIG, or downloading a release I just added which has the SWIG stuff already generated. To download the release, go to http://sourceforge.net/project/showfiles.php?group_id=62306 Justin On Tue, 15 Apr 2003 09:30:24 EDT "Christian L Pearce " <pe...@co...> wrote: > Ok I see why you are using gcc 2.95. I updated my code. Everything > compiled with the new fixes you added. I am now running into a > problem with the SWIG part of the project. I haven't invested any > time into understanding the problem. I figured I would post it to see > if you guys any and starting ideas for me. > > g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" > -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" > -DPACKAGE=\"config4gnu\" -DVERSION=\"0.1.8\" -DSTDC_HEADERS=1 > -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 > -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 > -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 > -DHAVE_DLFCN_H=1 -I. -I. -I/usr/include/glib-2.0 > -I/usr/lib/glib-2.0/include -I/usr/lib/sigc++-1.2/include > -I/usr/include/sigc++-1.2 > -I/usr/local/xerces-c-LINUX-c++-2_2_0//include > -I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE > -I../../../src/libconfig4gnu -g -O2 -c config4gnu_wrap.cxx-MT > config4gnu_wrap.lo -MD -MP -MF .deps/config4gnu_wrap.TPlo -fPIC -DPIC > -o .libs/config4gnu_wrap.lo config4gnu_wrap.cxx: In function `char* > SWIG_GetPtr(SV*, void**, char*)': config4gnu_wrap.cxx:292: `sv_undef' > undeclared (first use this function) config4gnu_wrap.cxx:292: (Each > undeclared identifier is reported only once for > each function it appears in.) > config4gnu_wrap.cxx: In function `void _swig_create_magic(SV*, char*, > int > (*)(SV*, MAGIC*), int (*)(SV*, MAGIC*))': > config4gnu_wrap.cxx:411: invalid conversion from `int (*)(SV*, > MAGIC*)' to `int > (*)(PerlInterpreter*, SV*, MAGIC*)' > config4gnu_wrap.cxx:412: invalid conversion from `int (*)(SV*, > MAGIC*)' to `int > (*)(PerlInterpreter*, SV*, MAGIC*)' > config4gnu_wrap.cxx: In function `int > _wrap_set_CfgBuiltin_PRIMITIVE(SV*, > MAGIC*)': > config4gnu_wrap.cxx:469: `CfgBuiltin' undeclared (first use this > function) config4gnu_wrap.cxx:469: parse error before `::' token > config4gnu_wrap.cxx: In function `int > _wrap_val_CfgBuiltin_PRIMITIVE(SV*, > MAGIC*)': > config4gnu_wrap.cxx:480: parse error before `::' token > config4gnu_wrap.cxx: In function `int _wrap_set_CfgBuiltin_LINK(SV*, > MAGIC*)': config4gnu_wrap.cxx:494: parse error before `::' token > config4gnu_wrap.cxx: In function `int _wrap_val_CfgBuiltin_LINK(SV*, > MAGIC*)': config4gnu_wrap.cxx:505: parse error before `::' token > config4gnu_wrap.cxx: In function `int _wrap_set_CfgBuiltin_LIST(SV*, > MAGIC*)': config4gnu_wrap.cxx:519: parse error before `::' token > config4gnu_wrap.cxx: In function `int _wrap_val_CfgBuiltin_LIST(SV*, > MAGIC*)': config4gnu_wrap.cxx:530: parse error before `::' token > config4gnu_wrap.cxx: In function `int _wrap_set_CfgBuiltin_NORMAL(SV*, > MAGIC*)': > config4gnu_wrap.cxx:544: parse error before `::' token > config4gnu_wrap.cxx: In function `int _wrap_val_CfgBuiltin_NORMAL(SV*, > MAGIC*)': > config4gnu_wrap.cxx:555: parse error before `::' token > config4gnu_wrap.cxx: In function `int _wrap_set_CfgBuiltin_IMPORT(SV*, > MAGIC*)': > config4gnu_wrap.cxx:569: parse error before `::' token > config4gnu_wrap.cxx: In function `int _wrap_val_CfgBuiltin_IMPORT(SV*, > MAGIC*)': > config4gnu_wrap.cxx:580: parse error before `::' token > config4gnu_wrap.cxx: In function `int > _wrap_set_CfgBuiltin_SINGLE_LINE_STRING(SV*, MAGIC*)': > config4gnu_wrap.cxx:594: parse error before `::' token > config4gnu_wrap.cxx: In function `int > _wrap_val_CfgBuiltin_SINGLE_LINE_STRING(SV*, MAGIC*)': > config4gnu_wrap.cxx:605: parse error before `::' token > config4gnu_wrap.cxx: In function `int > _wrap_set_CfgBuiltin_BOOLEAN(SV*, > MAGIC*)': > config4gnu_wrap.cxx:619: parse error before `::' token > config4gnu_wrap.cxx: In function `int > _wrap_val_CfgBuiltin_BOOLEAN(SV*, > MAGIC*)': > config4gnu_wrap.cxx:630: parse error before `::' token > config4gnu_wrap.cxx: In function `int > _wrap_set_CfgBuiltin_PROPERTY(SV*, > MAGIC*)': > config4gnu_wrap.cxx:644: parse error before `::' token > config4gnu_wrap.cxx: In function `int > _wrap_val_CfgBuiltin_PROPERTY(SV*, > MAGIC*)': > config4gnu_wrap.cxx:655: parse error before `::' token > config4gnu_wrap.cxx: In function `int > _wrap_set_CfgBuiltin_SECTION(SV*, > MAGIC*)': > config4gnu_wrap.cxx:669: parse error before `::' token > config4gnu_wrap.cxx: In function `int > _wrap_val_CfgBuiltin_SECTION(SV*, > MAGIC*)': > config4gnu_wrap.cxx:680: parse error before `::' token > config4gnu_wrap.cxx: In function `void > boot_config4gnu(PerlInterpreter*, CV*)': config4gnu_wrap.cxx:1507: > declaration of C function `void > boot_config4gnu(PerlInterpreter*, CV*)' conflicts with > config4gnu_wrap.cxx:426: previous declaration `void > boot_config4gnu(CV*)' here config4gnu_wrap.cxx: In function `void > boot_config4gnu(PerlInterpreter*, CV*)': config4gnu_wrap.cxx:1575: > `sv_yes' undeclared (first use this function) make[3]: *** > [config4gnu_wrap.lo] Error 1 make[3]: Leaving directory > `/home/pearcec/config4gnu/src/wrappers/perl5' make[2]: *** > [all-recursive] Error 1 make[2]: Leaving directory > `/home/pearcec/config4gnu/src/wrappers' make[1]: *** [all-recursive] > Error 1 make[1]: Leaving directory `/home/pearcec/config4gnu/src' > make: *** [all-recursive] Error 1 > > -- > Christian Pearce > www.commnav.com > > > On Mon, 14 Apr 2003 09:32:23 -0400, Jason Long wrote: > > > > I think gcc 3+ is less backwards compatible with its header files. > > Mainly I have to go through the source and make sure every time I > > use a standard template library class I qualify it using the std > > namespace. > > > > We're currently using 2.95 because that's what Gentoo was using when > > we built our computers. Switching would require recompiling all of > > our dependent libraries... libsigc++, glibmm, gtkmm, Xerces, etc. > > > > I fixed the error that you mentioned in your email. I wsa able to > > verify that it compiles with gcc 3.2, but I can only assume it will > > correctly link against other libraries compiled with gcc 3+. > > > > Jason > > > > Index: src/libconfig4gnu/BackendHelper.cc > > =================================================================== > > RCS file: > > /cvsroot/config4gnu/config4gnu/src/libconfig4gnu/BackendHelper.cc,v > > retrieving revision 1.10 > > diff -u -p -r1.10 BackendHelper.cc > > --- src/libconfig4gnu/BackendHelper.cc 11 Apr 2003 14:35:14 -0000 > > 1.10+++ src/libconfig4gnu/BackendHelper.cc 14 Apr 2003 13:23:50 -0000 > > @@ -56,9 +56,9 @@ Cfg::load_config_file(std::string filena > > void > > Cfg::save_config_file(std::string output, std::string filename) > > { > > - ofstream file; > > + std::ofstream file; > > filename = rewrite_filename(filename); > > - file.open(filename.c_str(), ios::out); > > + file.open(filename.c_str(), std::ios::out); > > assert(file.is_open()); > > > > file << output; > > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Config4gnu-developer mailing list > Con...@li... > https://lists.sourceforge.net/lists/listinfo/config4gnu-developer > > -- SkiingYAC Custom Solutions http://www.SkiingYAC.com |
From: Christian L P. <pe...@co...> - 2003-04-15 13:28:49
|
Ok I see why you are using gcc 2.95. I updated my code. Everything compiled with the new fixes you added. I am now running into a problem with the SWIG part of the project. I haven't invested any time into understanding the problem. I figured I would post it to see if you guys any and starting ideas for me. g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"config4gnu\" -DVERSION=\"0.1.8\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I. -I. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/sigc++-1.2/include -I/usr/include/sigc++-1.2 -I/usr/local/xerces-c-LINUX-c++-2_2_0//include -I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE -I../../../src/libconfig4gnu -g -O2 -c config4gnu_wrap.cxx -MT config4gnu_wrap.lo -MD -MP -MF .deps/config4gnu_wrap.TPlo -fPIC -DPIC -o .libs/config4gnu_wrap.lo config4gnu_wrap.cxx: In function `char* SWIG_GetPtr(SV*, void**, char*)': config4gnu_wrap.cxx:292: `sv_undef' undeclared (first use this function) config4gnu_wrap.cxx:292: (Each undeclared identifier is reported only once for each function it appears in.) config4gnu_wrap.cxx: In function `void _swig_create_magic(SV*, char*, int (*)(SV*, MAGIC*), int (*)(SV*, MAGIC*))': config4gnu_wrap.cxx:411: invalid conversion from `int (*)(SV*, MAGIC*)' to `int (*)(PerlInterpreter*, SV*, MAGIC*)' config4gnu_wrap.cxx:412: invalid conversion from `int (*)(SV*, MAGIC*)' to `int (*)(PerlInterpreter*, SV*, MAGIC*)' config4gnu_wrap.cxx: In function `int _wrap_set_CfgBuiltin_PRIMITIVE(SV*, MAGIC*)': config4gnu_wrap.cxx:469: `CfgBuiltin' undeclared (first use this function) config4gnu_wrap.cxx:469: parse error before `::' token config4gnu_wrap.cxx: In function `int _wrap_val_CfgBuiltin_PRIMITIVE(SV*, MAGIC*)': config4gnu_wrap.cxx:480: parse error before `::' token config4gnu_wrap.cxx: In function `int _wrap_set_CfgBuiltin_LINK(SV*, MAGIC*)': config4gnu_wrap.cxx:494: parse error before `::' token config4gnu_wrap.cxx: In function `int _wrap_val_CfgBuiltin_LINK(SV*, MAGIC*)': config4gnu_wrap.cxx:505: parse error before `::' token config4gnu_wrap.cxx: In function `int _wrap_set_CfgBuiltin_LIST(SV*, MAGIC*)': config4gnu_wrap.cxx:519: parse error before `::' token config4gnu_wrap.cxx: In function `int _wrap_val_CfgBuiltin_LIST(SV*, MAGIC*)': config4gnu_wrap.cxx:530: parse error before `::' token config4gnu_wrap.cxx: In function `int _wrap_set_CfgBuiltin_NORMAL(SV*, MAGIC*)': config4gnu_wrap.cxx:544: parse error before `::' token config4gnu_wrap.cxx: In function `int _wrap_val_CfgBuiltin_NORMAL(SV*, MAGIC*)': config4gnu_wrap.cxx:555: parse error before `::' token config4gnu_wrap.cxx: In function `int _wrap_set_CfgBuiltin_IMPORT(SV*, MAGIC*)': config4gnu_wrap.cxx:569: parse error before `::' token config4gnu_wrap.cxx: In function `int _wrap_val_CfgBuiltin_IMPORT(SV*, MAGIC*)': config4gnu_wrap.cxx:580: parse error before `::' token config4gnu_wrap.cxx: In function `int _wrap_set_CfgBuiltin_SINGLE_LINE_STRING(SV*, MAGIC*)': config4gnu_wrap.cxx:594: parse error before `::' token config4gnu_wrap.cxx: In function `int _wrap_val_CfgBuiltin_SINGLE_LINE_STRING(SV*, MAGIC*)': config4gnu_wrap.cxx:605: parse error before `::' token config4gnu_wrap.cxx: In function `int _wrap_set_CfgBuiltin_BOOLEAN(SV*, MAGIC*)': config4gnu_wrap.cxx:619: parse error before `::' token config4gnu_wrap.cxx: In function `int _wrap_val_CfgBuiltin_BOOLEAN(SV*, MAGIC*)': config4gnu_wrap.cxx:630: parse error before `::' token config4gnu_wrap.cxx: In function `int _wrap_set_CfgBuiltin_PROPERTY(SV*, MAGIC*)': config4gnu_wrap.cxx:644: parse error before `::' token config4gnu_wrap.cxx: In function `int _wrap_val_CfgBuiltin_PROPERTY(SV*, MAGIC*)': config4gnu_wrap.cxx:655: parse error before `::' token config4gnu_wrap.cxx: In function `int _wrap_set_CfgBuiltin_SECTION(SV*, MAGIC*)': config4gnu_wrap.cxx:669: parse error before `::' token config4gnu_wrap.cxx: In function `int _wrap_val_CfgBuiltin_SECTION(SV*, MAGIC*)': config4gnu_wrap.cxx:680: parse error before `::' token config4gnu_wrap.cxx: In function `void boot_config4gnu(PerlInterpreter*, CV*)': config4gnu_wrap.cxx:1507: declaration of C function `void boot_config4gnu(PerlInterpreter*, CV*)' conflicts with config4gnu_wrap.cxx:426: previous declaration `void boot_config4gnu(CV*)' here config4gnu_wrap.cxx: In function `void boot_config4gnu(PerlInterpreter*, CV*)': config4gnu_wrap.cxx:1575: `sv_yes' undeclared (first use this function) make[3]: *** [config4gnu_wrap.lo] Error 1 make[3]: Leaving directory `/home/pearcec/config4gnu/src/wrappers/perl5' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/pearcec/config4gnu/src/wrappers' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/pearcec/config4gnu/src' make: *** [all-recursive] Error 1 -- Christian Pearce www.commnav.com On Mon, 14 Apr 2003 09:32:23 -0400, Jason Long wrote: > > I think gcc 3+ is less backwards compatible with its header files. Mainly I > have to go through the source and make sure every time I use a standard > template library class I qualify it using the std namespace. > > We're currently using 2.95 because that's what Gentoo was using when we > built our computers. Switching would require recompiling all of our > dependent libraries... libsigc++, glibmm, gtkmm, Xerces, etc. > > I fixed the error that you mentioned in your email. I wsa able to verify > that it compiles with gcc 3.2, but I can only assume it will correctly link > against other libraries compiled with gcc 3+. > > Jason > > Index: src/libconfig4gnu/BackendHelper.cc > =================================================================== > RCS file: > /cvsroot/config4gnu/config4gnu/src/libconfig4gnu/BackendHelper.cc,v > retrieving revision 1.10 > diff -u -p -r1.10 BackendHelper.cc > --- src/libconfig4gnu/BackendHelper.cc 11 Apr 2003 14:35:14 -0000 1.10 > +++ src/libconfig4gnu/BackendHelper.cc 14 Apr 2003 13:23:50 -0000 > @@ -56,9 +56,9 @@ Cfg::load_config_file(std::string filena > void > Cfg::save_config_file(std::string output, std::string filename) > { > - ofstream file; > + std::ofstream file; > filename = rewrite_filename(filename); > - file.open(filename.c_str(), ios::out); > + file.open(filename.c_str(), std::ios::out); > assert(file.is_open()); > > file << output; > > |
From: Jason L. <jl...@me...> - 2003-04-14 13:28:16
|
I think gcc 3+ is less backwards compatible with its header files. Mainly I have to go through the source and make sure every time I use a standard template library class I qualify it using the std namespace. We're currently using 2.95 because that's what Gentoo was using when we built our computers. Switching would require recompiling all of our dependent libraries... libsigc++, glibmm, gtkmm, Xerces, etc. I fixed the error that you mentioned in your email. I wsa able to verify that it compiles with gcc 3.2, but I can only assume it will correctly link against other libraries compiled with gcc 3+. Jason Index: src/libconfig4gnu/BackendHelper.cc =================================================================== RCS file: /cvsroot/config4gnu/config4gnu/src/libconfig4gnu/BackendHelper.cc,v retrieving revision 1.10 diff -u -p -r1.10 BackendHelper.cc --- src/libconfig4gnu/BackendHelper.cc 11 Apr 2003 14:35:14 -0000 1.10 +++ src/libconfig4gnu/BackendHelper.cc 14 Apr 2003 13:23:50 -0000 @@ -56,9 +56,9 @@ Cfg::load_config_file(std::string filena void Cfg::save_config_file(std::string output, std::string filename) { - ofstream file; + std::ofstream file; filename = rewrite_filename(filename); - file.open(filename.c_str(), ios::out); + file.open(filename.c_str(), std::ios::out); assert(file.is_open()); file << output; |
From: Christian L P. <pe...@co...> - 2003-04-12 14:11:02
|
I tried the #include <iostream> even before this email with no luck. I am not an expert on the differences of gcc 2.95 and gcc 3.2. What makes you use 2.95? Is there something we can be doing with autoconf to manage this? -- Christian Pearce www.commnav.com On Fri, 11 Apr 2003 09:33:59 -0400 (EDT), Justin Yackoski wrote: > > > Christian L Pearce said: > > > BackendHelper.cc: In function `void > > Cfg::save_config_file(std::basic_string<char, std::char_traits<char>, > > std::allocator<char> >, std::basic_string<char, > > std::char_traits<char>, std::allocator<char> >)': > > BackendHelper.cc:60: `ios' undeclared (first use this function) > > Try adding #include <iostream> to BackendHelper.cc Appears that gcc 3.2 > is a little pickier about things than 2.95. I'm unfortunately not using > gcc 3.2 so I'm not certain this will work, but it should. > > > > > Is there anyway to make the mailing list reply *be* the mailing list > > email address? > > Good question... I could have sworn it used to be like that... Jason, > do you know the password for the mailing list? Maybe there's a setting > that got messed up. > > As for the fact that there's no license in any of the files, yeah, thats > something we need to fix very soon. > > Justin > > -- > SkiingYAC > Custom Solutions > http://www.SkiingYAC.com > > > |
From: <da...@id...> - 2003-04-12 00:25:59
|
"Justin Yackoski" <ju...@sk...> said: > > "Jason Long" <jl...@me...> said: > > > >> Justin, > >> > >> You're right that a tree-based approach (that simulates the > >> directory-tree of the server) would be too complicated. I realized > >> today that Apache also supports > >> > >> <Directory "/home/*/public_html"> > >> etc. > >> > >> as well as regular expression matches using '~'. > > > > sorry to intrude, but what is the problem with that? > > Well, I think the primary problem is that you can't anymore just give the > user a finite list of directories, nor can you easily give them an > accurate tree. It'd be possible, but it wouldn't be easy. [...] ok, I understand better now, thanks for the explanation, I might think about it -- dams |
From: Justin Y. <ju...@sk...> - 2003-04-11 14:28:18
|
> "Jason Long" <jl...@me...> said: > >> Justin, >> >> You're right that a tree-based approach (that simulates the >> directory-tree of the server) would be too complicated. I realized >> today that Apache also supports >> >> <Directory "/home/*/public_html"> >> etc. >> >> as well as regular expression matches using '~'. > > sorry to intrude, but what is the problem with that? Well, I think the primary problem is that you can't anymore just give the user a finite list of directories, nor can you easily give them an accurate tree. It'd be possible, but it wouldn't be easy. For example, lets say someone has the directive about with "/home/*/public_html" as the matching expression, and they have bob, fred, and sue directories in /home. So we would then display in the UI the following in a tree view: /home/bob/public_html /home/fred/public_html /home/sue/public_html Lets say the user clicks on /home/fred/public_html and changes a setting. Now, we have to stop and figure out what directive put that setting there in the first place. Since its the "/home/*/public_html" setting, we need to figure out which of the following the user meant to do: 1) change the setting for everything matching "/home/*/public_html" 2) change the setting for everything matching "/home/*/public_html" and any subdirectories 3) change the setting for just /home/fred/public_html 4) change the setting for /home/fred/public_html and any subdirectories If its NOT #1 or #2, then we need an additional view to let the user edit matching expressions. If its #1 or #2, then people are going to get VERY confused because they're looking at a normal tree view, and they're being asked whether they want the change to apply to everything matching "/home/*/public_html/". I think the goal of a tree view is to make it easier for novice users, but at the same time, it hides too much of the details. To further complicate the matter, lets say a user makes a change to a setting in /home/fred/public_html/secrets to not let anyone view directory listings. Since the only current rule applying to that directory are the ones in the "/home/*/public_html" section, does the use want to edit that rule, or create a new rule? If a new rule, should it be "/home/*/public_html/secrets" or "/home/fred/public_html/secrets"? Further still, if the machine being configured is not a remote system, or the config file you're editing is for a server that you're maybe in the process of setting up, you won't have access to a directory structure. There'd be no way for the system to even know which directories "/home/*/public_html" applied to in this case, so constructing a tree view would be rather difficult. Perhaps Jason has diferent thoughts, but I guess my main reason for leaning against an abstracted tree view is that it seems necessary to have a "raw" view that lists the <Directory> and similar tags with their actual paths/expressions that apply to all hosts, a single virtual host, etc. So, I guess since we need a raw view and since generating XML that corresponds with such a view is easy, it seems like a good place to start. I admit that while a tree view seems very messy, it might not be too hard to implement later. If you have any ideas on how we could better tackle some of the problems posed by a tree view, I'd be happy to hear them. Apache isn't going to be a piece of cake to implement either way. Justin -- SkiingYAC Custom Solutions http://www.SkiingYAC.com |
From: Justin Y. <ju...@sk...> - 2003-04-11 13:33:59
|
Christian L Pearce said: > BackendHelper.cc: In function `void > Cfg::save_config_file(std::basic_string<char, std::char_traits<char>, > std::allocator<char> >, std::basic_string<char, > std::char_traits<char>, std::allocator<char> >)': > BackendHelper.cc:60: `ios' undeclared (first use this function) Try adding #include <iostream> to BackendHelper.cc Appears that gcc 3.2 is a little pickier about things than 2.95. I'm unfortunately not using gcc 3.2 so I'm not certain this will work, but it should. > > Is there anyway to make the mailing list reply *be* the mailing list > email address? Good question... I could have sworn it used to be like that... Jason, do you know the password for the mailing list? Maybe there's a setting that got messed up. As for the fact that there's no license in any of the files, yeah, thats something we need to fix very soon. Justin -- SkiingYAC Custom Solutions http://www.SkiingYAC.com |
From: Christian L P. <pe...@co...> - 2003-04-11 12:03:54
|
I added #include <iostream> to the src/libconfig4gnu/VirtualXMLBackendObject.cc to fix my first problem. I hit a second problem with g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"config4gnu\" -DVERSION=\"0.1.8\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I. -I. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/sigc++-1.2/include -I/usr/include/sigc++-1.2 -I/usr/local/xerces-c-LINUX-c++-2_2_0//include -DPERLEXT_PATH=\"/usr/local/lib/config4gnu/perl\" -DPARSERS_PATH=\"/usr/local/libexec\" -DPARSERS_DEF_PATH=\"/usr/local/share/config4gnu/parsers\" -DSYSCONF_PATH=\"/usr/local/etc\" -DCLASS_PATH=\"/usr/local/share/config4gnu/classes\" -DFORMS_PATH=\"/usr/local/share/config4gnu/forms\" -DSCHEMAS_PATH=\"/usr/local/share/config4gnu/schemas\" -g -O2 -c BackendHelper.cc -MT BackendHelper.lo -MD -MP -MF .deps/BackendHelper.TPlo -fPIC -DPIC -o .libs/BackendHelper.lo In file included from /usr/include/c++/3.2.2/backward/fstream.h:31, from BackendHelper.cc:7: /usr/include/c++/3.2.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated. BackendHelper.cc: In function `void Cfg::save_config_file(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)': BackendHelper.cc:60: `ios' undeclared (first use this function) BackendHelper.cc:60: (Each undeclared identifier is reported only once for each function it appears in.) BackendHelper.cc:60: parse error before `::' token make[2]: *** [BackendHelper.lo] Error 1 make[2]: Leaving directory `/home/pearcec/config4gnu/src/libconfig4gnu' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/pearcec/config4gnu/src' make: *** [all-recursive] Error 1 Is there anyway to make the mailing list reply *be* the mailing list email address? -- Christian Pearce www.commnav.com On Fri, 11 Apr 2003 07:53:31 -0400 (EDT), Christian L Pearce wrote: > > Justin, Jason: > > Okay, I got configure's dependencies satisftied. (or should I say you guys did) For the record I used the following to get myself started on Red Hat 9. > > Xerces C++ : > > * Download a binary from http://xml.apache.org/xerces-c/index.html > * Untar it in /usr/local > > glib-2.0 : > > * Stock RPM's from RedHat glib2 and glib2-devel > > libsigc++ : > > * Download a tar ball from http://libsigc.sourceforge.net/stable.shtml > * rpmbuild -ta [tar ball] > > config4gnu : > > * Check out code from http://config4gnu.sf.net > * ./autogen.sh > * ./configure --with-xerces-c-root=/usr/local/xerces-c-LINUX-c++-2_2_0/ (NOTE: configure was smart enough to disable the gtk client compliation) > * make > > A couple things to note : > > * autogen complained about not having ltmain.sh, I ignored it. > - aclocal.m4:883: required file `./ltmain.sh' not found > > * make was looking for ../../libtool, I copied my /usr/bin into the root dir for config4gnu > > * I got the following compilation error : > > g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"config4gnu\" -DVERSION=\"0.1.8\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I. -I. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/sigc++-1.2/include -I/usr/include/sigc++-1.2 -I/usr/local/xerces-c-LINUX-c++-2_2_0//include -DPERLEXT_PATH=\"/usr/local/lib/config4gnu/perl\" -DPARSERS_PATH=\"/usr/local/libexec\" -DPARSERS_DEF_PATH=\"/usr/local/share/config4gnu/parsers\" -DSYSCONF_PATH=\"/usr/local/etc\" -DCLASS_PATH=\"/usr/local/share/config4gnu/classes\" -DFORMS_PATH=\"/usr/local/share/config4gnu/forms\" -DSCHEMAS_PATH=\"/usr/local/share/config4gnu/schemas\" -g -O2 -c VirtualXMLBackendObject.cc -MT VirtualXMLBackendObject.lo -MD -MP -MF .deps/VirtualXMLBackendObject.TPlo -fPIC -DPIC - > VirtualXMLBackendObject.cc: In static member function `static void > Cfg::VirtualXMLBackendObject::run_parser(CfgObject*)': > VirtualXMLBackendObject.cc:84: `cout' undeclared in namespace `std' > VirtualXMLBackendObject.cc:84: `endl' undeclared in namespace `std' > VirtualXMLBackendObject.cc:85: `cout' undeclared in namespace `std' > VirtualXMLBackendObject.cc:85: `endl' undeclared in namespace `std' > VirtualXMLBackendObject.cc:86: `cout' undeclared in namespace `std' > VirtualXMLBackendObject.cc:86: `endl' undeclared in namespace `std' > VirtualXMLBackendObject.cc: In member function `virtual void > Cfg::VirtualXMLBackendObject::save()': > VirtualXMLBackendObject.cc:232: `cout' undeclared in namespace `std' > VirtualXMLBackendObject.cc:232: `endl' undeclared in namespace `std' > make[2]: *** [VirtualXMLBackendObject.lo] Error 1 > make[2]: Leaving directory `/home/pearcec/config4gnu/src/libconfig4gnu' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/pearcec/config4gnu/src' > make: *** [all-recursive] Error 1 > > Maybe this is clear for you what I did wrong? I am going to poke around with it a little bit. > > One thing of note. I noticed you didn't have any license or header information in the src file. > > Still trying to download Gentoo. > > Christian > > -- > Christian Pearce > www.commnav.com > > > On Thu, 10 Apr 2003 22:17:15 -0400, Justin Yackoski wrote: > > > > Christian, > > > > Jason and I have updated our library so that you should now be able to compile it without glibmm. You'll still need libsigc++-1.2 and glib-2.0, but hopefully you've already got those installed. Let us know if you have any trouble. > > > > Justin > > > > -- > > SkiingYAC > > Custom Solutions > > http://www.SkiingYAC.com > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger > > for complex code. Debugging C/C++ programs can leave you feeling lost and > > disoriented. TotalView can help you find your way. Available on major UNIX > > and Linux platforms. Try it free. www.etnus.com > > _______________________________________________ > > Config4gnu-developer mailing list > > Con...@li... > > https://lists.sourceforge.net/lists/listinfo/config4gnu-developer > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger > for complex code. Debugging C/C++ programs can leave you feeling lost and > disoriented. TotalView can help you find your way. Available on major UNIX > and Linux platforms. Try it free. www.etnus.com > _______________________________________________ > Config4gnu-developer mailing list > Con...@li... > https://lists.sourceforge.net/lists/listinfo/config4gnu-developer > |
From: Christian L P. <pe...@co...> - 2003-04-11 11:51:57
|
Justin, Jason: Okay, I got configure's dependencies satisftied. (or should I say you guys did) For the record I used the following to get myself started on Red Hat 9. Xerces C++ : * Download a binary from http://xml.apache.org/xerces-c/index.html * Untar it in /usr/local glib-2.0 : * Stock RPM's from RedHat glib2 and glib2-devel libsigc++ : * Download a tar ball from http://libsigc.sourceforge.net/stable.shtml * rpmbuild -ta [tar ball] config4gnu : * Check out code from http://config4gnu.sf.net * ./autogen.sh * ./configure --with-xerces-c-root=/usr/local/xerces-c-LINUX-c++-2_2_0/ (NOTE: configure was smart enough to disable the gtk client compliation) * make A couple things to note : * autogen complained about not having ltmain.sh, I ignored it. - aclocal.m4:883: required file `./ltmain.sh' not found * make was looking for ../../libtool, I copied my /usr/bin into the root dir for config4gnu * I got the following compilation error : g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"config4gnu\" -DVERSION=\"0.1.8\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I. -I. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/sigc++-1.2/include -I/usr/include/sigc++-1.2 -I/usr/local/xerces-c-LINUX-c++-2_2_0//include -DPERLEXT_PATH=\"/usr/local/lib/config4gnu/perl\" -DPARSERS_PATH=\"/usr/local/libexec\" -DPARSERS_DEF_PATH=\"/usr/local/share/config4gnu/parsers\" -DSYSCONF_PATH=\"/usr/local/etc\" -DCLASS_PATH=\"/usr/local/share/config4gnu/classes\" -DFORMS_PATH=\"/usr/local/share/config4gnu/forms\" -DSCHEMAS_PATH=\"/usr/local/share/config4gnu/schemas\" -g -O2 -c VirtualXMLBackendObject.cc -MT VirtualXMLBackendObject.lo -MD -MP -MF .deps/VirtualXMLBackendObject.TPlo -fPIC -DPIC -o .libs/VirtualXMLBackendObject.lo VirtualXMLBackendObject.cc: In static member function `static void Cfg::VirtualXMLBackendObject::run_parser(CfgObject*)': VirtualXMLBackendObject.cc:84: `cout' undeclared in namespace `std' VirtualXMLBackendObject.cc:84: `endl' undeclared in namespace `std' VirtualXMLBackendObject.cc:85: `cout' undeclared in namespace `std' VirtualXMLBackendObject.cc:85: `endl' undeclared in namespace `std' VirtualXMLBackendObject.cc:86: `cout' undeclared in namespace `std' VirtualXMLBackendObject.cc:86: `endl' undeclared in namespace `std' VirtualXMLBackendObject.cc: In member function `virtual void Cfg::VirtualXMLBackendObject::save()': VirtualXMLBackendObject.cc:232: `cout' undeclared in namespace `std' VirtualXMLBackendObject.cc:232: `endl' undeclared in namespace `std' make[2]: *** [VirtualXMLBackendObject.lo] Error 1 make[2]: Leaving directory `/home/pearcec/config4gnu/src/libconfig4gnu' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/pearcec/config4gnu/src' make: *** [all-recursive] Error 1 Maybe this is clear for you what I did wrong? I am going to poke around with it a little bit. One thing of note. I noticed you didn't have any license or header information in the src file. Still trying to download Gentoo. Christian -- Christian Pearce www.commnav.com On Thu, 10 Apr 2003 22:17:15 -0400, Justin Yackoski wrote: > > Christian, > > Jason and I have updated our library so that you should now be able to compile it without glibmm. You'll still need libsigc++-1.2 and glib-2.0, but hopefully you've already got those installed. Let us know if you have any trouble. > > Justin > > -- > SkiingYAC > Custom Solutions > http://www.SkiingYAC.com > > > ------------------------------------------------------- > This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger > for complex code. Debugging C/C++ programs can leave you feeling lost and > disoriented. TotalView can help you find your way. Available on major UNIX > and Linux platforms. Try it free. www.etnus.com > _______________________________________________ > Config4gnu-developer mailing list > Con...@li... > https://lists.sourceforge.net/lists/listinfo/config4gnu-developer > |
From: <da...@id...> - 2003-04-11 08:01:18
|
"Jason Long" <jl...@me...> said: > Justin, > > You're right that a tree-based approach (that simulates the directory-tree > of the server) would be too complicated. I realized today that Apache also > supports > > <Directory "/home/*/public_html"> > etc. > > as well as regular expression matches using '~'. sorry to intrude, but what is the problem with that? -- dams |
From: Justin Y. <ju...@sk...> - 2003-04-11 02:17:22
|
Christian, Jason and I have updated our library so that you should now be able to compile it without glibmm. You'll still need libsigc++-1.2 and glib-2.0, but hopefully you've already got those installed. Let us know if you have any trouble. Justin -- SkiingYAC Custom Solutions http://www.SkiingYAC.com |
From: Jason L. <jl...@me...> - 2003-04-10 21:54:05
|
Justin, You're right that a tree-based approach (that simulates the directory-tree of the server) would be too complicated. I realized today that Apache also supports <Directory "/home/*/public_html"> etc. as well as regular expression matches using '~'. This would lead to something more like... <apache> <global-settings> <default-host> <directory match="/">... <directory match="/home/httpd/html">... <files regexp_match="^.ht">... </default-host> <virtual-host name="foo"> ... </virtual-host> <virtual-host name="bar"> ... </virtual-host> </apache> As for the IfDefine stuff, you raise some good points... I'll have to think about that for a while. Jason |
From: Justin Y. <ju...@sk...> - 2003-04-10 20:03:09
|
On a side note, I looked at the URL you sent me Jason and I got it to compile but I'm messing up the pointers in the function call... I've been looking over Apache's configuration format to figure out what needs to be done to support it. The good news is that apache 2 and apache 1.3 are very similar configuration-wise, so we shouldn't have to do much to support one once the other is supported. Also, proftp is going to require about the exact same support that apache will, so it too will should easy to support once the framework is in place. Here are some of the more major things I've observed that we can't handle with Apache: 1) Inherited defaults We have no way of doing this for samba either, but apache makes heavy use of them. 2) Conditional validation/defaults Some directives or values of directives are only valid under certain circumstances, for example a VirtualHost block can only specify an address and port that have already been specified in a Listen directive. Another example is that for apache 2, the default number of threads/processes running to handle requests depends on what type of threads the server is configured/compiled to use. There are a bunch more important examples of this where the value of another directive changes whether other directives are allowed or make sense. I know samba had a few obscure cases of this, but we pretty much ignored it temporarily because it wasn't as big of an issue. Some type of value-based validation language will need to be added at some point. 3) Hierarchy of XML (in the sense of Ifdefine/Ifmodule) Some directives are only applied if the test on the IfDefine or IfModule block they're in is true. There are problems with both possible solutions, either nesting them inside an ifdefine or ifmodule tag in the xml, or having ifdefine_start and ifdefine_end tags surround them. In the second case, the waters will get very muddled if we don't put directives in an IfDefine or IfModule section as children of that section. For example, consider the following: <VirtualHost 10.1.1.1> <IfDefine BOBS_SERVER> ServerName bobsserver.com </IfDefine> <IfDefine FREDS_SERVER> ServerName fredsserver.com </IfDefine> </VirtualHost> So, both servernames are direct children of the virtualhost node in the XML, which one gets addressed when you lookup virtualhost.servername ? To properly handle this, we really need a system smart enough to check which value should be addressed based on the tests in the IfDefine. For the first case of putting directives as children of ifdefine/ifmodules, it is difficult to address them, as you'd have to request global.ifdefine.mydirective instead of global.mydirective, which will cause a lot of problems. We could solve this one way by making ifdefine a special type of section, sortof a "semi-transparent" section whose children can be addressed as if they were children of the transparent section's parent. Of course, we'd need to determine whether the test is true or not to determine whether or not to allow addressing to go *transparently* through, if its false then you'd have to address is using global.ifdefine.mydirective. 4) VirtualHost/Directory/Filename hierarchy First off, the easiest approach is to directly translate the config file into XML structured the same way as it is. It also seems that reorganizing the XML is not going to work for the reasons we talked about on the way back from Commnav, there's not a 1 to 1 mapping. I *think* that it may be possible to avoid reorganizing altogether. What if we display the config file basically as it is natively, and then we'll need a system to perform the pattern matching against given files/directories to let users see the settings for that file/directory. Of course, we could also auto-create a list of those files/directories specifically mentioned in the config file which would handle most, if not all, of the things the user would want to see. When a user wants to add/edit/remove a setting, they need to specify whether the change should apply to everything, just a virtualhost, a directory, or a file, and if there are more than 1 matching directory/file sections, which of those it should apply to. Additionally, they would specify say, if you want to change the default global setting to not display directory listings, whether or not other directory/virtualhost/file sections should have any contradictory settings removed. Something like an "Apply change recursively" checkbox would do the trick. I think that maybe boiling apache/proftp down so that you have a browseable directory tree showing all the values might be too abstract. The thing that's really got me thinking this way is that at some point you have to ask the user about the scope of the change they're making. Maybe there are ways to do that in a completely tree-based approach, perhaps it would even be possible/better to implement 2 different views... I'm not sure about these things, but they're some ideas I've come up with. I probably need to come up with a few drawings so that some of this makes sense. Justin -- SkiingYAC Custom Solutions http://www.SkiingYAC.com |
From: Jason L. <jl...@me...> - 2003-04-10 19:18:40
|
Try this link: http://developer.gnome.org/doc/API/2.0/glib/glib-Spawning-Processes.html Jason >>> Justin Yackoski <ju...@sk...> 04/10/03 01:58PM >>> Yeah, I saw that you changed them. It doesn't matter much to me whether we keep glib. You'll have to be a little more specific on the details of how to replace the C++ versions of those functions with the C counterparts... I searched google and couldn't find any of those functions except in glibmm, since trying to use C versions was my first thought. I have no idea how common glib is, though I believe it exists on most unixes... I know I've never used a linux distro that didn't have it. Justin |
From: Justin Y. <ju...@sk...> - 2003-04-10 17:58:48
|
Yeah, I saw that you changed them. It doesn't matter much to me whether we keep glib. You'll have to be a little more specific on the details of how to replace the C++ versions of those functions with the C counterparts... I searched google and couldn't find any of those functions except in glibmm, since trying to use C versions was my first thought. I have no idea how common glib is, though I believe it exists on most unixes... I know I've never used a linux distro that didn't have it. Justin On Thu, 10 Apr 2003 13:45:51 -0400 "Jason Long" <jl...@me...> wrote: > I assume you already noticed I replaced glib::ustring with std::string. > > Do we want to remove glib (the C library and C++ wrapper library) > completely or just glibmm (the wrapper library)? If the former, you can just > replace the spawn calls with their C counterparts. This wouldn't be too bad > because glib is a much easier dependency to satisfy than glibmm. > > If the latter, we'll also need to change code in CfgTypeRegistry, which > uses a hash table implementation from glib. I'm pretty sure there is a STL > equivalent. > > Jason > > >>> Justin Yackoski <ju...@sk...> 04/10/03 12:19PM >>> > Jason, > > I've removed all of the Glib::getenv and Glib::file_get_contents, we just > need to take care of the two Glib::spawn calls. I suspect they'll be a > little hard to replace, but I'll try to do it shortly since I'm pretty bored > here... > > Justin > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger > for complex code. Debugging C/C++ programs can leave you feeling lost and > disoriented. TotalView can help you find your way. Available on major UNIX > and Linux platforms. Try it free. www.etnus.com > _______________________________________________ > Config4gnu-developer mailing list > Con...@li... > https://lists.sourceforge.net/lists/listinfo/config4gnu-developer > > -- SkiingYAC Custom Solutions http://www.SkiingYAC.com |
From: Jason L. <jl...@me...> - 2003-04-10 17:41:48
|
I assume you already noticed I replaced glib::ustring with std::string. Do we want to remove glib (the C library and C++ wrapper library) completely or just glibmm (the wrapper library)? If the former, you can just replace the spawn calls with their C counterparts. This wouldn't be too bad because glib is a much easier dependency to satisfy than glibmm. If the latter, we'll also need to change code in CfgTypeRegistry, which uses a hash table implementation from glib. I'm pretty sure there is a STL equivalent. Jason >>> Justin Yackoski <ju...@sk...> 04/10/03 12:19PM >>> Jason, I've removed all of the Glib::getenv and Glib::file_get_contents, we just need to take care of the two Glib::spawn calls. I suspect they'll be a little hard to replace, but I'll try to do it shortly since I'm pretty bored here... Justin |
From: Justin Y. <ju...@sk...> - 2003-04-10 16:19:44
|
Jason, I've removed all of the Glib::getenv and Glib::file_get_contents, we just need to take care of the two Glib::spawn calls. I suspect they'll be a little hard to replace, but I'll try to do it shortly since I'm pretty bored here... Justin On Thu, 10 Apr 2003 10:15:45 -0400 "Jason Long" <jl...@me...> wrote: > I suspected that gtkmm would be hard to build. Even on Gentoo, if you don't > keep your system up-to-date, building a recent version of gtkmm requires a > number of upgrades to dependencies. > > Give us a few days; we'll try to remove that glibmm dependency for the > library. I don't think it will be too hard. > > I believe the only other dependency is Xerces-C++. I'll review the INSTALL > file and make sure that the Xerces stuff is clear. > > Jason > > >>> "Christian L Pearce " <pe...@co...> 04/10/03 08:45 AM >>> > I suffer from the "give me a Red Hat rpm" syndrome. Since there isn't a > quick and dirty gtkmm rpm for the version you guys require I tried using the > --disable-gtkmm. But configure still wants glibmm. Which, correct me if I > am wrong, is part of gtkmm. You guys mentioned removing this as a > dependency. Is easy for you guys to do? The gtkmm build requires a lot of > dependencies that suck for a Red Hat box. Sorry I am extremely lazy when it > comes to building from source. > > With this dependency out of the way is there anything else configure wants > that Red Hat doesn't have in there distrobution? > > Makes me wish I still had Gentoo install on my laptop. Maybe today I will > install it on another machine. > > BTW: Is the Libconf project still something you guys are planning on > working with? And what happened with the Unixconfig project? > > -- > Christian Pearce > www.commnav.com > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger > for complex code. Debugging C/C++ programs can leave you feeling lost and > disoriented. TotalView can help you find your way. Available on major UNIX > and Linux platforms. Try it free. www.etnus.com > _______________________________________________ > Config4gnu-developer mailing list > Con...@li... > https://lists.sourceforge.net/lists/listinfo/config4gnu-developer > > -- SkiingYAC Custom Solutions http://www.SkiingYAC.com |
From: Christian L P. <pe...@co...> - 2003-04-10 14:27:50
|
The Xerces-C++ was fairly straightforward. I just grabbed the binary. Installed it into /usr/local directory. Added a line to ld.so.conf. I then set the XERCESCROOT per the INSTALL file. While we are on the topic of the INSTALL guide you need to run autogen.sh. Though I guess people who check out code from cvs already know this. I am still going to forge ahead with getting Gentoo up and running. The mirrors are swamped right now. -- Christian Pearce www.commnav.com On Thu, 10 Apr 2003 10:15:45 -0400, Jason Long wrote: > > I suspected that gtkmm would be hard to build. Even on Gentoo, if you don't > keep your system up-to-date, building a recent version of gtkmm requires a > number of upgrades to dependencies. > > Give us a few days; we'll try to remove that glibmm dependency for the > library. I don't think it will be too hard. > > I believe the only other dependency is Xerces-C++. I'll review the INSTALL > file and make sure that the Xerces stuff is clear. > > Jason > > >>> "Christian L Pearce " <pe...@co...> 04/10/03 08:45 AM >>> > I suffer from the "give me a Red Hat rpm" syndrome. Since there isn't a > quick and dirty gtkmm rpm for the version you guys require I tried using the > --disable-gtkmm. But configure still wants glibmm. Which, correct me if I > am wrong, is part of gtkmm. You guys mentioned removing this as a > dependency. Is easy for you guys to do? The gtkmm build requires a lot of > dependencies that suck for a Red Hat box. Sorry I am extremely lazy when it > comes to building from source. > > With this dependency out of the way is there anything else configure wants > that Red Hat doesn't have in there distrobution? > > Makes me wish I still had Gentoo install on my laptop. Maybe today I will > install it on another machine. > > BTW: Is the Libconf project still something you guys are planning on > working with? And what happened with the Unixconfig project? > > -- > Christian Pearce > www.commnav.com > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger > for complex code. Debugging C/C++ programs can leave you feeling lost and > disoriented. TotalView can help you find your way. Available on major UNIX > and Linux platforms. Try it free. www.etnus.com > _______________________________________________ > Config4gnu-developer mailing list > Con...@li... > https://lists.sourceforge.net/lists/listinfo/config4gnu-developer > |
From: Jason L. <jl...@me...> - 2003-04-10 14:16:00
|
I suspected that gtkmm would be hard to build. Even on Gentoo, if you don't keep your system up-to-date, building a recent version of gtkmm requires a number of upgrades to dependencies. Give us a few days; we'll try to remove that glibmm dependency for the library. I don't think it will be too hard. I believe the only other dependency is Xerces-C++. I'll review the INSTALL file and make sure that the Xerces stuff is clear. Jason >>> "Christian L Pearce " <pe...@co...> 04/10/03 08:45 AM >>> I suffer from the "give me a Red Hat rpm" syndrome. Since there isn't a quick and dirty gtkmm rpm for the version you guys require I tried using the --disable-gtkmm. But configure still wants glibmm. Which, correct me if I am wrong, is part of gtkmm. You guys mentioned removing this as a dependency. Is easy for you guys to do? The gtkmm build requires a lot of dependencies that suck for a Red Hat box. Sorry I am extremely lazy when it comes to building from source. With this dependency out of the way is there anything else configure wants that Red Hat doesn't have in there distrobution? Makes me wish I still had Gentoo install on my laptop. Maybe today I will install it on another machine. BTW: Is the Libconf project still something you guys are planning on working with? And what happened with the Unixconfig project? -- Christian Pearce www.commnav.com |