FreeBSD Ports -> IRIX
#21
RE: FreeBSD Ports -> IRIX
jwhat, I highly suggest you require and use cURL. If you look at curl's documentation there is a way to set the certificate path, and it builds cleanly with both compilers. You can then include a bootstrap script that downloads a stable curl version, builds it with correct parameters, and then downloads the necessary certificate roots. wget = curl -O

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
09-26-2023, 02:20 PM
#22
RE: FreeBSD Ports -> IRIX
(09-26-2023, 02:20 PM)Raion Wrote:  jwhat, I highly suggest you require and use cURL. If you look at curl's documentation there is a way to set the certificate path, and it builds cleanly with both compilers. You can then include a bootstrap script that downloads a stable curl version, builds it with correct parameters, and then downloads the necessary certificate roots. wget = curl -O

I'm a huge fan of the Lock Picking Lawyer's youtube channel, and as far as I can recall, I've never seen him fail to pick a lock, usually within seconds or at least a few minutes. On the other hand, computer security is a laughfest, check your logfiles every day and install each update on the day it's released. And I'm not talking about Windows, there no such thing as "Windows security."

Project: Temporarily lost at sea
Plan: World domination! Or something...
vishnu
Tezro, Octane2, 2 x Onyx4

Trade Count: (0)
Posts: 1,247
Threads: 42
Joined: Dec 2017
Location: Minneapolis, Minnesota USA
Find Reply
09-26-2023, 07:55 PM
#23
RE: FreeBSD Ports -> IRIX
You're talking about my signature? That's not part of the message.

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
09-26-2023, 08:40 PM
#24
RE: FreeBSD Ports -> IRIX
Hi Raion,

I have got "fetch-recursive" target to work for openssl using Nekoware curl (and its required depedendencies).
This requires turning off CHECKSUM:

# bmake -d l fetch-recursive EXTRACT_BEFORE_ARGS=-xzf CC=c99 CFLAGS="-64 -mips4 -O2" LDFLAGS="-64 -mips4" NO_CHECKSUM=yes prefix=/usr/local2

So one more gitlab issue closed, now back to see if I can get "build" target to work (could not build previously, as I could not get source to download).

Using Nekoware as part of bootstrap code seems like a reasonable choice, its its stable and does not require building more stuff.

Cheers from Oz,

jwhat/John.
(This post was last modified: 09-28-2023, 06:37 AM by jwhat.)
jwhat
Octane/O350/Fuel User

Trade Count: (0)
Posts: 513
Threads: 29
Joined: Jul 2018
Location: Australia
Find Reply
09-28-2023, 06:37 AM
#25
RE: FreeBSD Ports -> IRIX
Ok. We will need to provide root certificates as well in order to prevent SSL errors.

We absolutely need to fix check sums long-term though.

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
09-28-2023, 11:01 AM
#26
RE: FreeBSD Ports -> IRIX
HI Raion,

the CHECKSUM is using OpenSSL MD5 code, so need to bootstrap OpenSSL to get this.

Hence focus on OpenSSL as initial target, it is used for lots of things.

I have almost got "dialog4ports" to build.

It is using FreeBSD specific systems calls and other bits and pieces and so needed to create a BSD compatability library (libbsdports.a) with the missing functions.

Now advanced to point of getting unresolved functions on link, so need to add extra functions into libbsdports.a library.

So new gitlab issue for work required to add extra compatability functions...

If can get to building OpenSSL then would have working IRIX ports solution.

Cheers from Oz,

jwhat/John.
(This post was last modified: 09-30-2023, 03:44 AM by jwhat.)
jwhat
Octane/O350/Fuel User

Trade Count: (0)
Posts: 513
Threads: 29
Joined: Jul 2018
Location: Australia
Find Reply
09-29-2023, 11:37 PM
#27
RE: FreeBSD Ports -> IRIX
We will also need mtree and others too. I will probably at some point try to take some time off and do a script that can also allow for "flavors" to be passed to the ports tree and thus we can build packages for say, nekoware or other packaging; or even potentially that RSE stuff if they wanted to collaborate/fork the work into their own project.

whenever I have time and access to a machine with your tree setup I'll just crank out ports and such, setup some pull requests and offer some suggestions on what categories to retain and what kinds of things can be "frozen" on versions and what can/should be synced/maintained.

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
09-29-2023, 11:55 PM
#28
RE: FreeBSD Ports -> IRIX
Hi Raion,

I now have only only small number of unresolved functions on dialog4ports:

Code:
c99 -64 -mips4 -O2 -I/usr/local2/include  -L/usr/local2/lib dialog4ports.o mixedlist.o -o dialog4ports -lbsdports -ldialog -lncursesw -lm -ldialog
ld64: ERROR  33 : Unresolved text symbol "w32attrset" -- 1st referenced by mixedlist.o.
        Use linker option -v to see when and which objects, archives and dsos are loaded. 
ld64: ERROR  33 : Unresolved text symbol "w32addch" -- 1st referenced by mixedlist.o.
        Use linker option -v to see when and which objects, archives and dsos are loaded. 
ld64: ERROR  33 : Unresolved text symbol "MIN" -- 1st referenced by mixedlist.o.
        Use linker option -v to see when and which objects, archives and dsos are loaded. 
ld64: ERROR  33 : Unresolved text symbol "MAX" -- 1st referenced by mixedlist.o.
        Use linker option -v to see when and which objects, archives and dsos are loaded. 
ld64: ERROR  33 : Unresolved data symbol "acs32map" -- 1st referenced by mixedlist.o.
        Use linker option -v to see when and which objects, archives and dsos are loaded. 
ld64: INFO    152: Output file removed because of error.


The problem is that I cannot find where these functions are defined, as I think dialog/ncurses is doing some #define or SED trickery to change the function names depending on whether you are building with WCHAR or not.

I changed the bootstrap script to use wide char as this is what current FreeBSD dialog4ports is using, but still get unresolved issue.

People are welcome to look at this, as I am a bit tired of it for the moment.

NOTE: All the ncursesw tests seem to work ok on IRIX with latest ncurses lib (6.4)

Cheers from Oz,

jwhat/John
(This post was last modified: 10-02-2023, 06:24 AM by jwhat.)
jwhat
Octane/O350/Fuel User

Trade Count: (0)
Posts: 513
Threads: 29
Joined: Jul 2018
Location: Australia
Find Reply
10-02-2023, 06:13 AM
#29
RE: FreeBSD Ports -> IRIX
We don't have proper Unicode support so we should be turning that off.

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
10-02-2023, 11:16 AM


Forum Jump:


Users browsing this thread: 1 Guest(s)