Hi Rob,Usually if a compile fails, the first thing I do is run ./cleanall.sh
I am trying to compile synchronet on Ubuntu (Bookworm), following https://wiki.synchro.net/install:nix. Both the git build method and the tarball
method fail with this error msg:
Linking gcc.linux.x64.exe.release/sbbsecho
/usr/bin/ld: /opt/synchronet/src/sbbs3/../xpdev/gcc.linux.x64.lib.release/libxp dev.a(link_list.o): in function `listSemTryWaitBlock': link_list.c:(.text+0x21a): undefined reference to `sem_trywait_block' /usr/bin/ld: /opt/synchronet/src/sbbs3/../xpdev/gcc.linux.x64.lib.release/libxp dev.a(link_list.o): in function `listInit':
link_list.c:(.text+0x531): undefined reference to `pthread_mutex_initializer_np' collect2: error: ld returned 1 exit
status
I understand that the functions listSemTryWaitBlock() and pthread_mutex_initializer_np() are defined in threadwrap.c. I checked src/xpdev/gcc.linux.x64.obj.release and found that threadwrap.o is
missing, i.e. it is not being compiled.
Kindly advise how to fix this issue, please.
Best,
Stefan
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
[vert/cvs/bbs].synchro.net
Hi Rob,
I am trying to compile synchronet on Ubuntu (Bookworm), following https://wiki.synchro.net/install:nix. Both the git build method and the tarball method fail with this error msg:
Linking gcc.linux.x64.exe.release/sbbsecho
/usr/bin/ld: /opt/synchronet/src/sbbs3/../xpdev/gcc.linux.x64.lib.release/libxp dev.a(link_list.o): in function `listSemTryWaitBlock': link_list.c:(.text+0x21a): undefined reference to `sem_trywait_block' /usr/bin/ld: /opt/synchronet/src/sbbs3/../xpdev/gcc.linux.x64.lib.release/libxp dev.a(link_list.o): in function `listInit':
link_list.c:(.text+0x531): undefined reference to `pthread_mutex_initializer_np'
collect2: error: ld returned 1 exit status
I understand that the functions listSemTryWaitBlock() and pthread_mutex_initializer_np() are defined in threadwrap.c. I checked src/xpdev/gcc.linux.x64.obj.release and found that threadwrap.o is missing, i.e. it is not being compiled.
Kindly advise how to fix this issue, please.
| Sysop: | deepend | 
|---|---|
| Location: | Calgary, Alberta | 
| Users: | 281 | 
| Nodes: | 10 (0 / 10) | 
| Uptime: | 22:02:59 | 
| Calls: | 2,402 | 
| Files: | 5,167 | 
| D/L today: | 135  				files (54,634K bytes) | 
| Messages: | 437,710 |