On Tue, Aug 13, 2002 at 01:49:34PM +0200, Lutz Jaenicke wrote: > I am building ethereal 0.9.5 on HP-UX 10.20 and found two minor build > problems: > * In capture.c:1329, after "case PD_ERR:" there is only a comment and then > the closing "}" for the switch() statement. HP's ANSI C compiler cannot > handle this syntax. I thus had to insert a ";" as empty operation.
When writing code for Ethereal, people should read section 1.1.1 "Portability" in the "README.developer" file; it tells you not do do certain things - including having labels (which includes case labels) without a statement following them - because, although the compiler they're using might let them get away with that, other compilers won't. I've checked in a fix. > * When building .libs/etherealS.o (and similar), compilation is performed > as in (cd .libs && cc -c +Z -DPIC "etherealS.c"). This means that > CFLAGS are not passed. This omits optimization (probably void for this > file), and special settings like +Ae to enable ANSI mode (but doesn't matter > in this case) or +DAportable (architecture setting, that one DOES hurt > in my case). I have worked around by modifying libtool for the moment. That sounds like a libtool problem; you might want to submit that as a bug to the libtool maintainers.
