Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building mapserver 7.0 checker on openSUSE complain mapserver 64bit-portability-issue in mapthread.c #5137

Closed
tigerfoot opened this issue Aug 11, 2015 · 0 comments

Comments

@tigerfoot
Copy link
Contributor

@tigerfoot tigerfoot commented Aug 11, 2015

E: mapserver 64bit-portability-issue /home/abuild/rpmbuild/BUILD/mapserver-7.0.0/mapthread.c:191

I've no idea how to fix it.
Mapserver is configured with the following option.

%cmake \
  -DCMAKE_INSTALL_PREFIX=%{_prefix} \
    -DCMAKE_SKIP_RPATH=ON \
    -DCMAKE_C_FLAGS_RELEASE="%{optflags} -fno-strict-aliasing" \
    -DCMAKE_CXX_FLAGS_RELEASE="%{optflags} -fno-strict-aliasing" \
    -DCMAKE_VERBOSE_MAKEFILE=ON \
    -DCMAKE_BUILD_TYPE="Release" \
    -DCMAKE_SKIP_INSTALL_RPATH=ON \
    -DCMAKE_SKIP_RPATH=ON \
    -DWITH_CAIRO=TRUE \
    -DWITH_CLIENT_WFS=TRUE \
    -DWITH_CLIENT_WMS=TRUE \
    -DWITH_CURL=TRUE \
    -DWITH_FCGI=TRUE \
  -DWITH_FRIBIDI=FALSE \
  -DWITH_HARFBUZZ=FALSE \
    -DWITH_GDAL=TRUE \
    -DWITH_GEOS=TRUE \
    -DWITH_GIF=FALSE \
    -DWITH_ICONV=TRUE \
    -DWITH_JAVA=TRUE \
    -DWITH_KML=TRUE \
    -DWITH_LIBXML2=TRUE \
    -DWITH_OGR=TRUE \
    -DWITH_MYSQL=TRUE \
    -DWITH_PERL=TRUE \
    -DCUSTOM_PERL_SITE_ARCH_DIR="%{perl_vendorarch}" \
    -DWITH_PHP=TRUE \
    -DWITH_POSTGIS=TRUE \
    -DWITH_PROJ=TRUE \
    -DWITH_PYTHON=TRUE \
    -DWITH_RUBY=TRUE \
    -DWITH_SOS=TRUE \
    -DWITH_THREAD_SAFETY=TRUE \
    -DWITH_WCS=TRUE \
    -DWITH_WMS=TRUE \
    -DWITH_WFS=TRUE \
    -DWITH_XMLMAPFILE=TRUE \
    -DWITH_POINT_Z_M=TRUE \
    -DWITH_APACHE_MODULE=FALSE \
    -DWITH_SVGCAIRO=FALSE \
    -DWITH_CSHARP=FALSE \
    -DWITH_ORACLESPATIAL=FALSE \
    -DWITH_ORACLE_PLUGIN=FALSE \
    -DWITH_MSSQL2008=FALSE \
    -DWITH_EXEMPI=FALSE \
    \..

I guess the interesting part during the compilation are the following lines

[   60s] /usr/bin/cmake -E cmake_progress_report /home/abuild/rpmbuild/BUILD/mapserver-7.0.0/build/CMakeFiles 
[   60s] [ 24%] Building C object CMakeFiles/mapserver.dir/mapthread.c.o
[   60s] /usr/bin/gcc  -Dmapserver_EXPORTS -fmessage-length=0 -grecord-gcc-switches -fstack-protector -O2 -Wall -D_FORTIFY_SOURCE=2 -funwind-tables -fasynchronous-unwind-tables -g -fno-strict-aliasing -fPIE -pie  -Wall -Wdeclaration-after-statement -fmessage-length=0 -grecord-gcc-switches -fstack-protector -O2 -Wall -D_FORTIFY_SOURCE=2 -funwind-tables -fasynchronous-unwind-tables -g -fno-strict-aliasing -fPIC -I/home/abuild/rpmbuild/BUILD/mapserver-7.0.0/build -I/home/abuild/rpmbuild/BUILD/mapserver-7.0.0/renderers/agg/include -I/home/abuild/rpmbuild/BUILD/mapserver-7.0.0/mapscript/v8 -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/mysql -I/usr/include/fastcgi -I/usr/include/pgsql -I/usr/include/gdal -I/usr/include/libxml2 -I/home/abuild/rpmbuild/BUILD/mapserver-7.0.0    -o CMakeFiles/mapserver.dir/mapthread.c.o -c /home/abuild/rpmbuild/BUILD/mapserver-7.0.0/mapthread.c
[   60s] /home/abuild/rpmbuild/BUILD/mapserver-7.0.0/maptemplate.c: In function 'generateLegendTemplate':
[   60s] /home/abuild/rpmbuild/BUILD/mapserver-7.0.0/maptemplate.c:3053:8: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result]
[   60s]    fread(file, length, 1, stream);
[   60s]         ^
[   60s] /home/abuild/rpmbuild/BUILD/mapserver-7.0.0/maptemplate.c: In function 'processOneToManyJoin':
[   60s] /home/abuild/rpmbuild/BUILD/mapserver-7.0.0/maptemplate.c:3539:10: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result]
[   60s]      fgets(line, MS_BUFFER_LENGTH, stream); /* skip the first line since it's the magic string */
[   60s]           ^
[   60s] /usr/bin/cmake -E cmake_progress_report /home/abuild/rpmbuild/BUILD/mapserver-7.0.0/build/CMakeFiles 29
[   60s] [ 25%] Building C object CMakeFiles/mapserver.dir/mapcopy.c.o
[   60s] /usr/bin/gcc  -Dmapserver_EXPORTS -fmessage-length=0 -grecord-gcc-switches -fstack-protector -O2 -Wall -D_FORTIFY_SOURCE=2 -funwind-tables -fasynchronous-unwind-tables -g -fno-strict-aliasing -fPIE -pie  -Wall -Wdeclaration-after-statement -fmessage-length=0 -grecord-gcc-switches -fstack-protector -O2 -Wall -D_FORTIFY_SOURCE=2 -funwind-tables -fasynchronous-unwind-tables -g -fno-strict-aliasing -fPIC -I/home/abuild/rpmbuild/BUILD/mapserver-7.0.0/build -I/home/abuild/rpmbuild/BUILD/mapserver-7.0.0/renderers/agg/include -I/home/abuild/rpmbuild/BUILD/mapserver-7.0.0/mapscript/v8 -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/mysql -I/usr/include/fastcgi -I/usr/include/pgsql -I/usr/include/gdal -I/usr/include/libxml2 -I/home/abuild/rpmbuild/BUILD/mapserver-7.0.0    -o CMakeFiles/mapserver.dir/mapcopy.c.o -c /home/abuild/rpmbuild/BUILD/mapserver-7.0.0/mapcopy.c
[   60s] /home/abuild/rpmbuild/BUILD/mapserver-7.0.0/mapthread.c: In function 'msGetThreadId':
[   60s] /home/abuild/rpmbuild/BUILD/mapserver-7.0.0/mapthread.c:191:3: warning: return makes pointer from integer without a cast [enabled by default]
[   60s]    return pthread_self();
[   60s]    ^
[   60s] /usr/bin/cmake -E cmake_progress_report /home/abuild/rpmbuild/BUILD/mapserver-7.0.0/build/CMakeFiles 30
@tigerfoot tigerfoot changed the title Building mapserver 7.0 checker on openSUSE complain mapserver 64bit-portability-issue Building mapserver 7.0 checker on openSUSE complain mapserver 64bit-portability-issue in mapthread.c Oct 3, 2015
@tbonfort tbonfort closed this in 1d3eb7e Oct 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.