Ptt-official-app / go-bbs

BBS file database manager system library in Golang.
Apache License 2.0
80 stars 43 forks source link

[BUG] 0.3版 windows build fail #67

Closed y2468101216 closed 3 years ago

y2468101216 commented 3 years ago

發生了什麼事? / The Problem

螢幕截圖 / Screenshots

PS C:\Users\Tim.chen\Documents\GolangProjects\go-bbs\pttbbs> go build
# github.com/Ptt-official-app/go-bbs/cache
..\cache\mmap.go:54:12: undefined: openMmap
..\cache\mmap.go:75:9: undefined: closeMmap
..\cache\systemvshm.go:27:38: undefined: ShmidDs
..\cache\systemvshm.go:58:9: undefined: ShmidDs
..\cache\systemvshm_unix.go:9:16: undefined: unix.Syscall
..\cache\systemvshm_unix.go:9:32: undefined: unix.SYS_SHMGET
..\cache\systemvshm_unix.go:17:16: undefined: unix.Syscall
..\cache\systemvshm_unix.go:17:32: undefined: unix.SYS_SHMAT
..\cache\systemvshm_unix.go:27:16: undefined: unix.Syscall
..\cache\systemvshm_unix.go:36:38: undefined: ShmidDs
..\cache\systemvshm_unix.go:27:16: too many errors

開發環境 / Environment

y2468101216 commented 3 years ago

追加 0.31 版錯誤訊息

PS C:\Users\Tim.chen\Documents\GolangProjects\go-bbs\cache> go build 
# github.com/Ptt-official-app/go-bbs/cache
.\mmap.go:54:12: undefined: openMmap
.\mmap.go:75:9: undefined: closeMmap
.\systemvshm.go:64:16: ds.ShmSegsz undefined (type ShmidDs has no field or method ShmSegsz)
.\systemvshm_unix.go:10:16: undefined: unix.Syscall
.\systemvshm_unix.go:10:32: undefined: unix.SYS_SHMGET
.\systemvshm_unix.go:18:16: undefined: unix.Syscall
.\systemvshm_windows.go:10:6: shmget redeclared in this block
        previous declaration at .\systemvshm_unix.go:9:48
.\systemvshm_windows.go:14:6: shmat redeclared in this block
        previous declaration at .\systemvshm_unix.go:17:62
.\systemvshm_windows.go:18:6: shmdt redeclared in this block
        previous declaration at .\systemvshm_unix.go:27:35
.\systemvshm_windows.go:22:6: shmctl redeclared in this block
        previous declaration at .\systemvshm_unix.go:37:53
.\systemvshm_unix.go:18:16: too many errors
PichuChen commented 3 years ago

試試看 0.3.2 版