What about a browser for Minix 3

603 views
Skip to first unread message

Garry Ricketson

unread,
Nov 13, 2017, 8:55:10 PM11/13/17
to minix3
I find Lynx, and links in the Minix 3.4 packages, and they work ok, but on some sites, like this one for example, a text browser won't work.
I tried Dillo, but it does not work, are there any other browsers available for Minix 3.4 ?

Or is there some thing I am missing , and could do to get Dillo working ?

Thanks

P.S.
Here is what I get with Dillo:
paths: Cannot open file '/home/garry/.dillo/dillorc': No such file or directory
paths
: Using /usr/pkg/etc/dillo/dillorc
paths
: Cannot open file '/home/garry/.dillo/keysrc': No such file or directory
paths
: Using /usr/pkg/etc/dillo/keysrc
paths
: Cannot open file '/home/garry/.dillo/domainrc': No such file or directory
paths
: Using /usr/pkg/etc/dillo/domainrc
Domain: Default accept.
dillo_dns_init
: Here we go! (threaded)
Disabling cookies.

Thanks again

Sambuc Lionel

unread,
Nov 14, 2017, 1:40:32 PM11/14/17
to MINIX3 Google Group
Hello Garry,


I have had succes in running dillo, but only by building by hand 
fltk-1.3.4-1 without thread support, and dillo 3.0.5 without threads 
enabled.

The exact configure parameters where:
a. for fltk:
  $ ./configure --disable-threads

b. for dillo:
  $ ./configure --disable-threaded-dns

Now the result comes with a lot of limitations, especially regarding CSS 
support, which is being increasingly important. 


I hope this helps, the configure scripts also support the usual options 
as well, so you might want to look into those.

The issue regarding threading with application using both Gnu PTH (as is 
done from PKGSRC for now) and either the C++ standard library or X11 
libraries is a conflict with the threading libraries involved.

To solve this situation in a good way, we need to import the pthread 
library.

I have been working on this, implementing in userland the LWP API the 
NetBSD pthread library is based on.

This is a work in progress, right now I can link the kuya tests, but 
some implementation works is still needed before I can reasonably expect 
the tests to be successful.

Attached a screen shot of MINIX3, not sure whether this is rc3 or 4, 
running WindowMaker, feh to set the background, an Aterm and  dillo in a 
VMware Fusion Virtual Machine.


Kind regards,

Lionel

------------------------------------------------------------------------
-- 
You received this message because you are subscribed to the Google Groups "minix3" group.
To unsubscribe from this group and stop receiving emails from it, send an email to minix3+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Garry Ricketson

unread,
Nov 15, 2017, 8:19:03 AM11/15/17
to minix3
Thank you,
 Also , that is a impressive screen shot, looks good.
 Building it by hand is probably a little but beyond my skills at this time, how ever it would be interesting to try
to learn how to do this, I started reading the manual for fltk, and  will see how it goes
Thanks

r0ller

unread,
Nov 15, 2017, 9:35:28 AM11/15/17
to minix3
Hi Garry,

You don't need to read the fltk manual just for building it. It's the usual software build process:

1) configure (usually optional, unless you want to tweak the config as in this case)
2) make
3) make install

What Lionel meant was that he rebuilt fltk and dillo with a specific configuration so that they use no threads. This is done by simply entering in the source code directory of the programs and issuing the commands in the sequence I mentioned. However, in this case, Lionel passed on a specific option to the configure script telling that he does not want thread support. You can also do that, just by entering in the command line exactly what Lionel did. Once it's done, you'll need to issue make (or gmake if make fails) in the program directory. Afterwards as root, you need to issue make install (or gmake install). What you'd need to get familiar with is actually just this build process as there are subtle differences how programs are built on a specific platform e.g. minix usually needs the /usr/pkg prefix in case of install dirs passed on to the configure script as well, otherwise every binary lands in /usr/bin instead of /usr/pkg/bin or in case of libs instead of /usr/pkg/lib you'll get them in /usr/lib.

Best regards,
r0ller

Garry Ricketson

unread,
Nov 15, 2017, 11:20:07 AM11/15/17
to minix3
When I type the command as he showed:

$ ./configure --disable-threaded-dns
I get  $ sh ./configure  not found,    I wonder if I need to remove the original package I installed , I used:
pkgin install dillo
Just like that,  I did try again, using :
pkgin install dillo ./configure --disable-threaded-dns
But nothing changed.  Thanks,

r0ller

unread,
Nov 15, 2017, 3:37:11 PM11/15/17
to minix3
Hi Garry,

Yepp, because you need to do it in the directory of the source code of the program which you don't get with pkgin. Pkgin is the binary package manager while pkgsrc is the source code based one. But if I understood Lionel right he built fltk and dillo outside pkgsrc i.e. simply downloaded the sourcecode of fltk-1.3.4 and that of dillo-3.0.5. Once you have them, cding into the directory of the programs in question you can issue those commands. Let me know if you get stuck again.

Regards,
r0ller
Message has been deleted

Garry Ricketson

unread,
Nov 15, 2017, 5:11:38 PM11/15/17
to minix3
Ok, thanks,
 I am looking at this :
http://wiki.minix3.org/doku.php?id=usersguide:installingsourcepackages

And it appears I must install "pkgsrc" first,  but also I am some what confused as the where I download the source file, How I get it ?
Do I use a command like "pkgsrc dillo " ?  Sorry, if this seems really dumb, but I have never done this, all I have ever used is "pkgin install "thisorthatpkg"
Thanks

r0ller

unread,
Nov 16, 2017, 2:43:56 AM11/16/17
to minix3
Hi Garry,

As far as I can see, pkgsrc has only fltk-1.3.3 so you will need to download fltk-1.3.4-1-source.tar.gz from their own site: http://www.fltk.org/software.php
Then you'll need to extract it in your home directory, cd into the directory containing the source and then can you start the configure script. Don't worry about not having done such things earlier, you'll learn it;)

Best regards,
r0ller

Garry Ricketson

unread,
Nov 16, 2017, 5:29:59 AM11/16/17
to minix3
Ok, thanks again for your patience,
I think I almost have it, I followed the wiki instructions, and now have the "pkgsrc" directory, and also git-base digest,  and the pkgin-sets,...
When I ran
make pkgsrc
Every thing seemed to go good, and I have found "dillo" listed in the www dir...
Just want to be sure, before I actually try compiling/installing fltk. I found on this site:  http://equinox-project.org/wiki/installingonminix   some instruction, but instead of downloading fltk from there, I used the
site/link you posted, now I have it down loaded.
 This is what I think I should run now, based on what that site says:
tar -xpvf fltk-1.3.1-source.tar.gz
$ cd fltk
-1.3.1
$
export LIBS="-lXrender -lfreetype -lexpat"
$
./configure --disable-threads --prefix=/usr/pkg --x-includes=/usr/pkg/X11R6/include --x-libraries=/usr/pkg/X11R6/lib

$ bmake install
 Or maybe I do not need all the , prefix, includes, and libraries ?  Lynol mentioned need to pull in a library.
Maybe I just need it to be like this:
tar -xpvf fltk-1.3.1-source.tar.gz
$ cd fltk
-1.3.1
$
./configure --disable-threads
$ bmake install

Can you advise which way is correct,.. the 1st or second,  or neither ?
Thanks

r0ller

unread,
Nov 16, 2017, 7:26:04 AM11/16/17
to minix3
Hi Garry,

It's roughly the second one. I did it with fltk-1.3.4-1 as follows:

1) ./configure --prefix=/usr/pkg --disable-threads
2) make
3) (as root user) make install

You should find afterwards all fltk specific executables in /usr/pkg/bin and libs in /usr/pkg/lib.

Best regards,
r0ller

r0ller

unread,
Nov 16, 2017, 8:08:29 AM11/16/17
to minix3
Hi Garry,

One more thing before issuing any make install: don't forget to remove the binary installs of dillo and fltk if you have any installed via pkgin.

I also tried the whole stuff and it works fine, so I have now dillo running:)

After you managed to install fltk (which I configured with --enable-shared on top), you should get dillo done as follows:

1) ./configure --prefix=/usr/pkg --disable-threaded-dns
2) make
3) (as root user) make install

Let me know if you get stuck.

Best regards,
r0ller

Garry Ricketson

unread,
Nov 16, 2017, 9:07:46 AM11/16/17
to minix3
Ok, thanks,
 Actually Dillo is compiling now, but it is taking forever,  not sure what the results are going to be,..
If it does not work out, can I remove it all ,again, using
pkgin remove dillo
pkgin remove fltk

Which is what I did before starting, but just in case it does not work out, and I need to remove it all again, and start over,.. ?
thanks

Garry Ricketson

unread,
Nov 16, 2017, 9:29:17 AM11/16/17
to minix3
Well it finished, but still didn't work, it does show :

dillo_dns_init: Here we go! (not threaded)

though, but it does a segmentation fault "core dumped" dillo  .
 So, guess I will just have to try again. :(

r0ller

unread,
Nov 16, 2017, 9:48:41 AM11/16/17
to minix3
Hi Garry,

Programs built and installed outside the pkgin/pkgsrc infrastructure cannot be managed by them as they are unaware of such programs. You usually have to remove them manually just as you installed them, so as root you issue in the source code directory of the program in question:

make uninstall

If you want to rebuild it before installing it again (maybe due to a reconfiguration) you may first issue as normal/unprivileged user:

1) make clean
2) make

Best regards,
r0ller

r0ller

unread,
Nov 16, 2017, 10:05:49 AM11/16/17
to minix3
Hi Garry,

That message is already a good sign:) If you try to rebuild dillo, I'd suggest rebuilding fltk as well but reconfiguring it with --enable-shared in addition to the options you already used. However, I don't think it to be the reason of the dump as it should have complained about not finding the fltk libs already when linking dillo. The best would be to check the core dump file but without gdb it's tricky. You can attach it here and I may be able to figure out the reason either by addr2line or something else. By the way, did you build dillo manually i.e. outside pkgsrc? If not, I'd recommend building it that way (just download the source from the site of dillo). The other thing is that when removing a package via pkgin please, make sure that it really removed that package simply by checking the list of installed pkgs. I cannot recall exactly but in certain cases when I did not specify the pkg name carefully, pkgin did not really gave me any errors about not having such a pkg just returned as if the job had been done.

Best regards,
r0ller

Garry Ricketson

unread,
Nov 16, 2017, 10:34:37 AM11/16/17
to minix3
OK, thanks,
That makes sense.  

By the way, did you build dillo manually i.e. outside pkgsrc? If not, I'd recommend building it that way (just download the source from the site of dillo).

No , I didn't I just did it all inside the pkgsrc dir, 
 thanks,

r0ller

unread,
Nov 16, 2017, 10:41:00 AM11/16/17
to minix3
Hi Garry,

Ok, as I said, I'd build it outside pkgsrc. You can get dillo-3.0.5 it from here: https://www.dillo.org/download.html

Regards,
r0ller

Garry Ricketson

unread,
Nov 16, 2017, 7:49:58 PM11/16/17
to minix3
Ok, now I have downloaded Dillo, and extracted it, along with fltk,
 When I looked at the files included in the Dillo download, I finally see where and what caused all my confusion.
 In the dillo source files that came with pkgsrc, there is no "configure" option/script, there is a "options.mk"  and that is why I kept getting
the ./configure "not found",.. errror. So what I had done was modified the "options.mk" and added a line with the config I wanted,... Any way,
the same, with the fltk that is in the pkgsrc, there is no "configure" script file.  And then just to help make me more confused,...
 Well , when I tried to unzip the downloaded fltk.tar.gz, I was using this:

tar -xpvf fltk-1.3.1-source.tar.gz
From the one tutorial I linked to earlier,... and I kept getting errors, not able to read, it, or unzip it. I forgot, and had not noticed, but it needed a z in it:

tar -xpvzf fltk-1.3.1-source.tar.gz

 So any way, now I have them both, and unzipped them and that is when I see they both have a "configure" script in them,
so I am going to try again, I think maybe this time it will work,... I hope.
thanks

r0ller

unread,
Nov 17, 2017, 2:43:45 AM11/17/17
to minix3
Hi Garry,

I didn't get why you stick to fltk-1.3.1 but now I see:) Anyway, now you have the sources required. Actually, you could try it with pkgsrc as well as it also builds the programs from source however, it's preconfigured so what you need to do in that case is indeed what you tried: tweak the config via pkgsrc. Another alternative would be to copy the tar.gz source file downloaded by pkgsrc itself to another directory and get the job done there or could even be done in the work directory of the package into which pkgsrc itself extracts the tar.gz source file. Let me know if you get stuck.

Regards,
r0ller

Garry Ricketson

unread,
Nov 17, 2017, 11:37:26 AM11/17/17
to minix3
Still not  able to get it, but also, I am using fltk-1.3.4-1 , I just made a mistake when I pasted fltk-1.3.1 into the the code window,...
 But  any way here is what I get when compiling Dillo :
clang: warning: argument unused during compilation: '-g'
form
.o: In function `DilloHtmlForm::buildQueryData(DilloHtmlInput*)':
/usr/pkgsrc/www/dillo-3.0.5/src/form.cc:1133: undefined reference to
`
libiconv_open'
/usr/pkgsrc/www/dillo-3.0.5/src/form.cc:1137: undefined reference to
`libiconv_open'

/usr/pkgsrc/www/dillo-3.0.5/src/form.cc:1235: undefined reference to
`libiconv_close'
form.o: In function `
DilloHtmlForm::encodeText(void*, Dstr**)':
/usr/pkgsrc/www/dillo-3.0.5/src/form.cc:1330: undefined reference to
`libiconv'

clang
: error: linker command failed with exit code 1 (use -v to see
invocation
)
*** Error code 1

Stop.
make
[3]: stopped in /usr/pkgsrc/www/dillo-3.0.5/src
*** Error code 1

Stop.
make
[2]: stopped in /usr/pkgsrc/www/dillo-3.0.5/src
*** Error code 1

Stop.
make
[1]: stopped in /usr/pkgsrc/www/dillo-3.0.5
*** Error code 1

Stop.
make
: stopped in /usr/pkgsrc/www/dillo-3.0.5
fltk-1.3.4-1 seemed to compile just fine. . I had originally tried compiling dillo in my home directory, and got the same error/ stopped at the same point,..
so I then tried moving it to the pkgsrc dir,... and still the same. Yes I did "make clean", etc, and removed everything before trying again,...
 Thanks

r0ller

unread,
Nov 17, 2017, 1:09:26 PM11/17/17
to minix3
Hi Garry,

Don't you have another fltk still installed? Either check it in the list you get when issuing:

pkgin ls

or just look for libfltk* in /usr/pkg/lib simply by ls which should give you a list of fltk libs installed. At least, I bumped into such undefined reference issues when I had another fltk installed:)

Regards,
r0ller

r0ller

unread,
Nov 17, 2017, 1:17:19 PM11/17/17
to minix3
Sorry, I've just realized that it's libiconv why you get those undefined references not another fltk lib:) These are the libs dillo in needs -see the "What libraries does dillo use?" section: https://www.dillo.org/FAQ.html
You can install those via pkgin if they're available. Pthread we don't need of course:)

Garry Ricketson

unread,
Nov 17, 2017, 8:06:02 PM11/17/17
to minix3
No problem, in any event I went back through everything and make clean, also removed all the old fltk , and started over,....
"zlib" was not installed , and it says it is needed, libiconv is installed.
Thanks
Reply all
Reply to author
Forward
0 new messages