Package Details: ucspi-tcp-re 0.88-3

Git Clone URL: https://aur.archlinux.org/ucspi-tcp-re.git (read-only, click to copy)
Package Base: ucspi-tcp-re
Description: Easy-to-use command-line tools for building TCP client-server applications.
Upstream URL: http://cr.yp.to/ucspi-tcp.html
Licenses: unknown
Provides: tcpclient, tcpserver
Submitter: lexisother
Maintainer: lexisother
Last Packager: lexisother
Votes: 0
Popularity: 0.000000
First Submitted: 2023-09-10 19:56 (UTC)
Last Updated: 2025-04-01 17:24 (UTC)

Dependencies (0)

Required by (0)

Sources (2)

Latest Comments

rjp commented on 2025-04-01 18:06 (UTC)

Yep, can confirm ucspi-tcp-re-0.88-3-x86_64.pkg.tar.zst built happily just now for me.

lexisother commented on 2025-04-01 17:24 (UTC)

Alright, that should be all then, I've bumped the pkgrel so it should auto-update

rjp commented on 2025-04-01 07:05 (UTC)

@lexisother Yep, no worries.

lexisother commented on 2025-04-01 06:44 (UTC)

@rjp Is it okay if I include your patch with the package? Appreciate that you went out of your way to get it to work :)

rjp commented on 2025-03-31 17:47 (UTC)

@kprinssu

Fetch https://rjp.is/ucspi-tcp-re.patch.txt and put it into ucspi-tcp-re.patch.

Update PKGBUILD to swap the second hash to 6ccbc665d4916e252cd9e45de99c39b90894d679d97a024e9b0eb23600d9d45b

That should let you build the package.

kprinssu commented on 2025-03-31 15:18 (UTC)

@rjp Bummer, do you mind posting a patch to get it running>

rjp commented on 2025-03-31 15:08 (UTC)

I can get it to mostly build with some shenanigans but the last few bits are proving difficult due to the outdated nature of the code.

kprinssu commented on 2025-03-26 16:27 (UTC)

I am running into build issues. The patch modifies the return of read and write to ssize_t. However, this causes compiler to complain about incompatiable pointer types like so:

11.39 tcpserver.c:148:5: error: implicit declaration of function ‘socket_ipoptionskill’ [-Wimplicit-function-declaration]
11.39   148 |     socket_ipoptionskill(t);
11.39       |     ^~~~~~~~~~~~~~~~~~~~
11.39 tcpserver.c:150:5: error: implicit declaration of function ‘socket_tcpnodelay’ [-Wimplicit-function-declaration]
11.39   150 |     socket_tcpnodelay(t);
11.39       |     ^~~~~~~~~~~~~~~~~
11.39 tcpserver.c:153:20: error: passing argument 2 of ‘buffer_init’ from incompatible pointer type [-Wincompatible-pointer-types]
11.39   153 |     buffer_init(&b,write,t,bspace,sizeof bspace);
11.39       |                    ^~~~~
11.39       |                    |
11.39       |                    ssize_t (*)(int,  const void *, size_t) {aka long int (*)(int,  const void *, long unsigned int)}
11.39 In file included from tcpserver.c:19:
11.39 buffer.h:16:34: note: expected ‘int (*)()’ but argument is of type ‘ssize_t (*)(int,  const void *, size_t)’ {aka ‘long int (*)(int,  const void *, long unsigned int)’}
11.39    16 | extern void buffer_init(buffer *,int (*)(),int,char *,unsigned int);
11.39       |                                  ^~~~~~~~~
11.39 tcpserver.c: At top level:
11.39 tcpserver.c:292:1: error: return type defaults to ‘int’ [-Wimplicit-int]
11.39   292 | main(int argc,char **argv)
11.39       | ^~~~
11.39 tcpserver.c: In function ‘main’:
11.39 tcpserver.c:388:20: error: passing argument 2 of ‘buffer_init’ from incompatible pointer type [-Wincompatible-pointer-types]
11.39   388 |     buffer_init(&b,write,1,bspace,sizeof bspace);
11.39       |                    ^~~~~
11.39       |                    |
11.39       |                    ssize_t (*)(int,  const void *, size_t) {aka long int (*)(int,  const void *, long unsigned int)}
11.39 buffer.h:16:34: note: expected ‘int (*)()’ but argument is of type ‘ssize_t (*)(int,  const void *, size_t)’ {aka ‘long int (*)(int,  const void *, long unsigned int)’}
11.39    16 | extern void buffer_init(buffer *,int (*)(),int,char *,unsigned int);
11.39       |                                  ^~~~~~~~~
11.39 make: *** [Makefile:757: tcpserver.o] Error 1
11.40 ==> ERROR: A failure occurred in package().
11.40     Aborting...
11.40  -> error making: ucspi-tcp-re-exit status 4
11.40  -> Failed to install the following packages. Manual intervention is required:
11.40 ucspi-tcp-re - exit status 4

lexisother commented on 2024-04-26 08:10 (UTC)

rjp: Fixed.

rjp commented on 2024-04-18 10:24 (UTC)

Fails to build because it's looking for $_pkgname.patch rather than $pkgname.patch