Re: Error installing Terminator on macOS

Carl Caulkett <[email protected]>
Newsgroups gmane.os.apple.fink.beginners
Message-ID <CAJHZn9FJS9Bya3oE50T7qVSJQ159WC-yirQ86u+daf4Yws=rkw@mail.gmail.com>
On 21 March 2020 at 00:12:33, Carl Caulkett ([email protected]) wrote:

I updated the command-line tools to 11.3.1. This alone did not fix the
problem. The output was the same as before.

The output of `xcrun --sdk macosx --show-sdk-path` is
`/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk`

Finally, I made the change to `
/sw/fink/dists/stable/main/finkinfo/languages/python27.info` and ran the
build again. This time it lasted much longer and, judging by the fact that
no errors were shown at the end, I think the build was successful.
<http://python27.info/>

It would have been nice to get a confirmation message along the lines
of “Congratulations,
the installation of Terminator was successful”, but maybe I’ve just been
spoiled by whizz-bang graphical macOS installers!

I then tried trying to run `terminator` from the command-line. I received
the message:

`/sw/lib/python2.7/site-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning:
could not open display
  warnings.warn(str(e), _gtk.Warning)
You need to run terminator in an X environment. Make sure $DISPLAY is
properly set`

I think this indicates that terminator did, indeed, build successfully, and
that the message is just a configuration issue, which, quite frankly can
wait until tomorrow to be addressed!

Thanks for your help, Hanspeter!

Cheers,
Carl

On 20 March 2020 at 21:49:49, Hanspeter Niederstrasser (
[email protected]) wrote:

On 3/19/20 3:04 PM, Carl Caulkett wrote:
> MacOS 10.14.6
>
> Package manager version: 0.45.0
> Distribution version: selfupdate-rsync Thu Mar 19 17:58:04 2020, 10.14.5,
> x86_64
> Trees: local/main stable/main
> Xcode.app: 11.3.1
> Xcode command-line tools: 10.3.0.0.1.1562985497
> Max. Fink build jobs: 8
>
> I tried to install Terminator using the command `fink install terminator
`.
> After a lengthy process, an error message was returned. I haven’t posted
> the full build report because there was literally pages and pages,
although
> I can if necessary. This is where the output seemed to start indicating
> errors rather than warnings…
>
> gcc -L/sw/lib -bundle
> /sw/src/fink.build/python27-2.7.17-1/Python-2.7.17/libpython2.7.dylib
> -L/sw/lib -L/sw/lib -fno-strict-aliasing -Wno-nullability-completeness
> -DNDEBUG -g -fwrapv -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude
> -I./Include -I/sw/include -I/sw/include/ncursesw
>
-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include

>
build/temp.macosx-10.14-x86_64-2.7/sw/src/fink.build/python27-2.7.17-1/Python-2.7.17/Modules/_ctypes/_ctypes.o

>
build/temp.macosx-10.14-x86_64-2.7/sw/src/fink.build/python27-2.7.17-1/Python-2.7.17/Modules/_ctypes/callbacks.o

>
build/temp.macosx-10.14-x86_64-2.7/sw/src/fink.build/python27-2.7.17-1/Python-2.7.17/Modules/_ctypes/callproc.o

>
build/temp.macosx-10.14-x86_64-2.7/sw/src/fink.build/python27-2.7.17-1/Python-2.7.17/Modules/_ctypes/stgdict.o

>
build/temp.macosx-10.14-x86_64-2.7/sw/src/fink.build/python27-2.7.17-1/Python-2.7.17/Modules/_ctypes/cfield.o

>
build/temp.macosx-10.14-x86_64-2.7/sw/src/fink.build/python27-2.7.17-1/Python-2.7.17/Modules/_ctypes/malloc_closure.o

>
build/temp.macosx-10.14-x86_64-2.7/sw/src/fink.build/python27-2.7.17-1/Python-2.7.17/Modules/_ctypes/darwin/dlfcn_simple.o

> -L/sw/lib -L. -lffi -ldl -o build/lib.macosx-10.14-x86_64-2.7/_ctypes.so
>
> Python build finished, but the necessary bits to build these modules were
> not found:
> bsddb185 dl imageop
> linuxaudiodev ossaudiodev spwd
> sunaudiodev
> To find the necessary bits, look in setup.py in detect_modules() for the
> module's name.
> (Fink package build should have 7 missing)
>
>
> Failed to build these modules:
> _scproxy readline
>
> make: *** [sharedmods] Error 1
> ### execution of /tmp/fink.NVmmA failed, exit code 2
> ### execution of /tmp/fink.UQP2k failed, exit code 2
> Removing runtime build-lock...
> Removing build-lock package...
> /sw/bin/dpkg-lockwait -r fink-buildlock-python27-2.7.17-1
> (Reading database ... 35311 files and directories currently installed.)
> Removing fink-buildlock-python27-2.7.17-1 ...
> Updating the list of locally available binary packages.
> Scanning dists/stable/main/binary-darwin-x86_64
> New package:
>
dists/stable/main/binary-darwin-x86_64/graphics/imlib2-shlibs_1.5.1-1_darwin-x86_64.deb

> New package:
>
dists/stable/main/binary-darwin-x86_64/graphics/imlib2_1.5.1-1_darwin-x86_64.deb

> New package:
>
dists/stable/main/binary-darwin-x86_64/graphics/jasper-bin_1.900.1-debian1-2.4+deb8u6-1_darwin-x86_64.deb

> New package:
>
dists/stable/main/binary-darwin-x86_64/graphics/jiv_1.900.1-debian1-2.4+deb8u6-1_darwin-x86_64.deb

> New package:
>
dists/stable/main/binary-darwin-x86_64/graphics/libjasper.1-shlibs_1.900.1-debian1-2.4+deb8u6-1_darwin-x86_64.deb

> New package:
>
dists/stable/main/binary-darwin-x86_64/graphics/libjasper.1_1.900.1-debian1-2.4+deb8u6-1_darwin-x86_64.deb

> New package:
>
dists/stable/main/binary-darwin-x86_64/graphics/libjasper1-bin_1.900.1-debian1-2.4+deb8u6-1_darwin-x86_64.deb

> New package:
>
dists/stable/main/binary-darwin-x86_64/text/docbook-bundle_4.1.2-1004_darwin-x86_64.deb

> New package:
>
dists/stable/main/binary-darwin-x86_64/x11/freeglut2-shlibs_3.0.0-3_darwin-x86_64.deb

> New package:
>
dists/stable/main/binary-darwin-x86_64/x11/freeglut2_3.0.0-3_darwin-x86_64.deb

> Failed: phase compiling: python27-2.7.17-1 failed
>
> Before reporting any errors, please run "fink selfupdate" and try again.
> Also try using "fink configure" to set your maximum build jobs to 1 and
> attempt to build the package again.
> If you continue to have issues, please check to see if the FAQ on Fink's
> website solves the problem. If not, ask on one (not both, please) of
> these mailing lists:
>
> The Fink Users List <[email protected]>
> The Fink Beginners List <[email protected]>,
>
> with a carbon copy to the maintainer:
>
> Daniel Johnson <[email protected]>
>
> Note that this is preferable to emailing just the maintainer directly,
> since most fink package maintainers do not have access to all possible
> hardware and software configurations.
>
> Please try to include the complete error message in your report. This
> generally consists of a compiler line starting with e.g. "gcc" or "g++"
> followed by the actual error output from the compiler.
>
> Also include the following system information:
> Package manager version: 0.45.0
> Distribution version: selfupdate-rsync Thu Mar 19 17:58:04 2020, 10.14.5,
> x86_64
> Trees: local/main stable/main
> Xcode.app: 11.3.1
> Xcode command-line tools: 10.3.0.0.1.1562985497
> Max. Fink build jobs: 8

1) You have a mismatch between Xcode.app and the command line tools. Do
you still get this error after updating the command line tools to 11.3.1 ?
2) If you still get the error (the actual failure is with python27),
there are reports that the problem is with the MacOSX10.14.sdk, but that
was from a 10.15 user.
https://github.com/fink/fink-distributions/issues/498#issuecomment-569372123

What's the output of `xcrun --sdk macosx --show-sdk-path` ?

3) Lastly, if you edit the file
/sw/fink/dists/stable/main/finkinfo/languages/python27.info so that line
#86 looks like this (lose the last -I flag):

export CPPFLAGS="-I%p/include -I%p/include/ncursesw"

Does that change fix the build?

Hanspeter

_______________________________________________
Fink-beginners mailing list
[email protected]
List archive:
https://sourceforge.net/p/fink/mailman/fink-users/
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-beginners
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.