[therion-users] Re: therion does a seg fault when I try and run it
mikel at speleonics.com.au
Fri Sep 5 06:22:11 CEST 2003
I have been looking at the problem of the compilation on the PowerPC
and started looking at some of the compilation errors too.
thpoint.cxx:446: warning: `.' not followed by `*' or digit in format
thats because you have at this line the following...
should that be instead the following?
The following is more serious.
thpoint.cxx:731: warning: assignment of negative value `-1' to `char'
void thpoint_parse_value(int & sv, double & dv, bool & qw, char & sign,
char * str)
and later on....
sign = -1;
OK my programming skills are rudimentary but if you assign a negative
a character pointer then the variable will give a different value depending
whether the operating system is 32 or 64 bit. My Alpha is 64 bit.
The compiler warns about it and rightly so.
3. I have tracked down where the strange string comes from when I run
therion$ ./therion -v
it's from thcmdline.cxx where it uses the getopt routines.
oc = getopt_long (argc, argv, "gduxs:l:qLvhip:",
I read the man 3 page on getopt and so now I know what the
gduxs:l:qLvhip: string is -- never used getopt myself.
So somehow instead of the version string being returned its returning
the argument to the getopt_long function ! eeeewwww :-)
The version of getopt on my Ti PowerBook here running Debian 3.0 is
therion$ getopt --version
getopt (enhanced) 1.1.2
Caver, Linux enthusiast and interested in anything technical.
More information about the Therion