Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 714826 - sci-libs/gdal-2.4.3: pdfdataset.cpp:4057:22: error: invalid conversion from ‘void (*)(void*, ErrorCategory, Goffset, const char*)’ {aka ‘void (*)(void*, ErrorCategory, long long int, const c har*)’} to ‘ErrorCallback’ {aka ‘void (*)(ErrorCategory, long lo
Summary: sci-libs/gdal-2.4.3: pdfdataset.cpp:4057:22: error: invalid conversion from ‘...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Sci-geo Project
URL:
Whiteboard: fixed in 3.0.4-r1
Keywords:
Depends on: 686732
Blocks:
  Show dependency tree
 
Reported: 2020-03-26 08:42 UTC by Thomas Beutin
Modified: 2020-03-26 12:38 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,798.11 KB, text/plain)
2020-03-26 08:43 UTC, Thomas Beutin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Beutin 2020-03-26 08:42:26 UTC
after updating to app-text/poppler-0.85.0 sci-libs/gdal-2.4.3 wants to reemerge, but failes:

[...]
make -C pdf install-obj                                                                                                                                                  
make[2]: Entering directory '/var/tmp/portage/sci-libs/gdal-2.4.3/work/gdal-2.4.3/frmts/pdf'                                                                             
/bin/sh /var/tmp/portage/sci-libs/gdal-2.4.3/work/gdal-2.4.3/libtool --mode=compile --silent --tag=CXX x86_64-pc-linux-gnu-g++ -I/var/tmp/portage/sci-libs/gdal-2.4.3/wor
k/gdal-2.4.3/port -I/var/tmp/portage/sci-libs/gdal-2.4.3/work/gdal-2.4.3/gcore -I/var/tmp/portage/sci-libs/gdal-2.4.3/work/gdal-2.4.3/alg -I/var/tmp/portage/sci-libs/gda
l-2.4.3/work/gdal-2.4.3/ogr -I/var/tmp/portage/sci-libs/gdal-2.4.3/work/gdal-2.4.3/ogr/ogrsf_frmts -I/var/tmp/portage/sci-libs/gdal-2.4.3/work/gdal-2.4.3/gnm -I/var/tmp/
portage/sci-libs/gdal-2.4.3/work/gdal-2.4.3/apps -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -march=bdver2 -fomit-frame-pointer -O
2 -pipe -std=c++14 -I/usr/include/tirpc -fvisibility=hidden  -Wall -Wextra -Winit-self -Wunused-parameter -Wformat -Werror=format-security -Wno-format-nonliteral -Wlogic
al-op -Wshadow -Werror=vla -Wdate-time -Wnull-dereference -Wduplicated-cond -Wextra-semi -Wfloat-conversion -Wmissing-declarations -Wnon-virtual-dtor -Woverloaded-virtua
l -fno-operator-names -Wzero-as-null-pointer-constant -Wsuggest-override -Wimplicit-fallthrough  -I../vrt -I../mem -I../../ogr/ogrsf_frmts/mem -DGNM_ENABLED -I/var/tmp/p
ortage/sci-libs/gdal-2.4.3/work/gdal-2.4.3/port -I/usr/include/openjpeg-2.3 -I/usr/include -I/usr/ -I/usr//include  -DGDAL_COMPILATION -DHAVE_XERCES -I/usr/include -I/us
r/include/xercesc -I/var/tmp/portage/sci-libs/gdal-2.4.3/work/gdal-2.4.3/port -I/usr/include/openjpeg-2.3 -I/usr/include -I/usr/ -I/usr//include  -DGDAL_COMPILATION -DHA
VE_POPPLER -DPOPPLER_MAJOR_VERSION=0 -DPOPPLER_MINOR_VERSION=85 -I/usr/include -I/usr/include/poppler   -DDO_NOT_USE_DEBUG_BOOL -c -o ../o/pdfdataset.lo pdfdataset.cpp
pdfdataset.cpp: In static member function ‘static GDALDataset* PDFDataset::Open(GDALOpenInfo*)’:                                                                         
pdfdataset.cpp:4057:22: error: invalid conversion from ‘void (*)(void*, ErrorCategory, Goffset, const char*)’ {aka ‘void (*)(void*, ErrorCategory, long long int, const c
har*)’} to ‘ErrorCallback’ {aka ‘void (*)(ErrorCategory, long long int, const char*)’} [-fpermissive]                                                                    
 4057 |     setErrorCallback(PDFDatasetErrorFunction, nullptr);                     
      |                      ^~~~~~~~~~~~~~~~~~~~~~~                                
      |                      |            
      |                      void (*)(void*, ErrorCategory, Goffset, const char*) {aka void (*)(void*, ErrorCategory, long long int, const char*)}
pdfdataset.cpp:4057:54: error: too many arguments to function ‘void setErrorCallback(ErrorCallback)’                                                                     
 4057 |     setErrorCallback(PDFDatasetErrorFunction, nullptr);                                                                                                          
      |                                                      ^                                                                                                           
In file included from /usr/include/poppler/Object.h:44,                                                                                                                  
                 from pdfsdk_headers.h:64,                                                                                                                               
                 from gdal_pdf.h:53,                                                
                 from pdfdataset.cpp:36:                                            
/usr/include/poppler/Error.h:53:13: note: declared here                             
   53 | extern void setErrorCallback(ErrorCallback cbk);                            
      |             ^~~~~~~~~~~~~~~~      
make[2]: *** [../../GDALmake.opt:678: ../o/pdfdataset.lo] Error 1                   
make[2]: Leaving directory '/var/tmp/portage/sci-libs/gdal-2.4.3/work/gdal-2.4.3/frmts/pdf'                                                                              
make[1]: *** [GNUmakefile:15: pdf-install-obj] Error 2                              
make[1]: Leaving directory '/var/tmp/portage/sci-libs/gdal-2.4.3/work/gdal-2.4.3/frmts'                                                                                  
make: *** [GNUmakefile:103: frmts-target] Error 2

Reproducible: Always




Portage 2.3.89 (python 3.6.10-final-0, default/linux/amd64/17.0, gcc-9.2.0, glibc-2.29-r7, 5.5.9-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.5.9-gentoo-x86_64-AMD_Opteron-tm-_Processor_6386_SE-with-gentoo-2.6
KiB Mem:  1043827632 total, 113988644 free
KiB Swap:  268304380 total, 268301552 free
Timestamp of repository gentoo: Wed, 25 Mar 2020 15:30:01 +0000
Head commit of repository gentoo: b91b75aed35ec4e37ee55dfc2a928081dea8cf57
sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.33.1 p2) 2.33.1
app-shells/bash:          4.4_p23-r1::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.1::gentoo
dev-lang/python:          2.7.17-r1::gentoo, 3.6.10::gentoo
dev-util/cmake:           3.16.5::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.33.1-r1::gentoo
sys-devel/gcc:            9.2.0-r2::gentoo
sys-devel/gcc-config:     2.2.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.5::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r7::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 
    sync-rsync-verify-metamanifest: no
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

barzog-overlay
    location: /var/lib/layman/barzog-overlay
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=bdver2 -fomit-frame-pointer -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.4/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=bdver2 -fomit-frame-pointer -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_IE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j128"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X509 aac aacplus aalib accounting acl adns aim aio alpn amd64 ansi audit automount autotrace bacula-console bash-completion bcmath bidi bind-mysql bittorrent bzip2 cairo calendar caps ccache cdb cgi chipcard chroot command-args corefonts cpudetection cpulimit cracklib cramfs cron crypt cscope css csv ctype curl curlwrappers customlog cvsgraph cxx cyrus dba dbi dbm dbx device-mapper devmap dhcp djvu dlopen dnsdb ecc emf encode enscript eselect-ldso exif expat fam fastcgi ffmpeg fftw fits flac flash flatfile fontconfig fortran fpm fpx ftp fuse gd gdal gdbm geoip geos gif gmp graphviz gs gzip hardened hardenedphp hdf5 hdri hpn http i18n iconv icq icu idea idled idn imagemagick imap imlib imlib2 inifile innodb ipalias iproute2 ipv6 jabber jbig jpeg jpeg2k json kmod lapack lcms ldap less libtirpc libwww llvm lm_sensors lmtp logrotate logwatch lzma lzo mbox mcal memlimit mgetty mhash milter mime mimencode ming mmap mmx mp3 mpeg mpi mpm-prefork mppe-mppc multilib mysql mysqli nagios-dns nagios-game nagios-ntp nagios-ping nagios-ssh ncurses netboot netcdf netifrc network nfs nls nntp nptl nptlonly numa oav ocaml ocamlopt odbc ogg oggvorbis openexr opengl openmp openrc openssh openssl pam pam_chroot pam_console pam_timestamp pango parse-clocks pcntl pcre pdf pdfkit pdflib perl php pic pie plotutils png posix postfix postgis postgres postscript procmail proj pwdb python qdbm qemu quotas radius raw readline recode reiserfs rmtp romio rpc rrdtool rss sample sasl screen sendfile sendmail sensord session sftp sftplogging shaper shared sharedext sieve simplexml slang slp smartcard smime smp sms smtp snmp snortsam soap sockets socks5 spamassassin spell spl split-usr sql sqlite sqlite3 sse sse2 sse3 sse4 sse4_1 sse4_2 ssl ssse3 stream subversion svg sysfs syslog sysvipc szip tcpd theora threads tidy tiff tls tokenizer transparent-proxy truetype truetype-fonts type1-fonts udev unicode userlocales utf8 uuid vhosts vim-syntax virtual-users virus-scan vorbis vpx wddx webp withsamplescripts wmf x264 xattr xfs xinetd xkb xls xml xml2 xmlrpc xpm xsl xslt xvid yahoo yaz zlib zstd" ABI_X86="64" APACHE2_MODULES="access http2 auth auth_basic auth_digest authn_default authn_core authn_file authz_core authz_groupfile authz_host authz_user authn_dbm authn_dbd authz_dbd dbd ident imagemap authn_dbd authn_file authn_default authz_groupfile authn_alias authn_anon authz_dbm authz_owner authz_default authz_user auth_digest authz_host alias file_cache echo charset_lite cache disk_cache mem_cache ext_filter case_filter case-filter-in deflate filter mime_magic cern_meta proxy_ajp proxy_balancer expires headers usertrack proxy proxy_connect proxy_ftp proxy_html proxy_http info include cgi cgid dav dav_lock dav_fs vhost_alias speling rewrite log_config logio env setenvif mime status substitute autoindex asis negotiation dir imap actions userdir so unique_id version dumpio log_forensic reqtimeout socache_shmcb unixd proxy_fcgi proxy_wstunnel slotmem_shm ratelimit remoteip lbmethod_bybusyness lbmethod_byrequests lbmethod_bytraffic lbmethod_heartbeat macro xml2enc brotli cache_socache md proxy_http2 watchdog" APACHE2_MPMS="event" CPU_FLAGS_X86="aes avx f16c fma3 fma4 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop" CURL_SSL="openssl" ELIBC="glibc" FFTOOLS="cws2fws qt-faststart aviocat ismindex" GRUB_PLATFORMS="pc" KERNEL="linux" NGINX_MODULES_HTTP="access auth_basic auth_request autoindex browser charset dav dav_ext fancyindex fastcgi flv geo geoip gunzip gzip gzip_static headers_more image_filter limit_conn limit_req limit_zone memcached metrics mp4 naxsi proxy push push_stream realip referer rewrite secure_link security split_clients spdy sticky stub_status sub upload upload_progress upstream_check upstream_ip_hash userid xslt" NGINX_MODULES_MAIL="smtp imap pop3" PHP_TARGETS="php7-4" POSTGRES_TARGETS="postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" USERLAND="GNU" VIDEO_CARDS="i965 amdgpu nvidia"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

sci-libs/gdal-2.4.3::gentoo was built with the following:
USE="armadillo curl fits geos gif gml hdf5 jpeg jpeg2k lzma mysql netcdf odbc ogdi pdf perl png postgres python spatialite sqlite threads webp xls zstd -aux-xml -debug -doc -java (-mdb) -opencl (-oracle)" ABI_X86="(64)" PYTHON_TARGETS="python3_6 -python3_7 (-python3_8)"
CFLAGS="-march=bdver2 -fomit-frame-pointer -O2 -pipe -I/usr/include/tirpc"
CXXFLAGS="-march=bdver2 -fomit-frame-pointer -O2 -pipe -std=c++14 -I/usr/include/tirpc"
Comment 1 Thomas Beutin 2020-03-26 08:43:32 UTC
Created attachment 626060 [details]
build.log
Comment 2 Andreas Sturmlechner gentoo-dev 2020-03-26 10:11:22 UTC
Yes, that is why 3.0.4-r1 was already stabilised well before poppler-0.85.
Comment 3 Larry the Git Cow gentoo-dev 2020-03-26 12:38:51 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97e0c788601a460e4a97c1924afcbe6e333c140d

commit 97e0c788601a460e4a97c1924afcbe6e333c140d
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2020-03-26 10:49:56 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2020-03-26 12:38:32 +0000

    sci-libs/gdal: Restrict to <app-text/poppler-0.85.0
    
    Closes: https://bugs.gentoo.org/714826
    Package-Manager: Portage-2.3.96, Repoman-2.3.22
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 sci-libs/gdal/gdal-2.4.3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)