Skip to content

Bug: build on OpenBSD 7.6 fails 'Error: static assert: "Websocket server not implemented...' #2977

@lfzamora81

Description

@lfzamora81

Describe the bug

Trying to build from source for OpenBSD 7.6

Used bash configure since default OpenBSD ksh produces errors.

Then use gmake clean; gmake; for the same reason.

However, these then produce the following output including errors:

rm -f onedrive onedrive.o version
rm -rf autom4te.cache
rm -f config.log config.status
if [ -f .git/HEAD ] ; then \
        git describe --tags > version ; \
else \                                                                                                                                                                                        
        echo v2.5.2 > version ; \                                                                                                                                                             
fi                                                                                                                                                                                            
dmd -w -J. -O -L-L/usr/local/lib -L-lcurl -L-L/usr/local/lib -L-lsqlite3  -L-ldl src/main.d src/config.d src/log.d src/util.d src/qxor.d src/curlEngine.d src/onedrive.d src/webhook.d src/sync.d src/itemdb.d src/sqlite.d src/clientSideFiltering.d src/monitor.d src/arsd/cgi.d -ofonedrive                                                                                              
src/arsd/cgi.d(7002): Error: static assert:  "Websocket server not implemented on this system yet (email me, i can prolly do it if you need it)"                                              
src/arsd/cgi.d(7097):        instantiated from here: `startAddonServer!()`                                                                                                                    
src/arsd/cgi.d-mixin-7412(7483):        instantiated from here: `openLocalServerConnection!()`                                                                                                
gmake: *** [Makefile:106: onedrive] Error 1

Operating System Details

OpenBSD obsd.***.com 7.6 GENERIC.MP#338 amd64

Client Installation Method

From Source

OneDrive Account Type

Personal

What is your OneDrive Application Version

N/A

What is your OneDrive Application Configuration

N/A

What is your 'curl' version

curl 8.10.1 (x86_64-unknown-openbsd7.6) libcurl/8.10.1 LibreSSL/4.0.0 zlib/1.3.1.1-motley nghttp2/1.63.0 ngtcp2/1.7.0 nghttp3/1.5.0
Release-Date: 2024-09-18
Protocols: dict file ftp ftps gopher gophers http https imap imaps ipfs ipns mqtt pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS HSTS HTTP2 HTTP3 HTTPS-proxy IPv6 Largefile libz NTLM SSL threadsafe UnixSockets

Where is your 'sync_dir' located

Local

What are all your system 'mount points'

/dev/sd0a on / type ffs (local)
/dev/sd0l on /home type ffs (local, nodev, nosuid)
/dev/sd0d on /tmp type ffs (local, nodev, nosuid)
/dev/sd0f on /usr type ffs (local, nodev)
/dev/sd0g on /usr/X11R6 type ffs (local, nodev)
/dev/sd0h on /usr/local type ffs (local, nodev, wxallowed)
/dev/sd0k on /usr/obj type ffs (local, nodev, nosuid)
/dev/sd0j on /usr/src type ffs (local, nodev, nosuid)
/dev/sd0e on /var type ffs (local, nodev, nosuid)

What are all your local file system partition types

type: SCSI
disk: SCSI disk
label: WDC PC SN530 SDB
duid: a9c324f0c921e150
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 31130
total sectors: 500118192
boundstart: 532544
boundend: 500118159

16 partitions:
#                size           offset  fstype [fsize bsize   cpg]
  a:          2097152           532544  4.2BSD   2048 16384 12960 # /
  b:         16625408          2629696    swap                    # none
  c:        500118192                0  unused                    
  d:          8388608         19255104  4.2BSD   2048 16384 12960 # /tmp
  e:         40590848         27643712  4.2BSD   2048 16384 12960 # /var
  f:         50669184         68234560  4.2BSD   2048 16384 12960 # /usr
  g:          2097152        118903744  4.2BSD   2048 16384 12960 # /usr/X11R6
  h:         41943040        121000896  4.2BSD   2048 16384 12960 # /usr/local
  i:           532480               64   MSDOS                    
  j:         10485760        162943936  4.2BSD   2048 16384 12960 # /usr/src
  k:         12582912        173429696  4.2BSD   2048 16384 12960 # /usr/obj
  l:        314105536        186012608  4.2BSD   4096 32768 26062 # /home

How do you use 'onedrive'

N/A

Steps to reproduce the behaviour

  1. Start with a baseline OpenBSD 7.6 installation.
  2. Install Git-2.46.1 from ports.
  3. This installs Curl-8.10.1 as dependency.
  4. Install DMD-2.109.0 from ports.
  5. Install libnotify-0.8.3 from ports.
  6. doas pkg_add bash version 5.2.32. (this may have actually been
  7. doas pkg_add gmake version 4.4.1.
  8. Clone onedrive repo to build directory (/home//build in my case)
  9. cd into onedrive directory
  10. bash configure
  11. gmake clean; gmake

Complete Verbose Log Output

N/A

Screenshots

onedrive gmake

Other Log Information or Details

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions