From: Kern S. <ke...@si...> - 2002-04-20 18:53:24
|
Hello Tuck, Can you tell me what operating system and compiler you are using? I see from the compiler output that I last edited the file on a Windows machine (I rarely do so), and so the line terminator is a carriage return 0xd rather than a newline. Normally, I reconvert files to Unix format, but it really should not matter. In any case, I'll be more careful in the future. I attach the current file from version 1.18, which should work fine on your 1.16. Best regards, Kern On Sat, 2002-04-20 at 20:35, Carl Tuck Hartshorn wrote: > I took out the escape to get it compile. I also removed the --gnome-gui > thing, that had all sorts of problems with include files overriding other. > But, without the escape and your other suggestion about the terabyte problem, > it make's and install's fine. So, I can get on with using Bacula. > > I put the escape back in to reproduce the problem for the list: > > > make[1]: Leaving directory `/home/carl/Downloads/bacula-1.16/doc' > ==>Entering directory /home/carl/Downloads/bacula-1.16/src/lib > make[1]: Entering directory `/home/carl/Downloads/bacula-1.16/src/lib' > c++ -c -I. -I.. -g -O2 parse_conf.c > parse_conf.c: In function `void s_err(char *, int, LEX *, char *, ...)': > parse_conf.c:668: unknown escape sequence: `\' followed by char code 0xd > make[1]: *** [parse_conf.o] Error 1 > make[1]: Leaving directory `/home/carl/Downloads/bacula-1.16/src/lib' > ==>Entering directory /home/carl/Downloads/bacula-1.16/src/findlib > make[1]: Entering directory `/home/carl/Downloads/bacula-1.16/src/findlib' > ==== Make of findlib is good ==== > > > > The problem area: > > void s_err(char *file, int line, LEX *lc, char *msg, ...) > { > va_list arg_ptr; > char buf[MAXSTRING]; > > va_start(arg_ptr, msg); > bvsnprintf(buf, sizeof(buf), msg, arg_ptr); > va_end(arg_ptr); > > e_msg(file, line, M_ABORT, 0, "Config error: %s,\n\ <== line 668 > : Line %d, col %d of file %s\n%s\n", > buf, lc->line_no, lc->col_no, lc->fname, lc->line); > } > > > BTW, the original line# is 669. > Tuck > On Saturday 20 April 2002 10:20, Kern Sibbald wrote: > > Yes, exactly, it is escaping the end of line. > > This is standard C and C++ syntax. > > If you compiler is producing an error, please > > send it to the list. > > > > Changing the line will likely break the code. > > > > Best regards, > > > > Kern > > > > On Sat, 2002-04-20 at 18:42, Carl Tuck Hartshorn wrote: > > > On Saturday 20 April 2002 01:13, Kern Sibbald wrote: > > > > Hello, > > > > > > > > > > > > Concerning line 679 (in my source). It looks > > > > fine to me the trailing \ with nothing > > > > after it is a continuation, and the rest of the output > > > > is on the next line. > > > > > > But, it is inside a string so it an 'escape' (I think) and it is escaping > > > the endofline. I'll just remove it. > > > > > > Thanks for all your help!! > > > > > > > > > _______________________________________________ > > > Bacula-users mailing list > > > Bac...@li... > > > https://lists.sourceforge.net/lists/listinfo/bacula-users > > _______________________________________________ > Bacula-users mailing list > Bac...@li... > https://lists.sourceforge.net/lists/listinfo/bacula-users |