OpenSSH alternatives
#11
RE: OpenSSH alternatives
And me and user solidcore fixed it:

http://irix.cc/raion/patches/dropbear-2019-irix.patch

Tardist and more to come sooner or later. Be patient please!

I'm the system admin of this site. Private security technician, licensed locksmith, hack of a c developer and vintage computer enthusiast. 

https://contrib.irixnet.org/raion/ -- contributions and pieces that I'm working on currently. 

https://codeberg.org/SolusRaion -- Code repos I control

Technical problems should be sent my way.
Raion
Chief IRIX Officer

Trade Count: (9)
Posts: 4,240
Threads: 533
Joined: Nov 2017
Location: Eastern Virginia
Website Find Reply
02-14-2020, 07:39 PM
#12
RE: OpenSSH alternatives
Happy to help out man.

I'm new to IRIX systems, that .patch basically fixes a few things:

- Compiles on mipspro, removed some make commands, and fixed base64 ifdefine placement, clear array issue)
- Fix SIGCHLD issue, IRIX doesn't seem to 'respect' SIGCHLD as it would do on a Linux system, not sure if this is an IRIX issue specifically, however the band-aid 'solution' is centered around throwing perror(0), exit(1) to terminate zombie state and logout as expected, it may have been cleaner perhaps to fix the OS kernel, but Raion said we don't have the code so it'll have to do.

Any suggestions /improvements to the .patch please let Raion know and I'll address them respectively.

If other software needs fixing let Raion know and I'll see what we can arrange.
(This post was last modified: 02-15-2020, 09:51 PM by EasyMode.)
EasyMode
Developer

Trade Count: (0)
Posts: 4
Threads: 1
Joined: Jan 2020
Find Reply
02-15-2020, 09:50 PM
#13
RE: OpenSSH alternatives
What's the general process/flags you guys using when compiling this build of Dropbear? I have MIPSPro installed and make is throwing a fit about the Makefile syntax when I try to actually compile the software after patching it and running the configure script:


Code:
make: file `Makefile' line 12: Must be a separator (: or ::) for rules (bu39)
make: file `Makefile' line 14: Must be a separator (: or ::) for rules (bu39)
make: file `Makefile' line 21: Must be a separator (: or ::) for rules (bu39)
make: file `Makefile' line 26: Must be a separator (: or ::) for rules (bu39)
make: file `Makefile' line 29: Must be a separator (: or ::) for rules (bu39)
make: file `Makefile' line 30: Must be a separator (: or ::) for rules (bu39)
make: file `Makefile' line 30: Syntax error

From what I can tell in the Makefile, these errors are related to assignments in if statements and make is being particularly picky about the syntax. I'm not much of a programmer and I'm sure that I'm just doing something dumb here and I'd appreciate some assistance.

Thank you!

Personaliris Indigo Indigo2 Indy Onyx2 Origin 200 Origin Vault O2 Octane2 (VW 320) (VW 540) (VW 550) Fuel Tezro Tezro Rack Origin 350 Onyx4 Altix 350 (Prism Rackmount)
kaigan
Site Admin and SGI Tinkerer

Trade Count: (2)
Posts: 262
Threads: 31
Joined: May 2019
Location: Omaha, NE
Find Reply
04-16-2020, 08:24 PM
#14
RE: OpenSSH alternatives
You need to use GNU make, "gmake" in order to compile it. IRIX make is not known for being complaint with autoconf generated makefiles.

I'm the system admin of this site. Private security technician, licensed locksmith, hack of a c developer and vintage computer enthusiast. 

https://contrib.irixnet.org/raion/ -- contributions and pieces that I'm working on currently. 

https://codeberg.org/SolusRaion -- Code repos I control

Technical problems should be sent my way.
Raion
Chief IRIX Officer

Trade Count: (9)
Posts: 4,240
Threads: 533
Joined: Nov 2017
Location: Eastern Virginia
Website Find Reply
04-16-2020, 08:34 PM
#15
RE: OpenSSH alternatives
Gotcha. I must have misunderstood what Solidcore meant in an earlier post regarding the patch. I thought that it would compile with just MIPSPro's components. Is there a specific version of the GCC tools I should be using, or might I be missing dependencies? gmake is coming back with the following errors:

Code:
cc-1020 cc: ERROR File = ./tommath.h, Line = 81
  The identifier "uint32_t" is undefined.

    typedef uint32_t            mp_digit;
            ^

cc-1020 cc: ERROR File = ./tommath.h, Line = 82
  The identifier "uint64_t" is undefined.

    typedef uint64_t            mp_word;
            ^

2 errors detected in the compilation of "bncore.c".
gmake[1]: *** [Makefile:29: bncore.o] Error 2

Also, the only thing I'm passing to the configure script right now is a prefix.

Personaliris Indigo Indigo2 Indy Onyx2 Origin 200 Origin Vault O2 Octane2 (VW 320) (VW 540) (VW 550) Fuel Tezro Tezro Rack Origin 350 Onyx4 Altix 350 (Prism Rackmount)
(This post was last modified: 04-16-2020, 08:49 PM by kaigan.)
kaigan
Site Admin and SGI Tinkerer

Trade Count: (2)
Posts: 262
Threads: 31
Joined: May 2019
Location: Omaha, NE
Find Reply
04-16-2020, 08:40 PM
#16
RE: OpenSSH alternatives
It'll compile if you applied the patch correctly, and use c99, and have the latest mipspro 7.4.4m installed. You don't want outdated components fucking up the install.

So, taking the raw patch here: https://gitea.irixce.org/Raion/Xenopatch...irix.patch

for example, because this allows it to display in plaintext in a browser, you'll see what you need to do is paste this into a .patch file in the same directory as dropbear, and then run:

patch -p1 < patchname.patch

and then run ./configure; gmake -j[ncpu+1]; gmake install

Or something like that.

I'm the system admin of this site. Private security technician, licensed locksmith, hack of a c developer and vintage computer enthusiast. 

https://contrib.irixnet.org/raion/ -- contributions and pieces that I'm working on currently. 

https://codeberg.org/SolusRaion -- Code repos I control

Technical problems should be sent my way.
Raion
Chief IRIX Officer

Trade Count: (9)
Posts: 4,240
Threads: 533
Joined: Nov 2017
Location: Eastern Virginia
Website Find Reply
04-16-2020, 08:48 PM
#17
RE: OpenSSH alternatives
I just wanted to update this to state that I did get Dropbear to compile using MIPSPro and gmake. I'm pretty sure that I both didn't get the files patched correctly and wasn't using C99 mode the first time. Thanks again to Raion for the advice on getting things working!

Personaliris Indigo Indigo2 Indy Onyx2 Origin 200 Origin Vault O2 Octane2 (VW 320) (VW 540) (VW 550) Fuel Tezro Tezro Rack Origin 350 Onyx4 Altix 350 (Prism Rackmount)
kaigan
Site Admin and SGI Tinkerer

Trade Count: (2)
Posts: 262
Threads: 31
Joined: May 2019
Location: Omaha, NE
Find Reply
04-20-2020, 01:09 AM
#18
RE: OpenSSH alternatives
Sweet, glad to hear. Tip: Add to the end of the start) case on the initscript for network the dropbear command, and you can get it autostarting.

I wasn't able to get it working with inetd under IRIX. It should also be possible to make an initscript for it, but I dunno the exact process as when I tried it just shit the bed.

I'm the system admin of this site. Private security technician, licensed locksmith, hack of a c developer and vintage computer enthusiast. 

https://contrib.irixnet.org/raion/ -- contributions and pieces that I'm working on currently. 

https://codeberg.org/SolusRaion -- Code repos I control

Technical problems should be sent my way.
Raion
Chief IRIX Officer

Trade Count: (9)
Posts: 4,240
Threads: 533
Joined: Nov 2017
Location: Eastern Virginia
Website Find Reply
04-20-2020, 01:46 AM
#19
RE: OpenSSH alternatives
Dropbear merged our changes. I will be compiling the latest dropbear this evening.

Of interest for mgtremaine, the X forwarding is currently set to disable by default and needs to be turned on via a switch at compile time. I'm not opposed to ensuring that is included if anyone NEEDS X forwarding.

I'm the system admin of this site. Private security technician, licensed locksmith, hack of a c developer and vintage computer enthusiast. 

https://contrib.irixnet.org/raion/ -- contributions and pieces that I'm working on currently. 

https://codeberg.org/SolusRaion -- Code repos I control

Technical problems should be sent my way.
Raion
Chief IRIX Officer

Trade Count: (9)
Posts: 4,240
Threads: 533
Joined: Nov 2017
Location: Eastern Virginia
Website Find Reply
06-16-2020, 03:59 AM


Forum Jump:


Users browsing this thread: 1 Guest(s)