<br>In redhat system, swab is declar in /usr/include/unistd.h.<br> For this issue, you can also add this line of code :<br><br>#ifdef linux<br>/* WHERE IS swab on redhat ??? */<br>#include </usr/include/unistd.h><br>#include <sys/types.h><br>//void swab(const void *src, void *dest, size_t nbytes);<br>#endif<br><br>Best regards,<br><br>Samuel BURG<br><br><b><i>Miguel Couceiro <couceiro@lipc.fis.uc.pt></i></b> a écrit :<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> Hi<br><br><br>Open the file "machine_indep.h", and comment line 23. It should look<br>like this<br><br><br>#ifdef linux<br>/* WHERE IS swab on redhat ??? */<br>#include <sys><br>//void swab(const void *src, void *dest, size_t nbytes);<br>#endif<br><br><br>Hope this helps<br><br>Miguel<br><br><br>±èÁø¼ö wrote:<br>><br>> Hello Gate users<br>><br>> I have downloaded ecat.tar.gz and I followed the
instructions<br>><br>> After extraction I placed the files into the directories specified in<br>> the GATE User's Guide.<br>><br>> /usr/local/ecat7/lib/Linux-g++/libecat.a<br>> /usr/local/ecat7/include/matrix.h<br>> /usr/local/ecat7/include/machine_indep.h<br>><br>> the enviromental variable ECAT7_HOME was set to<br>> "setenv ECAT7_HOME=/usr/local/ecat7"<br>> in the gate_env.csh<br>><br>> However, during compiling GATE, some errors message was occured as<br>> followings<br>><br>><br>> error **************************************<br>> Compiling GateEcatAccelSystem.cc ...<br>> /usr/local/ecat7/include/machine_indep.h:23: error: declaration of C<br>> function ? void swab(const void*, void*, size_t)??conflicts with<br>> /usr/include/unistd.h:1032: error: previous declaration? void<br>> swab(const void*, void*, ssize_t)??here<br>> make: *** [tmp/Linux-g++/Gate/GateEcatAccelSystem.o] Error 1<br>><br>>
*******************************************<br>><br>> Why this error message was occured?<br>><br>> Best regards<br>><br>> JS<br>><br>><br>><br>><br>><br>> Following message was displayed when type"source gate_env.csh"<br>><br>> The current value of G4INSTALL is: /home/gate/geant4.8.1.p02<br>> The current value of G4VERSION is: 8.0<br>> Launching Geant4 configuration script /home/gate/geant4.8.1.p02/env.csh<br>><br>> On this machine the G4SYSTEM=Linux-g++<br>> On this machine the G4INSTALL=/home/gate/geant4.8.1.p02<br>> On this machine the G4LIB=/home/gate/geant4.8.1.p02/lib<br>> On this machine the<br>> G4LEVELGAMMADATA=/home/gate/geant4.8.1.p02/data/PhotonEvaporation2.0<br>> On this machine the<br>> G4RADIOACTIVEDATA=/home/gate/geant4.8.1.p02/data/RadiativeDecay3.0<br>> On this machine the G4LEDATA=/home/gate/geant4.8.1.p02/data/G4EMLOW4.0<br>> On this machine the<br>>
NeutronHPCrossSections=/home/gate/geant4.8.1.p02/data/G4NDL3.9<br>> On this machine the<br>> G4ELASTICDATA=/home/gate/geant4.8.1.p02/data/G4ELASTIC1.1<br>> On this machine the CLHEP_BASE_DIR=/home/gate/clhep_1.9.2.3<br>> On this machine the CLHEP_INCLUDE_DIR=/home/gate/clhep_1.9.2.3/include<br>> On this machine the CLHEP_LIB_DIR=/home/gate/clhep_1.9.2.3/lib<br>> On this machine the CLHEP_LIB=CLHEP<br>> On this machine the G4VIS_BUILD_OPENGLX_DRIVER=1<br>> On this machine the G4VIS_USE_OPENGLX=1<br>> On this machine the XMFLAGS=<br>> On this machine the XMLIBS=<br>> On this machine the XMFLAGS=<br>> On this machine the XMLIBS=<br>> On this machine the XAWFLAGS=<br>> On this machine the XAWLIBS=<br>> On this machine the G4LIB_BUILD_STATIC=1<br>> On this machine the G4LIB_USE_GRANULAR=1<br>> On this machine the G4UI_USE_TCSH=1<br>> In your environment you have the G4WORKDIR=.<br>> Checking your LD_LIBRARY_PATH
variable<br>> ==> /home/gate/clhep_1.9.2.3/lib is already in your LD_LIBRARY_PATH<br>><br>> Configuring GATE options<br>><br>> G4WORKDIR set to .<br>> G4TMP set to ./tmp<br>> G4BIN set to ./bin<br>> Data analysis and output features enabled<br>> Ascii data output enabled<br>> Transport and generation of optical photons is enabled<br>> Checking your LD_LIBRARY_PATH variable...<br>> ==> OK: /home/gate/root/lib is already in your LD_LIBRARY_PATH<br>> Use of ROOT enabled<br>> ROOT real-time plotter disabled<br>> Checking your LD_LIBRARY_PATH variable...<br>> ==> OK: /home/gate/LMF/lib added to your LD_LIBRARY_PATH<br>> LMF data output enabled<br>> ECAT7 data output enabled<br>> GATEHOME is set to /home/gate/gate_v3.0.0<br>> Checking your path variable...<br>> ==> OK: /home/gate/gate_v3.0.0/bin/Linux-g++ is already in your path<br>> variable<br>> G4VERSION7_1 is not set: GATE is not compatible with
the geant4<br>> version 7.1<br>> G4VERSION8_0 is set: GATE is compatible with the geant4 version 8.0<br>><br>> Done<br>><br>><br>> ------------------------------------------------------------------------<br>><br>> _______________________________________________<br>> Gate-users mailing list<br>> Gate-users@lists.healthgrid.org<br>> http://lists.healthgrid.org/mailman/listinfo/gate-users<br>> <br>begin:vcard<br>fn:Miguel Couceiro<br>n:Couceiro;Miguel<br>org;quoted-printable:Laborat=C3=B3rio de Instrumenta=C3=A7=C3=A3o e F=C3=ADsica Experimental=<br> de Part=C3=ADculas<br>adr;quoted-printable:Universidade de Coimbra;;Departamento de F=C3=ADsica;Coimbra;Coimbra;3004-516;Portugal<br>email;internet:couceiro@lipc.fis.uc.pt<br>tel;work:+351 239 833 465<br>tel;fax:+351 239 822 358<br>tel;cell:+351 919 841
615<br>x-mozilla-html:FALSE<br>url:http://mars.fis.uc.pt<br>version:2.1<br>end:vcard<br><br>_______________________________________________<br>Gate-users mailing list<br>Gate-users@lists.healthgrid.org<br>http://lists.healthgrid.org/mailman/listinfo/gate-users<br></sys></blockquote><br><p> 
<hr size="1">
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions !
Profitez des connaissances, des opinions et des expériences des internautes sur <a href="http://fr.rd.yahoo.com/evt=42054/*http://fr.answers.yahoo.com">Yahoo! Questions/Réponses</a>.