What do the symbols $@, $^, $< mean and where is 'mtrace'?

What do the symbols $@, $^, $< mean and where is 'mtrace'?

Post by Yu Lianqi » Wed, 02 Apr 2003 18:12:53



I am learning the book "Advanced Linux programming" and have got two problems:


Thay are in lines

and

in the Makefile of page 253.

2. Where is the command 'mtrace'
I can't find this command on my Redhat 8.0 personal system.

 
 
 

What do the symbols $@, $^, $< mean and where is 'mtrace'?

Post by Josef M?ller » Wed, 02 Apr 2003 18:21:53



> I am learning the book "Advanced Linux programming" and have got two problems:


> Thay are in lines

> and

> in the Makefile of page 253.


$^ The names of all the prerequisites, with spaces between them.
$< The name of the first prerequisite.

--
Josef M?llers (Pinguinpfleger bei FSC)
        If failure had no penalty success would not be a prize
                                                -- T.  Pratchett

 
 
 

What do the symbols $@, $^, $< mean and where is 'mtrace'?

Post by Kasper Dupon » Wed, 02 Apr 2003 18:24:12



> I am learning the book "Advanced Linux programming" and have got two problems:



Look in the make info pages, they explain it all.
Type "info make" or "pinfo make" to see them.

Quote:

> 2. Where is the command 'mtrace'

Never heard about it. There are tools named strace
and ltrace.

--
Kasper Dupont -- der bruger for meget tid p? usenet.

for(_=52;_;(_%5)||(_/=5),(_%5)&&(_-=2))putchar(_);

 
 
 

What do the symbols $@, $^, $< mean and where is 'mtrace'?

Post by Josef M?ller » Wed, 02 Apr 2003 18:53:00




> > I am learning the book "Advanced Linux programming" and have got two problems:


> Look in the make info pages, they explain it all.
> Type "info make" or "pinfo make" to see them.

> > 2. Where is the command 'mtrace'

> Never heard about it. There are tools named strace
> and ltrace.

mtrace is a malloc trace. There seems to be a port to Linux, if google
serves me right.

--
Josef M?llers (Pinguinpfleger bei FSC)
        If failure had no penalty success would not be a prize
                                                -- T.  Pratchett

 
 
 

What do the symbols $@, $^, $< mean and where is 'mtrace'?

Post by Andi Klee » Wed, 02 Apr 2003 23:55:42



> mtrace is a malloc trace. There seems to be a port to Linux, if google
> serves me right.

It's a perl script included with glibc. It just sets up the malloc
included in glibc to trace memory allocation and output leaks.
It may not be installed by all distributions though. In SuSE it is part
of glibc-devel.

Using valgrind is probably better.

-Andi

 
 
 

What do the symbols $@, $^, $< mean and where is 'mtrace'?

Post by Villy Kru » Thu, 03 Apr 2003 16:48:37


On Tue, 01 Apr 2003 11:53:00 +0200,

Quote:

>mtrace is a malloc trace. There seems to be a port to Linux, if google
>serves me right.

On RH6 mtrace is part of glibc, that is, it will always be installed.
Perhaps "info libc" contains infomation about it.

Villy

 
 
 

1. Apache's <Location...> Directive - What am I doing wrong?

<VirtualHost jewellersure.wild.net:80>
Port 80
SSLDisable
DocumentRoot /usr/local/etc/httpd/domains/jewellersure.com
ServerName jewellersure.wild.net
ErrorLog logs/jewellersure.error_log
TransferLog logs/jewellersure.access_log
<Location /interactive/login/user_menu/user_menus>
ForceType application/x-httpd-php3
</Location>
</VirtualHost>

Ok, I *finally* got our sysadmins to put the directive into the setup
for the virtual host I'm working with.  Above, you will see that virtual
host's configuration in the httpsd.conf file (we are running the httpsd).
However, no matter how many times we try, when we put something
like the following:

 /interactive/login/user_menu/user_menus/joe
 /interactive/login/user_menu/user_menus/bob
 /interactive/login/user_menu/user_menus/this/that
 /interactive/login/user_menu/user_menus/this/other

etc.

We get a 404 error.  Now, I've set this up on my machine at home
(I'm fooling around with RedHat, Apache and PHP) and it works
fine doing things like the above.  The only difference is that in my
.conf file, the <Location ..> directive is in the global area while the
above is in the Virtual Host directive.  You, the Apache website,
and the apache book we have here all say that the <Location ...>
directive can be set up inside the <virtual host> setup, but for some
reason it is not working for us.
Do we have to do anything special?  Anything else that we have
not already done?


Thank you ever so much!!

Chris

2. Linmodems

3. What does '*' symbol in /etc/passwd means?

4. Trident 9680 16bpp only 45M ?

5. FTP question

6. How do I get 'w' to say that i am doing something else

7. .login, etc with SlackWare 2

8. What am I doing wrong with 'chat'?

9. Why: perl -e <<'EOF' doesn't work (bash)

10. I think I've found the rectum of the internet.<<<<<<<<<<<<

11. Netatalk: 'afpd' reports unresolved symbol '__xstat'

12. WHat is the meaning of load average from 'rup','uptime'?