Opened 5 years ago

Closed 3 years ago

#59757 closed defect (fixed)

libpurple: configuration error

Reported by: lmatusek Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: Cc:
Port: libpurple

Description (last modified by mf2k (Frank Schima))

Installation of pidgin fails due to libpurple configuration error.

--->  Computing dependencies for pidgin
The following dependencies will be installed:  libpurple
Continue? [Y/n]:
--->  Fetching archive for libpurple
--->  Attempting to fetch libpurple-2.13.0_2.darwin_19.x86_64.tbz2 from http://nue.de.packages.macports.org/libpurple
--->  Attempting to fetch libpurple-2.13.0_2.darwin_19.x86_64.tbz2 from https://packages.macports.org/libpurple
--->  Attempting to fetch libpurple-2.13.0_2.darwin_19.x86_64.tbz2 from http://lil.fr.packages.macports.org/libpurple
--->  Configuring libpurple
Error: Failed to configure libpurple, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_pidgin/libpurple/work/pidgin-2.13.0/config.log
Error: Failed to configure libpurple: configure failure: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_pidgin/libpurple/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port pidgin failed

OS version: 10.15.1 Catalina Pidgin

pidgin @2.13.0_2 (net)
Sub-ports:            libpurple, finch
Variants:             quartz, spellcheck, universal, [+]x11

Description:          Pidgin is an Open Source clone of America OnLine's Instant Messenger client that uses GTK+ version 2. It features multiple groups, group
                      chat, user information fetching and registration, time stamping, and more. It also supports other IM protocols, including Yahoo!, ICQ,
                      Jabber, Napster, IRC, and Zephyr via included plugins.
Homepage:             https://www.pidgin.im/

Build Dependencies:   pkgconfig, intltool, autoconf, automake, libtool, gsed, python27
Library Dependencies: glib2, libxml2, gconf, libidn, gnutls, perl5.28, libpurple, audiofile, gtk2, libao, xorg-libX11, xorg-libXext, xorg-libXScrnSaver,
                      xorg-libice, xorg-libsm
Platforms:            darwin
License:              GPL-2+
Maintainers:          Email: devans@macports.org, GitHub: dbevans
                      Policy: openmaintainer

libpurple

libpurple @2.13.0_2 (net)
Variants:             universal

Description:          Pidgin is an Open Source clone of America OnLine's Instant Messenger client that uses GTK+ version 2. It features multiple groups, group
                      chat, user information fetching and registration, time stamping, and more. It also supports other IM protocols, including Yahoo!, ICQ,
                      Jabber, Napster, IRC, and Zephyr via included plugins.
Homepage:             https://www.pidgin.im/

Build Dependencies:   pkgconfig, intltool, autoconf, automake, libtool, gsed, python27
Library Dependencies: glib2, libxml2, gconf, libidn, gnutls, perl5.28, tcl, tk
Platforms:            darwin
License:              GPL-2+
Maintainers:          Email: devans@macports.org, GitHub: dbevans
                      Policy: openmaintainer

Attachments (3)

config.log (108.3 KB) - added by arougthopher 5 years ago.
main.log (246.7 KB) - added by arougthopher 5 years ago.
configure_PERL_CFLAGS.diff (386 bytes) - added by jmroot (Joshua Root) 5 years ago.
Possible workaround

Download all attachments as: .zip

Change History (14)

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

The Milestone field is for use by Macports team members only, please do not set it.

Last edited 5 years ago by mf2k (Frank Schima) (previous) (diff)

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

Description: modified (diff)

comment:3 Changed 5 years ago by mf2k (Frank Schima)

Cc: devans@… removed
Milestone: MacPorts 2.7.0
Owner: set to dbevans
Port: pidgin removed
Status: newassigned

comment:4 Changed 5 years ago by mf2k (Frank Schima)

Description: modified (diff)

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

Resolution: invalid
Status: assignedclosed
Summary: pidgin @2.13.0_2 (net) install is broken due to libpurple configuration errorlibpurple: configuration error

Please attach the main.log file after cleaning the port (sudo port clean libpurple) and re-open the ticket. Without this log, we cannot diagnose the problem.

Changed 5 years ago by arougthopher

Attachment: config.log added

Changed 5 years ago by arougthopher

Attachment: main.log added

comment:6 Changed 5 years ago by arougthopher

I had the same error.

I ran sudo port clean libpurple and then reran sudo port install libpurple

Console output below:

$ sudo port install libpurple
--->  Computing dependencies for libpurple
--->  Fetching archive for libpurple
--->  Attempting to fetch libpurple-2.13.0_2.darwin_18.x86_64.tbz2 from https://packages.macports.org/libpurple
--->  Attempting to fetch libpurple-2.13.0_2.darwin_18.x86_64.tbz2 from http://aus.us.packages.macports.org/macports/packages/libpurple
--->  Attempting to fetch libpurple-2.13.0_2.darwin_18.x86_64.tbz2 from http://ywg.ca.packages.macports.org/mirror/macports/packages/libpurple
--->  Fetching distfiles for libpurple
--->  Verifying checksums for libpurple
--->  Extracting libpurple
--->  Applying patches to libpurple
--->  Configuring libpurple
Error: Failed to configure libpurple, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_www.macports.org_files_ports_net_pidgin/libpurple/work/pidgin-2.13.0/config.log
Error: Failed to configure libpurple: configure failure: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_www.macports.org_files_ports_net_pidgin/libpurple/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port libpurple failed
Last edited 3 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:7 Changed 5 years ago by arougthopher

Resolution: invalid
Status: closedreopened

Changed 5 years ago by jmroot (Joshua Root)

Attachment: configure_PERL_CFLAGS.diff added

Possible workaround

comment:8 Changed 5 years ago by mf2k (Frank Schima)

Error is:

:info:configure checking for perl.h... no
:info:configure configure: error:
:info:configure Perl development headers not found.
:info:configure Use --disable-perl if you do not need Perl scripting support.

comment:9 Changed 5 years ago by arougthopher

Applied diff ... building now. Fix is the same for pidgin.

comment:10 Changed 4 years ago by Bohaska

Also have this problem. How do you apply the diff?

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

Resolution: fixed
Status: reopenedclosed

arougthopher's config.log shows configure failed because:

configure:21862: checking for perl.h
configure:21862: /usr/bin/clang -c -g -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -arch x86_64 -I/opt/local/include -no-cpp-precomp -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk  -fno-common -DPERL_DARWIN -mmacosx-version-min=10.14 -pipe -Os -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk  -fno-strict-aliasing -fstack-protector-strong -I/opt/local/include -DPERL_USE_SAFE_PUTENV  -I/opt/local/lib/perl5/5.28/darwin-thread-multi-2level/CORE  conftest.c >&5
clang: warning: no such sysroot directory: '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk' [-Wmissing-sysroot]
In file included from conftest.c:66:
/opt/local/lib/perl5/5.28/darwin-thread-multi-2level/CORE/perl.h:684:10: fatal error: 'sys/types.h' file not found
#include <sys/types.h>
         ^~~~~~~~~~~~~
1 error generated.

That is, although MacPorts provided provided the correct -isysroot flag pointing to the user's SDK (in this case, from the command line tools), a different -isysroot flag pointing to the SDK that was used at the time the perl5.x port was built (in this case, from Xcode) was appended, overriding the earlier correct flag. Presumably arougthopher does not have Xcode installed, therefore the file was not found.

Josh's patch here worked around the problem by changing the order of the flags so that the current SDK path would be provided last and would prevail.

That patch shouldn't be needed anymore. The problem should be fixed by [f35a2c53331234cc730b090b1b866d4b1702a747/macports-ports] which removed the SDK paths from the perl5.x ports.

Note: See TracTickets for help on using tickets.