Problem 559 - symbol CSTART in G4InterpolationScheme.hh
Summary: symbol CSTART in G4InterpolationScheme.hh
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: processes/hadronic/models (show other problems)
Version: other
Hardware: PC Linux
: P2 normal
Assignee: Hans-Peter.Wellisch
URL:
Depends on:
Blocks:
 
Reported: 2003-12-18 08:20 CET by ersmark
Modified: 2004-01-23 10:00 CET (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description ersmark 2003-12-18 08:20:47 CET
The preprocessor symbol CSTART is (can be?) defined in linux systems
---
> pwd
/usr/include

> grep -r CSTART .
./sys/ttydefaults.h:#define     CSTART          CTRL('q')
./sys/ttydefaults.h:    _POSIX_VDISABLE, CINTR, CQUIT,  CSUSP,  CDSUSP, CSTART,
CSTOP,  CLNEXT,
---

ttydefaults.h may be pulled into user code implicitly by way of G4UIterminal.hh.
If this is done before G4InterpolationScheme.hh is included (implicitly) errors
such as
---
/home/ersmark/sim/g4/include/G4InterpolationScheme.hh:39: warning: comma at end
of enumerator list
/home/ersmark/sim/g4/include/G4InterpolationScheme.hh:39: internal error:
Segmentation fault
---
are generated.

Preprocessor output demonstrating the problem:
---
> cpp -I/home/ersmark/sim/g4/hadronic_lists/include
-I/home/ersmark/sim/g4/include usercode.cc | grep -A5 'enum G4InterpolationScheme'
...
enum G4InterpolationScheme
{
  START, HISTO, LINLIN, LINLOG, LOGLIN, LOGLOG, RANDOM,
  ('q'&037), CHISTO, CLINLIN, CLINLOG, CLOGLIN, CLOGLOG, CRANDOM,
  USTART, UHISTO, ULINLIN, ULINLOG, ULOGLIN, ULOGLOG, URANDOM
};
...
---

I have encountered this problem when trying to use the xyz_HP hadronic physics
lists distributed with 6.0.

System: Geant4 6.0; shared global libs., Gentoo Linux 1.4, gcc 3.2.3
Comment 1 Hans-Peter.Wellisch 2004-01-23 10:00:59 CET
Thank you for the bug report. It is fiixed now, and will go out at the next
possibility.

Many greetings,

Hans-Peter.