[MacPorts] #58726: libvirt @5.5.0: error: expected '; ' before 'virTemporaryReturnPointer'

MacPorts noreply at macports.org
Mon Jul 15 21:05:14 UTC 2019


#58726: libvirt @5.5.0: error: expected ';' before 'virTemporaryReturnPointer'
--------------------+------------------------
 Reporter:  kencu   |      Owner:  ryandesign
     Type:  defect  |     Status:  assigned
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:
 Keywords:          |       Port:  libvirt
--------------------+------------------------
 On my current system (10.6.8) libvirt 5.5.0 does not build:
 {{{
 libtool: compile:  /opt/local/bin/clang-mp-5.0 -DHAVE_CONFIG_H -I. -I..
 -I../gnulib/lib -I../gnulib/lib -I.. -I../include -I../include -I./util
 -I./util -DIN_LIBVIRT
 -Dabs_top_builddir=\"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_libvirt/libvirt/work/libvirt-5.5.0\"
 -Dabs_top_srcdir=\"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_libvirt/libvirt/work/libvirt-5.5.0\"
 -I/opt/local/include -std=gnu99 -I/opt/local/include/yajl
 -I/opt/local/include/libxml2 -fno-common -W -Waddress -Wall -Wattributes
 -Wbad-function-cast -Wbuiltin-macro-redefined -Wcast-align -Wchar-
 subscripts -Wcomment -Wcomments -Wcpp -Wdangling-else -Wdate-time
 -Wdeprecated-declarations -Wdiv-by-zero -Wdouble-promotion -Wduplicate-
 decl-specifier -Wempty-body -Wendif-labels -Wexpansion-to-defined -Wextra
 -Wformat-extra-args -Wformat-security -Wformat-y2k -Wformat-zero-length
 -Wignored-attributes -Wignored-qualifiers -Wimplicit -Wimplicit-function-
 declaration -Wimplicit-int -Wincompatible-pointer-types -Winit-self
 -Winline -Wint-conversion -Wint-to-pointer-cast -Winvalid-pch -Wlogical-
 not-parentheses -Wmain -Wmissing-braces -Wmissing-declarations -Wmissing-
 field-initializers -Wmissing-include-dirs -Wmissing-prototypes -Wmultichar
 -Wnarrowing -Wnested-externs -Wnonnull -Wnull-dereference -Wodr -Wold-
 style-definition -Woverflow -Wparentheses -Wpointer-arith -Wpointer-sign
 -Wpointer-to-int-cast -Wpragmas -Wreturn-type -Wsequence-point -Wshadow
 -Wshift-count-negative -Wshift-count-overflow -Wshift-negative-value
 -Wsizeof-array-argument -Wsizeof-pointer-memaccess -Wstrict-aliasing
 -Wstrict-prototypes -Wswitch -Wswitch-bool -Wtautological-compare
 -Wtrigraphs -Wtype-limits -Wuninitialized -Wunknown-pragmas -Wunused
 -Wunused-function -Wunused-label -Wunused-local-typedefs -Wunused-
 parameter -Wunused-result -Wunused-value -Wunused-variable -Wvarargs
 -Wvariadic-macros -Wvolatile-register-var -Wwrite-strings -Wno-missing-
 field-initializers -Wno-sign-compare -Wswitch-enum -Wno-format-nonliteral
 -fexceptions -fasynchronous-unwind-tables -Wframe-larger-than=4096
 -I/opt/local/include/p11-kit-1 -pipe -Os -std=c99 -arch x86_64 -MT util
 /libvirt_util_la-virhostdev.lo -MD -MP -MF util/.deps/libvirt_util_la-
 virhostdev.Tpo -c util/virhostdev.c  -fno-common -DPIC -o util/.libs
 /libvirt_util_la-virhostdev.o
 util/virhostdev.c:202:5: warning: implicit declaration of function
 'typeof' is invalid in C99 [-Wimplicit-function-declaration]
     VIR_RETURN_PTR(hostdevMgr);
     ^
 ./internal.h:291:9: note: expanded from macro 'VIR_RETURN_PTR'
         typeof(ptr) virTemporaryReturnPointer = (ptr); \
         ^
 util/virhostdev.c:202:5: warning: this function declaration is not a
 prototype [-Wstrict-prototypes]
 ./internal.h:291:9: note: expanded from macro 'VIR_RETURN_PTR'
         typeof(ptr) virTemporaryReturnPointer = (ptr); \
         ^
 util/virhostdev.c:202:5: error: expected ';' after expression
 ./internal.h:291:21: note: expanded from macro 'VIR_RETURN_PTR'
         typeof(ptr) virTemporaryReturnPointer = (ptr); \
                     ^
 util/virhostdev.c:202:5: error: use of undeclared identifier
 'virTemporaryReturnPointer'
 ./internal.h:291:21: note: expanded from macro 'VIR_RETURN_PTR'
         typeof(ptr) virTemporaryReturnPointer = (ptr); \
                     ^
 util/virhostdev.c:202:5: error: use of undeclared identifier
 'virTemporaryReturnPointer'
 ./internal.h:293:16: note: expanded from macro 'VIR_RETURN_PTR'
         return virTemporaryReturnPointer; \
                ^
 util/virhostdev.c:252:5: error: expected ';' after expression
     VIR_RETURN_PTR(pcidevs);
     ^
 ./internal.h:291:21: note: expanded from macro 'VIR_RETURN_PTR'
         typeof(ptr) virTemporaryReturnPointer = (ptr); \
                     ^
 util/virhostdev.c:252:5: error: use of undeclared identifier
 'virTemporaryReturnPointer'
 ./internal.h:291:21: note: expanded from macro 'VIR_RETURN_PTR'
         typeof(ptr) virTemporaryReturnPointer = (ptr); \
                     ^
 util/virhostdev.c:252:5: error: use of undeclared identifier
 'virTemporaryReturnPointer'
 ./internal.h:293:16: note: expanded from macro 'VIR_RETURN_PTR'
         return virTemporaryReturnPointer; \
                ^
 2 warnings and 6 errors generated.
 }}}

 I tried building it with clang-5.0, clang-8.0, and gcc6, and all failed
 similarly. Logs attached.

-- 
Ticket URL: <https://trac.macports.org/ticket/58726>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list