Hi
I'm trying to build a Python package that I can use on different Linux
setups, for this purpose it would be nice to weld external dependencies
(libraries) into Python itself. So far I've succeeded in getting Tcl/Tk
statically linked in, with the help of Modules/Setup.local, but the
same procedure for ncurses and readline results in python being
dynamically linked with these two libraries?? That is, there are no
longer any readline.so or _curses.so in lib-dynload, but instead they
are added to Python's shared library dependencies. Any clue as to
what's going on here would be much appreciated.
Arve 5 3288 ar**********@gm ail.com wrote: That is, there are no longer any readline.so or _curses.so in lib-dynload, but instead they are added to Python's shared library dependencies.
What is "they" in that sentence? readline.so and _curses.so? I very much
doubt that - more likely, libreadline.so and libncurses.so are in
the dependencies
Any clue as to what's going on here would be much appreciated.
Instead of linking with -lncurses, link explicitly with
/usr/lib/libncurses.a; or else using -static as a linker flag.
Regards,
Martin
Well, I implied that _curses.so and readline.so disappeared as one
would expect, dependencies on libncurses.so and libreadline.so instead
showing up in Python itself. It's very strange that this happens with
ncurses and readline, when both db and Tcl/Tk got linked in with no
fuss. Anyway, I built static-only (.a) versions of readline and
ncurses, which did the trick.
Arve ar**********@gm ail.com wrote: Well, I implied that _curses.so and readline.so disappeared as one would expect, dependencies on libncurses.so and libreadline.so instead showing up in Python itself. It's very strange that this happens with ncurses and readline, when both db and Tcl/Tk got linked in with no fuss. Anyway, I built static-only (.a) versions of readline and ncurses, which did the trick.
Ah, you didn't *have* static versions of readline and ncurses...
So how should it possibly have linked those libraries statically???
Regards,
Martin
What do you mean? A static-only build does somehow exclude that I had
static libraries before? ar**********@gm ail.com wrote: What do you mean? A static-only build does somehow exclude that I had static libraries before?
No, it doesn't. I misunderstood. It is quite unclear still what you had
been doing: e.g. did you have shared versions of db and Tcl or not?
Did you have linker scripts in place? What was your specific command
line you have used to link the entire interpreter?
In the absence of details, we have to take guesses on Usenet. Sometimes,
the guesses are right, and sometimes they are wrong.
Regards,
Martin This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Yuri Pimenov |
last post by:
Hello, all.
Im trying to build python 2.3.2 on openbsd 3.4.
First of all, ./configure complains several times about unability to
test sys/select.h, sys/lock.h files:
....
checking ncurses.h usability... no
checking ncurses.h presence... yes
configure: WARNING: ncurses.h: present but cannot be compiled
|
by: spanov |
last post by:
i've got problem installing python-2.3.5 from sources on FreeBSD 5.3
root@server# ./configure > conf_log
configure: WARNING: curses.h: present but cannot be compiled
configure: WARNING: curses.h: check for missing prerequisite
headers?
configure: WARNING: curses.h: see the Autoconf documentation
configure: WARNING: curses.h: section "Present But Cannot Be
Compiled"
configure: WARNING: curses.h: proceeding with the...
|
by: David Bear |
last post by:
I need python 2.3. I have freebsd 4.10-releng. when configuring python I
received the following:
../configure --prefix=/home/webenv > config-results
configure: WARNING: curses.h: present but cannot be compiled
configure: WARNING: curses.h: check for missing prerequisite headers?
configure: WARNING: curses.h: see the Autoconf documentation
configure: WARNING: curses.h: section "Present But Cannot Be Compiled"
configure: WARNING:...
|
by: skip |
last post by:
I'm having no success building the curses module on Solaris 8 (yes, I know
it's ancient - advancing the state-of-the-art is not yet an option) for
Python 2.4. Sun provides an apparently ancient version of curses in
/usr/lib, so I downloaded and installed ncurses 5.5, both using default
settings and using --with-shared. When the curses module is linked against
libcurses.so I get some strange error about acs32map being undefined (which...
|
by: Ralph Butler |
last post by:
Hi:
I have searched the docs and google but have not totally figured
out how to accomplish my task: On a linux box, I want to compile
and link python so that it uses no shared libraries, but does support
import of some "extra" modules. I have made a few attempts but
with limited success. In particular, I have tried things like
adding -static to the compiler options in the Makefile.
At one point I managed to build a python that was...
| |
by: Fabrice DELENTE |
last post by:
Hello.
I'm trying to display french characters (è -- that's e grave -- or à --
agrave) in python 2.5, with the ncurses wrapper that comes it, and I can't.
My locale is set correctly (fr_FR.iso885915), and my terminal (rxvt-unicode)
is able to display those chars.
What am I missing?
Thanks.
|
by: lnatz |
last post by:
Hi,
I am writing a shell and am using ncurses to recognize key commands
like up_arrow(KEY_UP) and down_arrow(KEY_DOWN). In a unix/linux OS the
up arrow would give you the last command you input. I am trying to do
that, but I don't know how to explain it well but I am trying to get
that browsing look. I can access the history and retrieve the last
command but if i want to browse three or four further back I can't get
it to act the same way...
|
by: lnatz |
last post by:
Hi,
I am writing a shell(project). I would like to use readline, ncurses
and/or history to search history. I want to write a function that
would recognize the KEY_UP and KEY_DOWN,and search the history. I want
the upand down key to act the same as it would in a unix terminal. If
anyone could help me, I would greatly appreciate it.
Thank you in advance,
Natalie
|
by: John Nagle |
last post by:
I've been installing Python and its supporting packages on
a dedicated server with Fedora Core 6 for about a day now.
This is a standard dedicated rackmount server in a colocation
facility, controlled via Plesk control panel, and turned over
to me with Fedora Core 6 in an empty state. This is the
standard way you get a server in a colo today.
Bringing Python up in this completely clean environment is
a huge hassle, and it doesn't...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |