Opened 7 years ago

Closed 7 years ago

#54801 closed defect (fixed)

evolution-data-server @3.24.6 link error: ld: unknown option: --no-undefined

Reported by: kencu (Ken) Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version:
Keywords: haspatch Cc:
Port: evolution-data-server

Description

Building on 10.6

/opt/local/bin/clang-mp-3.9 -pipe -Os -Werror-implicit-function-declaration -Wformat -Wformat-security -Winit-self -Wmissing-declarations -Wmissing-noreturn -Wpointer-arith -Wredundant-decls -Wundef -Wwrite-strings -fno-strict-aliasing -Wno-deprecated-declarations -Wdeclaration-after-statement -Wno-missing-field-initializers -Wno-sign-compare -Wno-unused-parameter -Wnested-externs -Wno-parentheses-equality -Wno-format-nonliteral -DNDEBUG -arch x86_64 -mmacosx-version-min=10.6 -dynamiclib -Wl,-headerpad_max_install_names -L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,--no-undefined -o libedbus-private.dylib -install_name /opt/local/lib/libedbus-private.dylib CMakeFiles/edbus-private.dir/e-dbus-localed.c.o CMakeFiles/edbus-private.dir/e-dbus-source.c.o CMakeFiles/edbus-private.dir/e-dbus-source-manager.c.o CMakeFiles/edbus-private.dir/e-dbus-authenticator.c.o CMakeFiles/edbus-private.dir/e-dbus-address-book.c.o CMakeFiles/edbus-private.dir/e-dbus-address-book-cursor.c.o CMakeFiles/edbus-private.dir/e-dbus-direct-book.c.o CMakeFiles/edbus-private.dir/e-dbus-address-book-factory.c.o CMakeFiles/edbus-private.dir/e-dbus-calendar.c.o CMakeFiles/edbus-private.dir/e-dbus-calendar-factory.c.o CMakeFiles/edbus-private.dir/e-dbus-user-prompter.c.o CMakeFiles/edbus-private.dir/e-dbus-subprocess-backend.c.o -L/opt/local/lib -L/opt/local/lib/nss -L/opt/local/lib/nspr -L/opt/local/lib -lgmodule-2.0 -lsecret-1 -lxml2 -lsoup-2.4 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lintl -Wl,-framework -Wl,CoreFoundation -lssl3 -lsmime3 -lnssutil3 -lnss3 -lplds4 -lplc4 -lnspr4 -L/opt/local/lib -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lintl -Wl,-framework -Wl,CoreFoundation -lssl3 -lsmime3 -lnssutil3 -lnss3 -lplds4 -lplc4 -lnspr4 
ld: unknown option: --no-undefined

Problem has been noted from time to time in MacPorts on various ports.

This looked like the best fix: <https://stackoverflow.com/questions/26971333/what-is-clangs-equivalent-to-no-undefined-gcc-flag>

and worked nicely.

$ port -v installed evolution-data-server
The following ports are currently installed:
  evolution-data-server @3.24.6_0+phonenumber (active) platform='darwin 10' archs='x86_64' date='2017-09-10T19:54:05-0700'

patch attached.

Not exactly sure what distribution of systems might need this patch. From the packages.macports.org website, looks like it might be darwin <= 12.

Attachments (1)

patch-cmake-no-undefined.diff (1001 bytes) - added by kencu (Ken) 7 years ago.

Download all attachments as: .zip

Change History (3)

Changed 7 years ago by kencu (Ken)

comment:1 Changed 7 years ago by mf2k (Frank Schima)

Cc: dbevans removed
Owner: set to dbevans
Status: newassigned

comment:2 Changed 7 years ago by dbevans (David B. Evans)

Resolution: fixed
Status: assignedclosed

In 807bf01b44afaf26fbddbd4ff761a1c756e4d448/macports-ports:

evolution-data-server: use '-undefined error' instead of '--no-undefined'

Patch provided by kencu (thanks).

Closes #54801

Note: See TracTickets for help on using tickets.