Opened 3 months ago

Closed 3 months ago

#70261 closed defect (fixed)

shared-mime-info @2.4_0: build failure on 10.11.6 error: call to undeclared function 'xmlReadFile'

Reported by: tenzap Owned by: mascguy (Christopher Nielsen)
Priority: Normal Milestone:
Component: ports Version: 2.9.3
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: shared-mime-info

Description (last modified by tenzap)

Build is failing with

port upgrade outdated

Log attached

:info:build [1/85] /opt/local/bin/clang-mp-16 -Isrc/test-subclassing.p -Isrc -I../shared-mime-info-2.4/src -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/libxml2 -I/opt/local/include -fdiagnostics-color=always -O0 -g -pipe -Os -arch x86_64 -nostdinc++ -MD -MQ src/test-subclassing.p/test-subclassing.c.o -MF src/test-subclassing.p/test-subclassing.c.o.d -o src/test-subclassing.p/test-subclassing.c.o -c ../shared-mime-info-2.4/src/test-subclassing.c
:info:build FAILED: src/test-subclassing.p/test-subclassing.c.o 
:info:build /opt/local/bin/clang-mp-16 -Isrc/test-subclassing.p -Isrc -I../shared-mime-info-2.4/src -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/libxml2 -I/opt/local/include -fdiagnostics-color=always -O0 -g -pipe -Os -arch x86_64 -nostdinc++ -MD -MQ src/test-subclassing.p/test-subclassing.c.o -MF src/test-subclassing.p/test-subclassing.c.o.d -o src/test-subclassing.p/test-subclassing.c.o -c ../shared-mime-info-2.4/src/test-subclassing.c
:info:build ../shared-mime-info-2.4/src/test-subclassing.c:12:8: error: call to undeclared function 'xmlReadFile'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
:info:build         doc = xmlReadFile ("freedesktop.org.xml", NULL, 0);
:info:build               ^
:info:build ../shared-mime-info-2.4/src/test-subclassing.c:12:6: error: incompatible integer to pointer conversion assigning to 'xmlDocPtr' (aka 'struct _xmlDoc *') from 'int' [-Wint-conversion]
:info:build         doc = xmlReadFile ("freedesktop.org.xml", NULL, 0);
:info:build             ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:info:build 2 errors generated.
:info:build [2/85] /opt/local/bin/clang++-mp-16 -Isrc/update-mime-database.p -Isrc -I../shared-mime-info-2.4/src -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/libxml2 -I/opt/local/include -fdiagnostics-color=always -D_LIBCPP_ENABLE_ASSERTIONS=1 -std=c++17 -O0 -g -pipe -Os -Wno-reserved-user-defined-literal -Wno-error=unknown-warning-option -Wno-unknown-warning-option -stdlib=libc++ -arch x86_64 -nostdinc++ -MD -MQ src/update-mime-database.p/update-mime-database.cpp.o -MF src/update-mime-database.p/update-mime-database.cpp.o.d -o src/update-mime-database.p/update-mime-database.cpp.o -c ../shared-mime-info-2.4/src/update-mime-database.cpp
:info:build ninja: build stopped: subcommand failed.
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_shared-mime-info/shared-mime-info/work/build" && /opt/local/bin/ninja -j2 -v 
:info:build Exit code: 1

Maybe since libxml2 2.13 ?

Attachments (1)

main.log.gz (4.1 KB) - added by tenzap 3 months ago.

Download all attachments as: .zip

Change History (6)

Changed 3 months ago by tenzap

Attachment: main.log.gz added

comment:1 Changed 3 months ago by tenzap

Owner: set to mascguy
Status: newassigned

comment:2 Changed 3 months ago by tenzap

Description: modified (diff)
Summary: shared-mime-info @2.4_0: build failure on 10.11.6shared-mime-info @2.4_0: build failure on 10.11.6 error: call to undeclared function 'xmlReadFile'

comment:3 Changed 3 months ago by ryandesign (Ryan Carsten Schmidt)

libxml2 cleaned up its headers in 2.12.0 to remove unnecessary inclusions, exposing problems in other projects like shared-mime-info where necessary headers are not being included. Probably fixed by https://gitlab.freedesktop.org/xdg/shared-mime-info/-/commit/c918fe77e255150938e83a6aec259f153d303573

comment:4 Changed 3 months ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign added

comment:5 Changed 3 months ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

In de59a6141dc7ac23fcda65d346843f8ba73b31ea/macports-ports (master):

shared-mime-info: Fix build with libxml2 2.12+

Closes: #70261

Note: See TracTickets for help on using tickets.