Opened 2 years ago

Closed 23 months ago

Last modified 23 months ago

#61713 closed defect (fixed)

gupnp-igd @0.2.5 build fails (undefined symbols) on macOS 11.0.1, Xcode 12.2 (12B45b)

Reported by: hapaguy (Brian Kurt Fujikawa) Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: bigsur Cc: michaellass (Michael Lass), cooljeanius (Eric Gallager), horasio (Samuel Hornus), MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Port: gupnp-igd

Description (last modified by mf2k (Frank Schima))

I am running macOS 11.0.1 and using Xcode 12.2 (12B45b).

% sudo port -sv install gnucash

fails on gupnp-igd @0.2.5 with the errors:

:info:build Undefined symbols for architecture x86_64:
:info:build   "_PyArg_ParseTupleAndKeywords", referenced from:
:info:build       __wrap_gupnp_simple_igd_add_port in pygupnp-igd.o
:info:build       __wrap_gupnp_simple_igd_remove_port in pygupnp-igd.o
:info:build   "_PyBool_FromLong", referenced from:
:info:build       __wrap_gupnp_simple_igd_delete_all_mappings in pygupnp-igd.o
...

I noticed that these errors are also present in the ancient (closed) issue:

ticket:37642

Maybe, this a hint on how to resolve this issue.

Attachments (1)

gupnp-igd main.log (50.2 KB) - added by hapaguy (Brian Kurt Fujikawa) 2 years ago.
main.log

Download all attachments as: .zip

Change History (16)

Changed 2 years ago by hapaguy (Brian Kurt Fujikawa)

Attachment: gupnp-igd main.log added

main.log

comment:1 Changed 2 years ago by hapaguy (Brian Kurt Fujikawa)

Owner: set to dbevans
Status: newassigned

comment:2 Changed 2 years ago by mf2k (Frank Schima)

Description: modified (diff)

comment:3 Changed 2 years ago by VergeDX (Vanilla)

same issues here, waiting for reply...

comment:4 Changed 2 years ago by kencu (Ken)

our port is out of date I notice <https://download.gnome.org/sources/gupnp-igd/1.2/> and still using python27, for two places to start...

comment:5 Changed 2 years ago by lemmy (Markus Alexander Kuppe)

https://trac.macports.org/ticket/61591#comment:15 inspired me to look at clang's arguments. The problem appears to be that gupnp-igd's configure doesn't handle the "11" in Big Sur's version string. This causes clang to be invoked without '-Wl,-undefined -Wl,dynamic_lookup', which ultimately causes its build to fail. If a case for "11" is manually added to configure, gupnp-igd builds successfully.

I don't know how port works and what has to be done for https://github.com/macports/macports-ports/blob/master/net/gupnp-igd/files/patch-configure.diff to add the case to configure.

comment:6 Changed 2 years ago by michaellass (Michael Lass)

Cc: michaellass added

comment:7 Changed 2 years ago by juliangilbey (Julian Gilbey)

Upstream have released version 1.2.0; perhaps this fixes the issue?

comment:8 Changed 2 years ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added

comment:9 Changed 2 years ago by cooljeanius (Eric Gallager)

This blocks installation of baobab for me. Edit: and also bluefish. Edit2: and also eog. Edit3: and also epiphany.

Last edited 2 years ago by cooljeanius (Eric Gallager) (previous) (diff)

comment:10 Changed 23 months ago by jmroot (Joshua Root)

Keywords: bigsur added

comment:11 Changed 23 months ago by horasio (Samuel Hornus)

Cc: horasio added

comment:12 Changed 23 months ago by michaellass (Michael Lass)

This issue can indeed be fixed by updating gupnp-igd to 1.2.0. However, that requires also updating gupnp and gssdp. All of those projects changed their build system to meson so there are some changes to the Portfiles required.

I opened a pull request with changes that allowed me to build gupnp-igd on Big Sur. However, this is probably not ready to merge and mainly meant to get things started: https://github.com/macports/macports-ports/pull/10326

comment:13 Changed 23 months ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Cc: MarcusCalhoun-Lopez added

comment:14 Changed 23 months ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Resolution: fixed
Status: assignedclosed

In 29d3cfd4ab7dc95555594fba58dd348e370f1254/macports-ports (master):

gupnp-igd: fix for MACOSX_DEPLOYMENT_TARGET > 10

See #61488
Fixes #61713

comment:15 Changed 23 months ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Had duplicated #62404.

Note: See TracTickets for help on using tickets.