vi, curses, and core dumping

vi, curses, and core dumping

Post by Dipesh Hinduj » Thu, 14 Nov 2002 03:18:31



I recently installed the ncurses package off of sunfreeware.com for Sol8
x86, but now vi won't work.  Tried installing vim off sunfreeware, core
dumps when I try to run it.  So now I am back to wanting to fix vi...

Quote:> $ vi
> ld.so.1: vi: fatal: relocation error: file vi: symbol resetterm: referenced symbol not found
> Killed

I've been thinking along the lines of all the new packages have
installed into /usr/local/lib and so on instead of /usr/lib might have
something to do with it, but copying the libraries over to where my
/usr/lib and /usr/include directories are identical to my /usr/local/lib
and /usr/local/include directories has not seemed to work.  Scoured the
net, this doesn't seem to be a popular problem...

I'm figuring it is ncurses and curses since the resetterm symbol should
be in those libraries, but I may be looking at the wrong thing...

Any help, much appreciated.

 
 
 

vi, curses, and core dumping

Post by Andrew Gabri » Thu, 14 Nov 2002 03:34:47




Quote:> I recently installed the ncurses package off of sunfreeware.com for Sol8
> x86, but now vi won't work.  Tried installing vim off sunfreeware, core
> dumps when I try to run it.  So now I am back to wanting to fix vi...

>> $ vi
>> ld.so.1: vi: fatal: relocation error: file vi: symbol resetterm: referenced symbol not found
>> Killed

> I've been thinking along the lines of all the new packages have
> installed into /usr/local/lib and so on instead of /usr/lib might have
> something to do with it, but copying the libraries over to where my
> /usr/lib and /usr/include directories are identical to my /usr/local/lib
> and /usr/local/include directories has not seemed to work.  Scoured the
> net, this doesn't seem to be a popular problem...

> I'm figuring it is ncurses and curses since the resetterm symbol should
> be in those libraries, but I may be looking at the wrong thing...

Sounds like you either overwrote the Solaris curses library, or you
have LD_LIBRARY_PATH set.

If you have LD_LIBRARY_PATH set in your environment, unset it;
it should not normally be set.

To see if the curses library is OK, run:  pkgchk SUNWcsl

--
Andrew Gabriel
Consultant Software Engineer

 
 
 

vi, curses, and core dumping

Post by Dipesh Hinduj » Thu, 14 Nov 2002 05:13:27





>>I recently installed the ncurses package off of sunfreeware.com for Sol8
>>x86, but now vi won't work.  Tried installing vim off sunfreeware, core
>>dumps when I try to run it.  So now I am back to wanting to fix vi...

>>>$ vi
>>>ld.so.1: vi: fatal: relocation error: file vi: symbol resetterm: referenced symbol not found
>>>Killed

>>I've been thinking along the lines of all the new packages have
>>installed into /usr/local/lib and so on instead of /usr/lib might have
>>something to do with it, but copying the libraries over to where my
>>/usr/lib and /usr/include directories are identical to my /usr/local/lib
>>and /usr/local/include directories has not seemed to work.  Scoured the
>>net, this doesn't seem to be a popular problem...

>>I'm figuring it is ncurses and curses since the resetterm symbol should
>>be in those libraries, but I may be looking at the wrong thing...

> Sounds like you either overwrote the Solaris curses library, or you
> have LD_LIBRARY_PATH set.

> If you have LD_LIBRARY_PATH set in your environment, unset it;
> it should not normally be set.

> To see if the curses library is OK, run:  pkgchk SUNWcsl

Thanks, my SUNWcsl package indeed was off and it seems the ncurses
package is not a substitute.  After reinstalling the SUNWcsl package off
the CD, everything seems to work fine.  Now to test whatever program I
had installed ncurses for...

Dipesh

 
 
 

vi, curses, and core dumping

Post by Casper H.S. Di » Thu, 14 Nov 2002 06:28:39



>I recently installed the ncurses package off of sunfreeware.com for Sol8
>x86, but now vi won't work.  Tried installing vim off sunfreeware, core
>dumps when I try to run it.  So now I am back to wanting to fix vi...
>> $ vi
>> ld.so.1: vi: fatal: relocation error: file vi: symbol resetterm: referenced symbol not found
>> Killed

Remove /usr/ucblib from LD_LIBRARY_PATH

Casper
--
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.

 
 
 

1. dump core or not dump core

Howdy,

Some of my programs dump core, others don't. I tried
it on RedHat 6.1 and Mandrake 7.0 with kernels 2.2.14
and 2.2.15. I tried tcsh and bash with coredumpsize
set to 1GB. It seems to be application specific.

Is there any other criteria when suppressing apart from
the type of signal and the size limitation?
The application that doesn't dump core contains signal
handlers for some signals, but not for SEGV or ABRT.

Ruppert

 -----------------------------------------------------------------

 Dept of Elec. & Comp. Engr.    http://alpha.ece.ucsb.edu/~ruppert
 University of California       Phone: (805) 893-7788
 Santa Barbara, CA 93106        Fax:   (805) 893-3262
 -----------------------------------------------------------------

2. New HD Install

3. core dumps core dumps everywhere...

4. Microsoft Pays Off Internet Sercice Providers!

5. vi core dump

6. Mounting a NTFS in Linux ???

7. I/O corruption with more than 64 LUNs on a SCSI target?

8. Problem with vi (core dumps)

9. Get "Segmentation fault (core dumped)" but no core file found

10. Apache problem - core dumps (httpd.core) all over the place

11. XF86_SVGA core dumped, but where is the core file?

12. why are core dumps always named "core"?