Problem 696 - Compilation error (invalid conversion) when compiling inflate.cc
Summary: Compilation error (invalid conversion) when compiling inflate.cc
Status: CLOSED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: visualization (show other problems)
Version: 6.2
Hardware: PC Linux
: P2 major
Assignee: Mark.Donszelmann
URL:
Depends on:
Blocks:
 
Reported: 2004-11-30 02:07 CET by w.stiller
Modified: 2004-12-02 15:47 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 w.stiller 2004-11-30 02:07:14 CET
Installation of Geant 4.6.2 on a AMD dual Opteron system running 64bit SuSe 9.1
Linux

The problem appears when compiling the file inflate.cc. The following output is
given:


Compiling inflate.cc ...
src/inflate.cc: In function `int heprep_z_inflateInit2_(z_stream*, int, const
   char*, int)':
src/inflate.cc:125: error: invalid conversion from `long unsigned int (*)(long
   unsigned int, const unsigned char*, unsigned int)' to `heprep_z_uLong
   (*)(unsigned int, const heprep_z_Bytef*, unsigned int)'
gmake[2]: *** [/Geant4/tmp/Linux-g++/G4visHepRep/inflate.o] Error 1


I hope someone can help me to solve the problem.

Thank you very much for your time and effort.

Wolfram
Comment 1 w.stiller 2004-11-30 05:34:59 CET
The g++/gcc version is 3.3.3
Comment 2 Mark.Donszelmann 2004-11-30 10:01:59 CET
Our AMD machine has the 3.4 gcc compiler and as far as I remember G4.6.2 does not
compile at all using this compiler.

The latest VIS tag for G4.7.0 (in CVS) does compile under 3.4 and the zlib version for this
was upgraded.

Since no interfaces in HepRep have changed, you could try the vis-HepRep tag, or I
could tar up the code for you and send it.

Another possibility is that you give me access to the machine and I try to fix it.

Regards
Mark Donszelmann
Comment 3 w.stiller 2004-12-01 05:46:59 CET
I would prefer the tared-up code (with some instructions what to do/replace) for
the first try. I will set up my machine so it will accept outside connections in
the meantime. Should I fail fixing the problem with the tarball I would be
grateful if you could try to fix the problem via accessing my machine. Is that
ok for you?

Best regards

Wolfram
Comment 4 Mark.Donszelmann 2004-12-02 15:46:59 CET
ftp://ftp.slac.stanford.edu/software/geant4/

contains a file:

HepRep-AMD64-G4.7.0-0.tar.gz
HepRep-AMD64-G4.7.0-0.README

which is a update to the HepRep driver and the included zlib code for usage with
G4.6.2.

The same driver is included in Geant 4.7.0