Replies: 3 comments 2 replies
-
Out of the gate we run into critical difference between GNU and FreeBSD
Fortunately NFSN has
...but then there's a fatal:
That's as far as I'm will to dig tonight. |
Beta Was this translation helpful? Give feedback.
-
I just commited a fix to what looks like a FreeBSD build problem.
…On Mon, 27 Sept 2021 at 21:18, matt wilkie ***@***.***> wrote:
Out of the gate we run into critical difference between GNU and FreeBSD
make: very different equality operators (ref
<https://stackoverflow.com/questions/45342191/the-make-on-freebsd-doesnt-support-ifdef-directives.>
)
$ cd /home/private/src/jsi
$ fossil open jsi.fossil
$ make
make: "/home/private/src/jsi/Makefile" line 45: Missing dependency operator
make: "/home/private/src/jsi/Makefile" line 47: Need an operator
...etc. a hundred times
make: Fatal errors encountered -- cannot continue
Fortunately NFSN has gmake installed so we don't have to try build *that*
from a PKG. gmake starts off happy enough. There's a couple deprecated
warnings (src/parser.y:9.1-12: warning: deprecated directive:
‘%pure-parser’, use ‘%define api.pure’ [-Wdeprecated]) but everything
moves on. A couple non-fatal warnings:
src/jsiInterp.c:910:19: warning: result of comparison of unsigned enum expression < 0 is
always false [-Wtautological-unsigned-enum-zero-compare]
if (rc<0) {
...
src/jsiString.c:76:9: warning: variable 'argc' is used uninitialized whenever 'if'
condition is false [-Wsometimes-uninitialized]
if (spLen)
...but then there's a fatal:
cc -c -o src/jsiLoad.o src/jsiLoad.c -I. -Isrc -Wall -Wsign-compare -Wtype-limits -Wuninitialized -DJSI__MAIN=1 -g -Og -O0 -Ilws/src/src -Isqlite/src -I/home/private/src/jsi/miniz -fpic -DJSI__BASE64=1 -DJSI__CDATA=1 -DJSI__DEBUG=1 -DJSI__ENCRYPT=1 -DJSI__EVENT=1 -DJSI__FILESYS=1 -DJSI__INFO=1 -DJSI__LOAD=1 -DJSI__MATH=1 -DJSI__MD5=1 -DJSI__MINIZ=1 -DJSI__READLINE=1 -DJSI__SHA1=1 -DJSI__SHA256=1 -DJSI__SIGNAL=1 -DJSI__STUBS=1 -DJSI__THREADS=1 -DJSI__ZVFS=1 -DJSI__MEMDEBUG=0 -DJSI__REGEX=0 -DJSI__SANITIZE=0 -DJSI__SOCKET=1 -DJSI__SQLITE=1 -DJSI__WEBSOCKET=1 -DJSI__WEBSOCKET=1 -DJSI__SQLITE=1 -DJSI_PKG_DIRS=\""/home/private/src/jsi/lib,/usr/local/lib/jsi"\" -DJSI_CONF_ARGS=\"\"
src/jsiLoad.c:56:52: error: use of undeclared identifier 'ST_NOEXEC'
if (statvfs(pathName, &vfs) == 0 && vfs.f_flag&ST_NOEXEC)
^
1 error generated.
gmake: *** [Makefile:384: src/jsiLoad.o] Error 1
That's as far as I'm will to dig tonight.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#49 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE3J7BQY6UHTO4QMKGPRMY3UEE6YXANCNFSM5E4LP5WQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
-
Your first compile error on parser.c, which is generated, complains about undefined YYEMPTY. But on Ubuntu this file has the following in or about line 1530:
I no longer have access to a FreeBSD so don't know why it no longer builds. It might be because I used to commit parser.c but stopped because it caused fossil to explode in size. You are running head-first into issues which explains why most just use Ubuntu: to minimize basic and unexplainable build errors. This is not to bad-mouth FreeBSD, but rather to point out that producing a development-capable distro is difficult, at best. |
Beta Was this translation helpful? Give feedback.
-
My web host of choice is https://www.nearlyfreespeech.net/. Their OS is FreeBSD. Out of the box jsish does not run:
From this thread it's probably because it needs to be compiled on freebsd (and maybe even on NFSN to fit their focussed environment). I created this thread to hang information on as I progress through learning how to compile jsish on/for freebsd. It's a discussion and not a bug because jsish makes no claim to work on BSD. It might be fast journey with full on face-to-wall splat, or a long meandering one through thorn thicket and swamp. Either way things will be learned.
Beta Was this translation helpful? Give feedback.
All reactions