Cannot compile on Mac OSX 10.8.3
Bug #1160321 reported by
Derek Balling
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mtr |
New
|
Undecided
|
Unassigned |
Bug Description
$ make
make all-recursive
Making all in img
make[2]: Nothing to be done for `all'.
gcc -DHAVE_CONFIG_H -I. -g -O2 -Wall -Wno-pointer-sign -MT mtr.o -MD -MP -MF .deps/mtr.Tpo -c -o mtr.o mtr.c
In file included from mtr.c:37:
asn.h:19:18: error: glib.h: No such file or directory
In file included from mtr.c:37:
asn.h:25: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
make[2]: *** [mtr.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
To post a comment you must log in.
Additional info:
1) I found a link to a built 0.82 version at: https:/ /support. eapps.com/ index.php? /Knowledgebase/ Article/ View/442/ 28/mtr- for-mac- os-x
2) I found this article with a potential fix. http:// blog.justus- beyer.de/ 2012/11/ installing- my-traceroute- mtr-on- mac-os- x-mountain- lion/
Using this technique still gives an error:
bash-3.2$ make local/Cellar/ glib/2. 34.3/include/ glib-2. 0 -I/usr/ local/Cellar/ glib/2. 34.3/lib/ glib-2. 0/include -I/usr/ local/Cellar/ gettext/ 0.18.1. 1/include -I. -g -O2 -Wall -Wno-pointer-sign -MT mtr.o -MD -MP -MF .deps/mtr.Tpo -c -o mtr.o mtr.c local/Cellar/ glib/2. 34.3/include/ glib-2. 0 -I/usr/ local/Cellar/ glib/2. 34.3/lib/ glib-2. 0/include -I/usr/ local/Cellar/ gettext/ 0.18.1. 1/include -I. -g -O2 -Wall -Wno-pointer-sign -MT asn.o -MD -MP -MF .deps/asn.Tpo -c -o asn.o asn.c
make all-recursive
Making all in img
make[2]: Nothing to be done for `all'.
gcc -DHAVE_CONFIG_H -I/usr/
mv -f .deps/mtr.Tpo .deps/mtr.Po
gcc -DHAVE_CONFIG_H -I/usr/
asn.c: In function ‘asn_lookup’:
asn.c:46: error: ‘PACKETSZ’ undeclared (first use in this function)
asn.c:46: error: (Each undeclared identifier is reported only once
asn.c:46: error: for each function it appears in.)
asn.c:58: error: ‘C_IN’ undeclared (first use in this function)
asn.c:58: error: ‘T_TXT’ undeclared (first use in this function)
asn.c:62: error: ‘HEADER’ undeclared (first use in this function)
asn.c:70: warning: implicit declaration of function ‘GETSHORT’
asn.c:75: error: ‘INT16SZ’ undeclared (first use in this function)
asn.c:46: warning: unused variable ‘answer’
make[2]: *** [asn.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
bash-3.2$ ls