Looking for help applying patch to NEdit
Paterline, David L.
paterldl at westinghouse.com
Wed Nov 21 14:00:44 CET 2007
Tony Balinski wrote:
> Hmmm. I expect the __ctype_... stuff is the static data used by the
<ctype.h>
> "functions" (toupper, isascii etc). These can be implemented as
macros, or
> maybe as inline functions; I expect that's what's happening here, and
that the
> linker cannot find this data reference. I would have thought this
should be in
> the standard C library (libc.so). Pretty fundamental!
I also traced the errors back (apparently) to the <ctype.h> include
file, which I can't find in any of the directories in the search path
for the build. I don't know enough about the Linux/Intel compiler to
understand why this wouldn't be a compile error, rather than a link
error, if the include file can't be found.
> Did you make sure all object files and archives were removed from your
nedit
> tree (ie did you run "make clean")? Does the unpatched nedit source
tree build
> properly?
I did "clean" before building; I actually downloaded the 5.5 source into
a clean area and rebuilt from scratch - no patches. I got the same
errors building the clean distribution source. Here's the output from
'uname -a' on my Linux workstation:
Linux shemp 2.6.5-7.244-bigsmp #1 SMP Mon Dec 12 18:32:25 UTC 2005 i686
i686 i386 GNU/Linux
One difference I see between the HP-UX and Linux builds is that, on
HP-UX, the build uses "-I/usr/include/X11R5 -I/usr/include/Motif1.2" and
on Linux, it uses " -I/usr/X11R6/include". Again, not sure what that
means, or whether it means anything.
Thanks for the response.
-
David L. Paterline
Principal Engineer
Westinghouse Electric Company
Nuclear Fuel Engineering
Engineering Computing
paterldl at westinghouse.com
PH: 412-374-2286
FX: 412-374-2284
-----Original Message-----
From: discuss-bounces at nedit.org [mailto:discuss-bounces at nedit.org] On
Behalf Of Tony Balinski
Sent: Tuesday, November 20, 2007 8:24 PM
To: General NEdit discussion list
Subject: RE: Looking for help applying patch to NEdit
Quoting "Paterline, David L." <paterldl at westinghouse.com>:
> Hello all -
>
> I was successful recently rebuilding NEdit 5.5 with the T. K. Soh
> toolbar patch on HP-UX. However, I am now having a problem trying to
> rebuild it on Linux (SLES90). I don't think these problems have
anything
> to do with the patch per se, but here are the link errors I am
getting.
> I hope someone can provide me some help in addressing the errors.
Thanks
> in advance.
>
> /usr/X11R6/lib/libXm.a(ResConvert.o)(.text+0x5c6): In function
> `XmeNamesAreEqual':
> : undefined reference to `__ctype_b'
> /usr/X11R6/lib/libXm.a(ResConvert.o)(.text+0x5cc): In function
> `XmeNamesAreEqual':
> : undefined reference to `__ctype_tolower'
Hmmm. I expect the __ctype_... stuff is the static data used by the
<ctype.h>
"functions" (toupper, isascii etc). These can be implemented as macros,
or
maybe as inline functions; I expect that's what's happening here, and
that the
linker cannot find this data reference. I would have thought this should
be in
the standard C library (libc.so). Pretty fundamental!
Did you make sure all object files and archives were removed from your
nedit
tree (ie did you run "make clean")? Does the unpatched nedit source tree
build
properly?
Tony
--
NEdit Discuss mailing list - Discuss at nedit.org
http://www.nedit.org/mailman/listinfo/discuss
More information about the Discuss
mailing list