Code Monkey home page Code Monkey logo

mac-telnet's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mac-telnet's Issues

Auth incompatible with firmware 6.45.7 :-(

  • MAC Telnet version: MAC-Telnet 0.4.4
  • **Operating system and architecture: Linux 3 5.0.0-34-generic #36-Ubuntu SMP Wed Oct 30 05:16:14 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
    **
  • Issue: with latest firmware (MikroTik 6.45.7 (stable) RB2011UiAS-2HnD) can't login with "Login failed, incorrect username or password" error
  • # mactelnet 4C:5E:0C:5A:9B:5C
    Login: admin
    Password:
    Connecting to 4c:5e:c:5a:9b:5c...done
    Login failed, incorrect username or password
    Connection closed.

    login and pass not empty and correct!

Fix - No TTY mode

In order to be able to use mactelnet from PHP (and so without terminal), terminal size should be specified.

So, you have to use login flags

https://wiki.mikrotik.com/wiki/Manual:Console_login_process#Console_login_options

Or the program has do declare it

Here is a patch i propose.

diff --git a/src/mactelnet.c b/src/mactelnet.c
index 8358673..ce2db40 100644
--- a/src/mactelnet.c
+++ b/src/mactelnet.c
@@ -247,6 +247,11 @@ static void send_auth(char *username, char *password) {
                height = htole16(height);
                plen += add_control_packet(&data, MT_CPTYPE_TERM_WIDTH, &width, 2);
                plen += add_control_packet(&data, MT_CPTYPE_TERM_HEIGHT, &height, 2);
+       } else {
+               width = htole16(0);
+               height = htole16(0);
+               plen += add_control_packet(&data, MT_CPTYPE_TERM_WIDTH, &width, 2);
+               plen += add_control_packet(&data, MT_CPTYPE_TERM_HEIGHT, &height, 2);
        }
 
        outcounter += plen;

If you don't, you get disconnected and so the program is no more usable from PHP (or any non TTY environment).

Support for addressing router with MNDP Identifier name

At some time, when I have time, I will make support for using router id as "hostname" for connecting.

Ex. if the router is called 'MyRouter'. The idea is to be able to write
mactelnet eth0 MyRouter

And then it will connect if it finds this router with MNDP query within a timeout duration.

Feature request and/or bug fix

Hi,

First off, let me just say that this is an awesome little tool, but I wonder if you could consider adding the following feature and / or fix a small 'bug':

  1. Feature: Add PAM support so that you can authenticate against system accounts under Linux.

  2. Bug: When MAC-Telnetting from a Mikrotik to a Linux server running the mactelnetd binary, the session disconnects after a few seconds (around 10 or so seconds), it doesn't happen the other way around though, I can mactelnet into a Mikrotik without issues i.e. connect and leave for a few minutes and it does not drop from Linux -> Mikrotik. This with 6.15 firmware on the Mikrotik.

Edit: mactelnet sessions from a Mikrotik with 6.13 firmware does not drop, I wonder the Mikrotik/RouterOS guys are not happy with guys potentially running a mactelnetd server on non Mikrotik platforms?

Regards,
Karl

Use interface other than eth0

We sometimes interface with routers on interfaces other than eth0, it would be extremely useful to be able to set the required interface, eg:
./mactelnet -i vlan14 4c:5e:0c:02:71:90

freeze on RouterOS->mactelnetd login attempt

from time to time successfull session freezes for a few minutes (ifdown eth1 does not change this behaviour, recall I've eth0+eth1 on the same subnet)

next segfault was caught at login attempt with both eth0 and eth1 up
/var/log/messages:
Sep 28 02:51:48 asterisk mactelnetd[2692]: Bound to 0.0.0.0:20561
Sep 28 02:51:48 asterisk mactelnetd[2692]: Listening on eth1 for 90:2b:34:a9:be:fa
Sep 28 02:51:48 asterisk mactelnetd[2692]: Listening on eth0 for 10:fe:ed:1:43:cf
Sep 28 02:51:48 asterisk mactelnetd[2692]: Listening on eth1.205 for 90:2b:34:a9:be:fa
Sep 28 02:51:48 asterisk mactelnetd[2692]: Listening on eth2.205 for f8:1a:67:2:c9:0
Sep 28 02:51:48 asterisk mactelnetd[2692]: Listening on lxcbr0 for aa:20:8:23:8a:4d
Sep 28 02:53:34 asterisk mactelnetd[2785]: (703) User asurkov logged in.
Sep 28 02:55:48 asterisk mactelnetd[2886]: (716) User asurkov logged in.
Sep 28 02:56:36 asterisk kernel: mactelnetd[2701]: segfault at 0 ip 00274c3f sp bfca57a4 error 4 in libc-2.12.so[1fb000+190000]

Compatibility with RouterOS 6.43

Starting with RouterOS 6.43rc17 the protocol changed. This is the relevant changelog entry:

*) mac-telnet - require at least v6.43 MAC Telnet client when connecting to v6.43 or later version server;

Please update the wire protocol to support latest RouterOS.

Anyone packaged RPM for CentOS 7?

Anyone packaged RPM for CentOS 7?
There is a deb package for ubuntu and probably debian but I have not seen a CentOS package even for the client.

Won't compile macOS Sierra

Please add the dependency ( brew install automake )

Compile error follows

gcc -DFROM_MACTELNET -g -O2 -L/opt/local/lib -o mactelnet mactelnet-mactelnet.o mactelnet-protocol.o mactelnet-console.o mactelnet-interfaces.o mactelnet-md5.o mactelnet-mndp.o mactelnet-autologin.o
Undefined symbols for architecture x86_64:
"_libintl_bindtextdomain", referenced from:
_main in mactelnet-mactelnet.o
_mndp in mactelnet-mndp.o
"_libintl_gettext", referenced from:
_drop_privileges in mactelnet-mactelnet.o
_main in mactelnet-mactelnet.o
_handle_packet in mactelnet-mactelnet.o
_send_udp in mactelnet-mactelnet.o
_add_control_packet in mactelnet-protocol.o
_add_packetdata in mactelnet-protocol.o
_mndp_add_attribute in mactelnet-protocol.o
...
"_libintl_setlocale", referenced from:
_main in mactelnet-mactelnet.o
_mndp in mactelnet-mndp.o
"_libintl_textdomain", referenced from:
_main in mactelnet-mactelnet.o
_mndp in mactelnet-mndp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [mactelnet] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1

Compile issue on RHEL5

Hi,

I'm trying to compile under RHEL5, but the automake version is very old (1.9 vs 2.68). Can you help me?

Thanks.

Interface option for discovery

Its would be great if there wil be option like -i for discovery on machines that have more than one network interface. Do you have any plans on it?

can't login with blank password?

  • MAC Telnet version:
    0.4.4
    RouterOS version 6.45.6

  • Operating system and architecture:
    armbian
    Linux rock64 4.4.192-rockchip64 #1 SMP Tue Oct 8 18:39:24 CEST 2019 aarch64 GNU/Linux

  • Issue
    I can't login via mactelnet with default/blank password (fresh RouterOS install) . Entering a blank password via command-line mactelnet [mac_addres] -u admin -p '', or hitting enter at password: prompt doesn't work & produces following error:

Login failed, incorrect username or password
Connection closed.
  • Log
    n/a. which log is required?

Should blank passwords work? What am I doing wrong? I can login via ssh & winbox without a password, yet mactelnet complains. pls help.

FYI, before anyone says "you shouldn't have a blank password on your router," this is for cases when the router has been set back to default (factory reset or a brand-new device).

Ability to transfer files

  • I've just installed MAC-Telnet 0.4.4
  • Currently the (newly obtained) device is using RouterOS 6.43.9.
  • The idea is to generate an RSC script programmatically which is then to be deployed to a MT Router (Running RouterOS).
  • Since after a /system reset-configuration there is no IPs it would be ideal if we can get a way to copy the script over using MAC-Telnet. Alternatively we'll just have to rely on the default IPs and use run-after-reset and pre-copy the script using scp (the downside of which is host keys that's going to keep getting in the way).

Not critical I guess, but would be a nice feature.

RoMON support

Is there any way that RoMON support can be added to this tool? I'm currently only using winbox for RoMON but that doesn't work with wine.

Error binding to 0.0.0.0:5678

  • MAC Telnet version: MAC-Telnet 0.4.4
  • Operating system and architecture: Linux 0x 4.4.0-17763-Microsoft #379-Microsoft Wed Mar 06 19:16:00 PST 2019 x86_64 x86_64 x86_64 GNU/Linux ( Windows SubSystem )
  • Issue
    I am try to using command -l List/Search for routers nearby (MNDP).
    i got error like that, how i can fix this
  • Log
    melex@0x:/tmp/haakonnessjoen-MAC-Telnet-db80dc7$ mactelnet -l
    Error binding to 0.0.0.0:5678

Won't compile on FreeBSD

_BSD_AVAILABLE macro is disabled, thus limiting the functionality available for FreeBSD builds.
Example errors:

mactelnetd.c:334:15: error: 'struct utmpx' has no member named 'ut_host'
strncpy(utent.ut_host,
^
mactelnetd.c:336:29: error: 'struct utmpx' has no member named 'ut_host'
sizeof(utent.ut_host));
^
mactelnetd.c:717:9: error: 'index' undeclared (first use in this function)
if (index >= 0) {
^
mactelnetd.c:1150:5: warning: incompatible implicit declaration of built-in function 'bzero'
bzero(buff, MT_HEADER_LEN);

My workaround in diff.
diff.txt

Doesn't build on Mac OS X

These tools don't build on Mac OS X but they're not far that from doing so. I understand it's titled "MAC-Telnet for Linux", so this might not be of concern, but I had a need to run mactelnet and mndp on Mac OS X, so I made it work.

This issue is intended to track the general problem that these tools don't build on Darwin.

Discovery timeout.

Hello! Thank you for such very usefull tool!
I noticed that mndp command does not have any options.
So i wonder It is possible to add things like timeout?
Like:
# mndp -t 3

Hangs indefinitely on unknown user

  • MAC Telnet version: master December 22, 2022
  • Operating system and architecture: ubuntu 22.10 / arm64
  • Issue Hangs indefinitely on unknown username
  • Target: RouterOS 7.6 / arm
  • Log

Bash (Logging in with account that does NOT exist):
mactelnet -A dc:2c:6e:02:01:00
Login: userThatDoesNotExist
Password: anySecret

Output: Invalid salt length: 33 (instead of 16 or 49) received from server dc:2c:6e:02:01:00
Result: Process hangs and never exits

Bash:
mactelnet -A dc:2c:6e:02:01:00
Login: userThatDoesExist
Password: wrongSecret

Output: Login failed, incorrect username or password
Result: bash received a SIGCHLD and exits

  • Notes

Clearly RouterOS has a problem here and is leaking information regarding user accounts, but MacTelnet should still exit.

Does not work with RouterOS 7.6

  • MAC Telnet version:

current master snapshot

  • Operating system and architecture:

Linux

  • Issue

$ ./mactelnet -u admin 6c:3b:6b:3f:e7:fa
Password:
Connecting to 6c:3b:6b:3f:e7:fa...done
Login failed, incorrect username or password
Connection closed.

  • Log from device

jan/02/1970 00:06:16 system,error,critical login failure for user admin from 00:1C:C0:18:FC:89 via mac-telnet

This is my first experience using mac-telnet. The device is available by IP via classic telnet or by MAC address via Winbox.

can't connect to MikroTik RouterOS 6.27

got no success connecting to 6.27 RB2011 on CentOS 6.6
got this output:

$ sudo mactelnet 4c:5e:c:5f:ba:f -u asurkov
Password:
Connecting to 4c:5e:c:5f:ba:f...Connection failed.
$

is there debug mode ... could you give me digging direction, please ;)

How to auto login?

  • MAC Telnet version:
    From git

  • Operating system and architecture:
    Unix-like

  • Issue
    Hey,
    I have a hopefully very simple question regarding auto login:

autologin.c seems to in charge of parsing that file, but I still can't get the syntax right.
Can somebody please shed some light on this and/or post an example file?

Thank you

  • Log

High latency bug

Hi,

Centos 7 install from RPM, connecting from Linux to Mikrotik hAP-AC2 (RouterOS 6.42.3).

When i connect using mactelnet to Mikrotik with latency <10ms no problems. mactelnet behaves as expected.

When connecting to device that is between 120-140ms away, mactelnet will allow a few commands to be executed then exit with message: "Connection timed out".

I know mac telnet relies on L2 communication and as such is quite unreliable and if the mac-telnet client built into Mikrotik was doing the same thing i would not be bothering you. But the Mikrotik client does not suffer from this problem, it acts as expected even under high latency conditions.

You will see from the pcaps that the terminal size is quite large, the terminal is different and colors have been disabled on login. I have tried configuring the linux terminal to mirror the settings that work when using the Mikrotik native client (term=linux, terminal height/width = actual terminal), but that does not make a difference, connection still times out after a few commands.

This may be related to https://github.com/haakonnessjoen/MAC-Telnet/issues/9, however in that case the roles where reversed and linux was used as the server.

macping: "open_bpf: Resource busy"

I'm not sure it is an issue, but I can't macping any mac address because of this error:
open_bpf: Resource busy

My setup is:

  • MacBook Pro (Retina, 15-inch, Mid 2015)
  • macOS Sierra 10.12.3 (16D32)
  • MAC-Ping 0.4.4

Reproduce:
bash-3.2# macping 6C:3B:6B:59:9F:6A
open_bpf: Resource busy

Virtual Machine:
I've checked this behavior on virtual macOS Sierra 10.12.3 and it is working fine.
The only difference is that VM has only one network interface.

Please advise.
Thanks!

OSX Build

Hi,

the latest build not working on OSX; i have see the code and I see that many changes have been made.

you can fix the code so that it works even on osx?

Thanks.

Unable to run script via browser

I'm trying to execute an expect script through php in browser, but it's throwing an expect error saying "spawn id exp5 not open". But if I execute the php file directly from terminal it's working fine and I'm able to get the ouput. Same thing with ssh with IP Address, it's working fine through browser and terminal.

This is my exp file that needs to be called via PHP from browser:

#!/usr/bin/expect -f
set timeout -1
spawn mactelnet xx:xx:xx:xx:xx:xx -u admin -p admin
match_max 100000
sleep 1
expect " > "
send "/ip dhcp-server lease print\r"
expect " > "
send "/quit\r"
expect eof
set i 1
while {$i < 51} {
set output [open "/var/www/html/IntegrasiHelpdesk/aktivasi/txt/aaa.txt" "w"]
set outcome $expect_out(buffer)
puts $output $outcome
incr i
}
close $output

The php file is just a normal shell exec function :
shell_exec(<path to my exp file> . '&& ./cekDHCPmac.exp 2>&1 &');

MAC Telnet from MT disconnect after login

I have installed MAC-Telnet on Ubuntu 12 and ran mactelnetd.
I can see server just fine in neighbour discovery.
MAC Ping works.
When i try to mac telnet i got asked for username and password, when i eneter them i see ubuntu welcome text and console prompt (where i should be able to type commands).
After that i got disconnect and both mac telnet and ping are not working anymore until i kill mactelnetd and start again.

make all install fails...

  • MAC Telnet version:
  • Operating system and architecture:
  • Issue
  • Log

make install gives following error output

make: *** No rule to make target 'all'. Stop.

FreeBSD instructions minor typo

  • MAC Telnet version:
    README.markdown

  • Operating system and architecture:
    FreeBSD

  • Issue
    Currently reads:

FreeBSD
Dependencies: clang (gcc or similar), automake, autoconf

To install dependencies on Debian/Ubuntu based systems:

Also is wget, gcc and gmake implied here?

pkg install automake autoconf gettext-tools

On base install I had to add:

pkg install automake autoconf gettext-tools gcc gmake wget

Thanks for the Great work, best of luck resolving the new login encryption.

mactelnetd wont bind to an interface without an IP address

Hello

I am seeing an issue where mactelnetd will not bind before an ip address is allocated to the interface.

I want to be able to use mactelnet to get back into a box in the case where it is unable to dhcp an address but mactelnetd refuses to start if the network interface does not have an IP address.

Can you see a way around this?

James

Outputs garbage and dies after login most of the time with Mikrotik >=5.20

Hello, we now usually get:

Connecting to 2:2:0:99:95:9...done

MMM MMM KKK TTTTTTTTTTT KKK
MMMM MMMM KKK TTTTTTTTTTT KKK
MMM MMMM MMM III KKK KKK RRRRRR OOOOOO TTT III KKK KKK
MMM MM MMM III KKKKK RRR RRR OOO OOO TTT III KKKKK
MMM MMM III KKK KKK RRRRRR OOO OOO TTT III KKK KKK
MMM MMM III KKK KKK RRR RRR OOOOOO TTT III KKK KKK

MikroTik RouterOS 5.20 (c) 1999-2012 http://www.mikrotik.com/

V4^R
V4�^B^@^@^@^@e^Z��a^K�lOcP���V4^R
��a^K�lOcP���V4�^C^@^@^@^EadminV4^R
^@^@^@^EadminV4�^@^@^@^ExtermV4^R
^@^@^@^ExtermV4�^E^@^@^@^BO^@v4^R
^@^@^@^ExtermV4�^E^@^@^@^BO^@v4�^F^@^@^@^B^@connection closed.

.

I tried debugging it and found out, that the text it prints + the garbage is all outputed on a single line in mactelnet.c (line 297, as of writing)

        /* If the (remaining) data did not have a control-packet magic byte sequence,
           the data is raw terminal data to be outputted to the terminal. */
        else if (cpkt.cptype == MT_CPTYPE_PLAINDATA) {
            cpkt.data[cpkt.length] = 0;
          fputs((const char *)cpkt.data, stdout);
        }

Then the client sends an ACK and then Mikrotik immediately sends back an end session frame.

Tried compiling with -m32 and -m64 on amd64 system.

Question about develop

Hello and nice evening :)

I would like to know whether the project is still actively developed?

Thanks and best regards

Firewall

On Fredora/CentOS

firewall-cmd --permanent --add-port=5678/udp
firewall-cmd --reload

Helps with neighbour discovery

feature request -- pass commands

I would love to be able to execute commands from a remote shell.

Currently (if i have an IP address, assume default config) I could execute something like:
ssh [email protected] '/system reboot'

would it possible to implement this with the mac address?
mactelnet 00:11:22:AA;BB;CC -u admin -p "" '/system reboot'

Thanks!

heap corruption

p = &tmp;

the referenced line (and 3 others related to list_remove_connection will lead to heap corruption. you cannot use a local stack object as part of this list. this object will turn invalid after leaving the loop and the content of this object will be overwriten by other stack allocated objects. i found this issue while debugging a crash on mips64 systems. the temp object in list must be allocated using malloc instead
consider that the referenced line is not the only line suffering from the same error

Dependencies on Linux Mint 17.3 (and presumably Ubuntu 14.04)

Was getting:

aclocal: warning: couldn't open directory 'm4': No such file or directory
Can't exec "autopoint": No such file or directory at /usr/share/autoconf/Autom4te/FileUtils.pm line 345.
autoreconf: failed to run autopoint: No such file or directory
autoreconf: autopoint is needed because this package uses Gettext

Had to make a m4 folder and install autotools-dev for it to succeed.

Also the instructions for installing on Linux from README.markdown seem to not work for me:

--2017-03-13 21:38:54--  http://github.com/haakonnessjoen/MAC-Telnet/tarball/master
Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113
Connecting to github.com (github.com)|192.30.253.112|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://github.com/haakonnessjoen/MAC-Telnet/tarball/master [following]
--2017-03-13 21:38:54--  https://github.com/haakonnessjoen/MAC-Telnet/tarball/master
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/haakonnessjoen/MAC-Telnet/legacy.tar.gz/master [following]
--2017-03-13 21:38:54--  https://codeload.github.com/haakonnessjoen/MAC-Telnet/legacy.tar.gz/master
Resolving codeload.github.com (codeload.github.com)... 192.30.253.120, 192.30.253.121
Connecting to codeload.github.com (codeload.github.com)|192.30.253.120|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 66860 (65K) [application/x-gzip]
Saving to: ‘master’

100%[====================================================>] 66,860       405KB/s   in 0.2s   

2017-03-13 21:38:55 (405 KB/s) - ‘master’ saved [66860/66860]

➜  temp tar zxvf haakonness*.tar.gz
zsh: no matches found: haakonness*.tar.gz
➜  temp tar zxvf master           
haakonnessjoen-MAC-Telnet-18ed3bc/
[...]
haakonnessjoen-MAC-Telnet-18ed3bc/src/utlist.h
➜  temp```

No longer builds on MAC

Your build instructions are incomplete. First, one gets error about aclocal can't be found, then
one gets the error "C compiler cannot create executables'

If this project is abandoned, it should be deleted or marked as 'abandoned - subject to bitrot'

Compiler warning about memcpy size

While compiling the master branch I got this warning:

cc -Wall -c protocol.c
protocol.c: In function ‘parse_mndp’:
protocol.c:312:43: warning: argument to ‘sizeof’ in ‘memcpy’ call is the same pointer type ‘struct mt_mndp_hdr *’ as the destination; expected ‘struct mt_mndp_hdr’ or an explicit length [-Wsizeof-pointer-memaccess]
memcpy(&(packet.header), mndp_hdr, sizeof(mndp_hdr));

                                       ^

Should the sizeof() parameter be set to the struct itself instead of a pointer to struct?

autogen.sh not working as it should on Ubuntu 22.04

  • MAC Telnet version:

Latest version

  • Operating system and architecture:

Ubuntu 22.04 - Linux 5.15.0-52-generic x86_64 (VM)

  • Issue

Performing autogen.sh returns following error

  • Log
./configure: line 8210: syntax error near unexpected token `CRYPTO,'
./configure: line 8210: `PKG_CHECK_MODULES(CRYPTO, libcrypto >= 1.0.2)'

Build failed on macOS Catalina

➜  MAC-Telnet-master ls /usr/local/opt/gettext/bin
autopoint       gettext         gettextize      msgcat          msgcomm         msgen           msgfilter       msggrep         msgmerge        msguniq         recode-sr-latin
envsubst        gettext.sh      msgattrib       msgcmp          msgconv         msgexec         msgfmt          msginit         msgunfmt        ngettext        xgettext
➜  MAC-Telnet-master export PATH=/usr/local/opt/gettext/bin:$PATH
➜  MAC-Telnet-master ./autogen.sh
configure.ac:18: warning: The 'AM_PROG_MKDIR_P' macro is deprecated, and its use is discouraged.
configure.ac:18: You should use the Autoconf-provided 'AC_PROG_MKDIR_P' macro instead,
configure.ac:18: and use '$(MKDIR_P)' instead of '$(mkdir_p)'in your Makefile.am files.
configure.ac:18: warning: The 'AM_PROG_MKDIR_P' macro is deprecated, and its use is discouraged.
configure.ac:18: You should use the Autoconf-provided 'AC_PROG_MKDIR_P' macro instead,
configure.ac:18: and use '$(MKDIR_P)' instead of '$(mkdir_p)'in your Makefile.am files.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/Users/septs/Downloads/MAC-Telnet-master/MAC-Telnet-master':
configure: error: C compiler cannot create executables
See `config.log' for more details
➜  MAC-Telnet-master ./configure
## ignore the logging
➜  MAC-Telnet-master make
Making all in src
/Library/Developer/CommandLineTools/usr/bin/make  all-am
gcc -DHAVE_CONFIG_H -I.  -DLOCALEDIR='"/usr/local/share/locale"'  -DFROM_MACTELNET -g -O2 -MT mactelnet-mactelnet.o -MD -MP -MF .deps/mactelnet-mactelnet.Tpo -c -o mactelnet-mactelnet.o `test -f 'mactelnet.c' || echo './'`mactelnet.c
mactelnet.c:20:10: fatal error: 'libintl.h' file not found
#include <libintl.h>
         ^~~~~~~~~~~
1 error generated.
make[2]: *** [mactelnet-mactelnet.o] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1

config.log

Raspbian extra dependency

I had to apt install gettext in order to move passed warning: macro 'AM_GNU_GETTEXT' not found in library and other warnings.

install problem: autogen.sh error

OS: Ubuntu 14.04 LTS

$ ./autogen.sh aclocal: warning: couldn't open directory 'm4': Нет такого файла или каталога Can't exec "autopoint": Нет такого файла или каталога at /usr/share/autoconf/Autom4te/FileUtils.pm line 345. autoreconf: failed to run autopoint: Нет такого файла или каталога autoreconf: autopoint is needed because this package uses Gettext

just need to:
mkdir m4

and
$ sudo apt-get install autopoint

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.