#Git on #Plan9 is borken in weird ways.
Want to rebase branch A on top of branch B? No you don't. You want to change A to match B and drop all other commits.
Want to merge A into B but there's a conflict? Let's just arbitrarily take the line from A and ignore the one from B. That's what you wanted, right?
like this
I have a complaint about #Plan9 #C.
I don't like that a literal 0
is accepted as a null pointer. I just spent an embarrassingly long time tracking down a segfault because in an attempt to zero out a buffer, I accidentally used memcpy(&buf, 0, sizeof(buf))
instead of memset(&buf, 0, sizeof(buf))
.
The compiler should've been able to catch this.
M. The Crystalline Entity likes this.
Any #Plan9 gurus on the fedi?
I've managed to break my profile causing me to be unable to connect to my account. It disconnects me upon running the profile script. drawterm -c
is not an option because it executes the profile disconnecting me before even running the command. drawterm -G
's a no-go as well.
Is there a way I can mount my remote home directory into my local (Debian 12) filesystem so that I can fix the profile without running rcpu?
Greg A. Woods likes this.
libssl-dev
package installed, FWIW.cc `pkg-config openssl --libs` -o tlsclient cpu.o p9any.o libauthsrv/libauthsrv.a libmp/libmp.a libc/libc.a libsec/libsec.a /usr/bin/ld: cpu.o: in function `tls_send': /home/jlamothe/src/tlsclient/cpu.c:92: undefined reference to `SSL_write' /usr/bin/ld: cpu.o: in function `tls_recv': /home/jlamothe/src/tlsclient/cpu.c:93: undefined reference to `SSL_read' /usr/bin/ld: cpu.o: in function `main': /home/jlamothe/src/tlsclient/cpu.c:164: undefined reference to `OPENSSL_init_ssl' /usr/bin/ld: /home/jlamothe/src/tlsclient/cpu.c:165: undefined reference to `OPENSSL_init_crypto' /usr/bin/ld: /home/jlamothe/src/tlsclient/cpu.c:166: undefined reference to `OPENSSL_init_ssl' /usr/bin/ld: /home/jlamothe/src/tlsclient/cpu.c:167: undefined reference to `TLSv1_2_client_method' /usr/bin/ld: /home/jlamothe/src/tlsclient/cpu.c:167: undefined reference to `SSL_CTX_new' /usr/bin/ld: /home/jlamothe/src/tlsclient/cpu.c:168: undefined reference to `SSL_CTX_set_psk_client_callback' /usr/bin/ld: /home/jlamothe/src/tlsclient/cpu.c:172: undefined reference to `SSL_CTX_set_options' /usr/bin/ld: /home/jlamothe/src/tlsclient/cpu.c:177: undefined reference to `SSL_new' /usr/bin/ld: cpu.o: in function `p9authtls': /home/jlamothe/src/tlsclient/cpu.c:53: undefined reference to `SSL_set_fd' /usr/bin/ld: /home/jlamothe/src/tlsclient/cpu.c:55: undefined reference to `SSL_connect' collect2: error: ld returned 1 exit status make: *** [Makefile:14: tlsclient] Error 1
@moody Such is the nature of compiling C code. I really wish it had some sort of automatic dependency management, but what can you expect from a language that old?
When the bootcamp is over, I actually want to get into writing software for Plan9, because despite being very C-centric, it seems a nice system to develop for.
Edit: autocorrupt
I figured out the issue, it was somehow related to the ordering of passing the -l flags to cc (ugh!), if you pull the latest code from sr.ht it should build fine on debian stable now. You will need both libssl-dev and pkg-config. I've added debian to the CI builds for this now so this shouldn't slip by again without me noticing. Thanks for the bug report.
Plan 9 C thankfully has none of this insanity, as you've noticed.
./tlsclient -u jlamothe -h 9p.sdf.org -a 9p.sdf.org -p 17019 rm /usr/jlamothe/lib/profile
...but my profile still seems to exist. It's giving me the same error about line 7 when I connect using drawterm.
Cool, so now you can do something like:
tlsclient -R -h 9p.sdf.org -a 9p.sdf.org rc -i
Then edit profile with either ed or sam -d.
@moody oh my god, I have a prompt!
Thank you!!
Edit: I was clearly too happy here to be bothered with proper spelling.
seeh
in reply to Jonathan Lamothe • • •Jonathan Lamothe
Unknown parent • •@pixx I don't know if it's something weird about the version of git that's on SDF's Plan9 server. Perhaps it's out of date, but I've created an example repository that illustrates what I'm talking about.
You can clone from git.fingerprintsoftware.ca/9p/β¦ and consult the README.md file for details.
pixx likes this.
Jonathan Lamothe
Unknown parent • •@pixx There's also the rebase issue where it seems to just drop the commits in the branch being merged and moves the head to the base branch.
Again, I don't know if this is just a problem on whaever version of the software SDF is using.
pixx likes this.
Jonathan Lamothe
Unknown parent • •@{...}
syntax. What's happening there?