Re: netkit-telnet compile fail. `exit' undeclared in main.cc ?
- From: ibuprofin@xxxxxxxxxxxxxxxxxxxxxx (Moe Trin)
- Date: Thu, 29 Jun 2006 15:11:21 -0500
On 29 Jun 2006, in the Usenet newsgroup comp.os.linux.misc, in article
<1151573045.088711.198830@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>, onionsjk@xxxxxxxxx
wrote:
As an alternative, I decided to use SRPMS, though I am not really used
to rpm. Thanks to you, I could get telnet-0.17-23.src.rpm and could
rebuild telnet.
Depending on your setup, you probably will find things up in
/usr/src/RedHat/ with the tarball and patches in /usr/src/RedHat/SOURCES
and the spec file in /usr/src/RedHat/SPECS/. The .spec file tells how
and in what order to run the patches and what is done to compile, install,
or remove the package. The format is somewhat similar to a Makefile in
concept.
But I found another problem here. "rpmbuild --bb telnet.spec" tries to
patch prior to actual compilation and this patch process fails
depending upon the location where the change occurs in source code.
Some works, some don't. This makes things worse.
Is this your patch, or just the materials that come in the source rpm? As
the source comes out of the box, this should compile exactly the same
binary that you would find in the equivalent .i386.rpm file or equal.
If you are adding your patch, it would have to be added AFTER rpmbuild
patches using the supplied patches.
I am sure there is a generic "telnet source" that is compilable in tar
ball format somewhere.
The basic tarball is in the source rpm. This should be the same as the
basic tarball from uk.linux.org, as well as the unmodified source from any
package manager.
It would appear that you are missing the development packages, or that
the Makefile is not configured for where Red Hat hides things.
I also suspected this but don't know much about this.
Glibc2 is a poor example, but using that - Red Hat 8 should have been
updated to:
glibc-2.3.2-4.80.8.i386.rpm
glibc-2.3.2-4.80.8.i686.rpm
glibc-common-2.3.2-4.80.8.i386.rpm
glibc-debug-2.3.2-4.80.8.i386.rpm
glibc-debug-2.3.2-4.80.8.i686.rpm
glibc-debug-static-2.3.2-4.80.8.i386.rpm
glibc-devel-2.3.2-4.80.8.i386.rpm
glibc-profile-2.3.2-4.80.8.i386.rpm
glibc-utils-2.3.2-4.80.8.i386.rpm
The 'glibc-2.3.2' and 'glibc-common-2.3.2' packages have the parts of the
libraries needed to _run_ compiled binaries. The '-debug' packages are used
when you are debugging the libraries. But that '-devel' is needed when you
are compiling, or building. They have all the headers and .obj stuff you
need for that task. Once the binaries are built/compiled/etc., then you
can remove the -devel package if desired.
Old guy,
.
- References:
- netkit-telnet compile fail. `exit' undeclared in main.cc ?
- From: onionsjk
- Re: netkit-telnet compile fail. `exit' undeclared in main.cc ?
- From: Moe Trin
- Re: netkit-telnet compile fail. `exit' undeclared in main.cc ?
- From: onionsjk
- netkit-telnet compile fail. `exit' undeclared in main.cc ?
- Prev by Date: Re: A REAL NEWBIE QUESTION
- Next by Date: Text in images to a text file
- Previous by thread: Re: netkit-telnet compile fail. `exit' undeclared in main.cc ?
- Next by thread: How to get the accurate process CPU utilization
- Index(es):
Relevant Pages
|