Deleting compiled programs.

Deleting compiled programs.

Post by Dexter D » Tue, 01 Oct 2002 20:47:15



Hello,

Is there a way to remove already compiled programs from FreeBSD?  Please
help. Thanks in advance.

DexterD

 
 
 

Deleting compiled programs.

Post by Lew Pitch » Tue, 01 Oct 2002 21:11:19


On Mon, 30 Sep 2002 13:47:15 +0200, in comp.unix.admin, "Dexter D."


>Hello,

>Is there a way to remove already compiled programs from FreeBSD?  Please
>help. Thanks in advance.

that would be

  rm /path/to/program

Lew Pitcher, Information Technology Consultant, Toronto Dominion Bank Financial Group

(Opinions expressed are my own, not my employer's.)

 
 
 

Deleting compiled programs.

Post by Ted Spradle » Tue, 01 Oct 2002 21:32:26


On Mon, 30 Sep 2002 13:47:15 +0200


> Hello,

> Is there a way to remove already compiled programs from FreeBSD?
> Please help. Thanks in advance.

 rm(1)

Or if these "already compiled programs" were installed with pkg_add,
look at pkg_delete(1).

--
Remember, more computing power was thrown away last week than existed in
the world in 1982.  -- http://www.tom.womack.net/computing/prices.html

 
 
 

Deleting compiled programs.

Post by Rev. Don Koo » Tue, 01 Oct 2002 22:04:19



> Hello,

> Is there a way to remove already compiled programs from FreeBSD?

        In a UNIX system, yes.  In FreeBSD you'll need to ask in a newsgroup
that caters to that subject.  FreeBSD is off-topic on "comp.unix.admin".
  Here the discussion is of UNIX systems administration.

                Hope this helps,
                        Don

--
***********************      You a bounty hunter?
* Rev. Don McDonald   *      Man's gotta earn a living.
* Baltimore, MD       *      Dying ain't much of a living, boy.
***********************             "Outlaw Josey Wales"

 
 
 

Deleting compiled programs.

Post by Dexter D » Tue, 01 Oct 2002 22:45:37


Thanks a lot. Looks easy. I hope I don't*up any dependencies.

Dexter D.




> > Hello,

> > Is there a way to remove already compiled programs from FreeBSD?

> In a UNIX system, yes.  In FreeBSD you'll need to ask in a newsgroup
> that caters to that subject.  FreeBSD is off-topic on "comp.unix.admin".
>   Here the discussion is of UNIX systems administration.

> Hope this helps,
> Don

> --
> ***********************      You a bounty hunter?
> * Rev. Don McDonald   *      Man's gotta earn a living.
> * Baltimore, MD       *      Dying ain't much of a living, boy.
> ***********************             "Outlaw Josey Wales"

 
 
 

Deleting compiled programs.

Post by p.. » Wed, 02 Oct 2002 05:49:27



> Hello,
> Is there a way to remove already compiled programs from FreeBSD?  Please
> help. Thanks in advance.

Deleting program files is done with 'rm' , just like any other files.

If the program is part of a "package" installed with pkg_add, then
pkd_delete will remove both the program and every other file that
has been installed ( unless it's referenced by any other package.

Stuff installed with the "ports" method is usually also registrered
as a package, thus pkg_delete will remove it.

pkg_info may be used to examine what's installed.

Quote:> DexterD

--
Peter H?kanson        
        IPSec  Sverige      ( At Gothenburg Riverside )
           Sorry about my e-mail address, but i'm trying to keep spam out,
           remove "icke-reklam" if you feel for mailing me. Thanx.
 
 
 

Deleting compiled programs.

Post by Rev. Don Koo » Wed, 02 Oct 2002 08:49:13



> Thanks a lot. Looks easy. I hope I don't*up any dependencies.

        No problem.  Glad to help.

                        Don

--
***********************      You a bounty hunter?
* Rev. Don McDonald   *      Man's gotta earn a living.
* Baltimore, MD       *      Dying ain't much of a living, boy.
***********************             "Outlaw Josey Wales"

 
 
 

Deleting compiled programs.

Post by Hansel & Grete » Fri, 29 Nov 2002 08:44:45


Did you _really_ want to thank this guy ?


> Thanks a lot. Looks easy. I hope I don't*up any dependencies.

> Dexter D.




> > > Hello,

> > > Is there a way to remove already compiled programs from FreeBSD?

> > In a UNIX system, yes.  In FreeBSD you'll need to ask in a newsgroup
> > that caters to that subject.  FreeBSD is off-topic on "comp.unix.admin".
> >   Here the discussion is of UNIX systems administration.

...
 
 
 

1. Tricky bug in program caused by delete/delete [] - help

Hello fellow linux developers. I seem to be having some serious problems
with the dynamic memory allocation routines in C++. I am using a pretty
vanilla Slackware 2.0.0- libc 4.5.26, gcc 2.5.8, kernel 1.1.54/62.

What I am trying to do is create a dynamically sized list of char
pointers. When adding one, the old char ** array is reallocated and
the old contents are copied into it. The routine that accomplishes
this is add_stringlist(), below. Another routine involved is clear(),
also below, which deallocates the list once and for all. However,
when the "delete" statement is called, the program crashes with a
segmentation fault. Not on the first time, mind you- it takes a few tries
before it happens- but generally less than ten. I've tried both
"delete" and "delete []." (The function newdup does a strdup but
allocates the memory with new.)

I am completely stumped. Would anyone have any help for me? This was
happening yesterday with another deallocation of a char ** that I was
trying to do as well- I eventually just stopped deallocating it due to
frustration.

A trace from GDB follows, as well as the two code fragments. I appreciate
all responses.

Cheers,

Doug

A trace from GDB 4.12 reveals:

(gdb) where
#0  0x14521 in _free_internal (ptr=0x2000) at free.c:169
#1  0x14602 in free (ptr=0x2000) at free.c:217
#2  0xfe30 in __builtin_delete (ptr=0x2000)

    toadd=0x2c300 "somestring") at somefile.C:103
...
(gdb) list
98        int i;
99      
100       newlist = new char *[count + 1];
101       for (i = 0; i < count; i++)
102         newlist[i] = list[i];
103       delete [] list;
104       list = newlist;
105       list[count++] = newdup(toadd);
106     }
107    

void add_stringlist(int &count, char ** &list, const char *toadd)
{
  char **newlist;
  int i;

  newlist = new char *[count + 1];
  for (i = 0; i < count; i++)
    newlist[i] = list[i];
  delete [] list;
  list = newlist;
  list[count++] = newdup(toadd);

void some_class::clear(void)
// Frees all allocated memory
{
  int i;

# define CINN(x) do { if ((x)) { delete (x); (x) = NULL; } } while (0)
  // clear if not null

  for (i = 0; i < msgcount; i++)
    CINN(messages[i]);
  delete [] messages; // This is causing core dump???
  msgcount = 0;
  ...

# undef CINN

2. What is 'Signal 11' (SVR4)

3. CC compiled .so does not work with g++ compiled main program

4. Process accounting

5. compile C programs with UNIX system calls (= Unix Programs??)

6. partitions/ibm.c

7. Disabling control-alt-delete from a program

8. Problems while Installing from floppies

9. Deleting programs

10. How to delete a line from a file that is opened by other program.

11. Benchmark programs deleting CDE

12. delete a terminal window from a program

13. Deleting shared-library allocated heap objects in main-program