MantisBT - ParaView | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0012924 | ParaView | (No Category) | public | 2012-02-09 13:06 | 2012-07-18 19:18 |
| Reporter | td123 | ||||
| Assigned To | Utkarsh Ayachit | ||||
| Priority | normal | Severity | minor | Reproducibility | have not tried |
| Status | closed | Resolution | fixed | ||
| Platform | OS | OS Version | |||
| Product Version | 3.12 | ||||
| Target Version | 3.14.1 | Fixed in Version | 3.14.1 | ||
| Project | TBD | ||||
| Topic Name | 12924_fix_zlib_build_issues | ||||
| Type | incorrect functionality | ||||
| Summary | 0012924: [patch included] Paraview 3.12.0 fails to build with zlib 1.2.6, invalid conversion from 'void*' to 'gzFile' | ||||
| Description | I'm using archlinux with gcc 4.6.2 with zlib 1.2.6. When compiling against the system zlib, I get the following errors: [ 67%] Building CXX object Utilities/VisItBridge/databases/CMakeFiles/vtkVisItDatabases.dir/BOV/avtBOVFileFormat.C.o /build/src/ParaView-3.12.0/Utilities/VisItBridge/databases/BOV/avtBOVFileFormat.C: In member function 'void avtBOVFileFormat::ReadWholeAndExtractBrick(void*, bool, void*, void*, long long unsigned int, long long unsigned int, long long unsigned int, long long unsigned int, long long unsigned int, long long unsigned int, long long unsigned int, long long unsigned int, long long unsigned int, long long unsigned int)': /build/src/ParaView-3.12.0/Utilities/VisItBridge/databases/BOV/avtBOVFileFormat.C:706:51: error: invalid conversion from 'void*' to 'gzFile' [-fpermissive] /usr/include/zlib.h:1698:28: error: initializing argument 1 of 'off_t gzseek(gzFile, off_t, int)' [-fpermissive] /build/src/ParaView-3.12.0/Utilities/VisItBridge/databases/BOV/avtBOVFileFormat.C:709:62: error: invalid conversion from 'void*' to 'gzFile' [-fpermissive] /usr/include/zlib.h:1290:21: error: initializing argument 1 of 'int gzread(gzFile, voidp, unsigned int)' [-fpermissive] /build/src/ParaView-3.12.0/Utilities/VisItBridge/databases/BOV/avtBOVFileFormat.C: In member function 'virtual vtkDataArray* avtBOVFileFormat::GetVar(int, const char*)': /build/src/ParaView-3.12.0/Utilities/VisItBridge/databases/BOV/avtBOVFileFormat.C:1049:55: error: invalid conversion from 'void*' to 'gzFile' [-fpermissive] /usr/include/zlib.h:1698:28: error: initializing argument 1 of 'off_t gzseek(gzFile, off_t, int)' [-fpermissive] /build/src/ParaView-3.12.0/Utilities/VisItBridge/databases/BOV/avtBOVFileFormat.C:1052:57: error: invalid conversion from 'void*' to 'gzFile' [-fpermissive] /usr/include/zlib.h:1290:21: error: initializing argument 1 of 'int gzread(gzFile, voidp, unsigned int)' [-fpermissive] /build/src/ParaView-3.12.0/Utilities/VisItBridge/databases/BOV/avtBOVFileFormat.C:1195:26: error: invalid conversion from 'void*' to 'gzFile' [-fpermissive] /usr/include/zlib.h:1488:24: error: initializing argument 1 of 'int gzclose(gzFile)' [-fpermissive] make[2]: *** [Utilities/VisItBridge/databases/CMakeFiles/vtkVisItDatabases.dir/BOV/avtBOVFileFormat.C.o] Error 1 make[1]: *** [Utilities/VisItBridge/databases/CMakeFiles/vtkVisItDatabases.dir/all] Error 2 make: *** [all] Error 2 I found that someone on http://forum.fobby.net/index.php?t=msg&th=701&start=0 [^] also encountered this problem and said that it was due to "gzFile not being a typedef of voidp anymore in zlib-1.2.6". I wrote a patch which fixes paraview building against zlib 1.2.6. Attached as fix-build-with-zlib-1.2.6.diff Although visit is an external library, it doesn't have a public bug tracker or version control system, or that one I could find. So I'm submitting this bug to paraview since you maintain an internal copy. | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | https://www.vtk.org/Bug/file/9114/fix-build-with-zlib-1.2.6.diff https://www.vtk.org/Bug/file/9126/visitbridge-gzfile.patch | ||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2012-02-09 13:06 | td123 | New Issue | |||
| 2012-02-09 13:06 | td123 | File Added: fix-build-with-zlib-1.2.6.diff | |||
| 2012-03-03 19:16 | Jed Brown | File Added: visitbridge-gzfile.patch | |||
| 2012-03-03 19:18 | Jed Brown | Note Added: 0028337 | |||
| 2012-03-05 13:16 | Utkarsh Ayachit | Target Version | => 3.14.1 | ||
| 2012-03-09 12:07 | Utkarsh Ayachit | Topic Name | => 12924_fix_zlib_build_issues | ||
| 2012-03-09 12:07 | Utkarsh Ayachit | Note Added: 0028347 | |||
| 2012-03-09 12:07 | Utkarsh Ayachit | Status | backlog => gatekeeper review | ||
| 2012-03-09 12:07 | Utkarsh Ayachit | Resolution | open => fixed | ||
| 2012-03-09 12:07 | Utkarsh Ayachit | Assigned To | => Utkarsh Ayachit | ||
| 2012-03-09 12:07 | Utkarsh Ayachit | Fixed in Version | => git-next | ||
| 2012-03-16 14:22 | Utkarsh Ayachit | Fixed in Version | git-next => git-master | ||
| 2012-03-16 14:23 | Utkarsh Ayachit | Status | gatekeeper review => customer review | ||
| 2012-03-16 14:23 | Utkarsh Ayachit | Note Added: 0028370 | |||
| 2012-04-05 17:03 | Utkarsh Ayachit | Fixed in Version | git-master => 3.14.1 | ||
| 2012-07-18 19:18 | Alan Scott | Note Added: 0028807 | |||
| 2012-07-18 19:18 | Alan Scott | Status | customer review => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||