[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH Web] Fixing a ld error in Data User-Server Translator Example
From: |
Samuel Thibault |
Subject: |
Re: [PATCH Web] Fixing a ld error in Data User-Server Translator Example |
Date: |
Sun, 27 Oct 2024 13:54:08 +0100 |
Fixed into using -lpthread, thanks!
Zhaoming Luo, le dim. 27 oct. 2024 18:31:03 +0800, a ecrit:
> -lthreads cause ld: cannot find -lthreads: No such file or directory error
> After removing -lthreads the example can work
>
> ---
> hurd/translator/writing/example.mdwn | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/hurd/translator/writing/example.mdwn
> b/hurd/translator/writing/example.mdwn
> index 0a3be4df..1891f74f 100644
> --- a/hurd/translator/writing/example.mdwn
> +++ b/hurd/translator/writing/example.mdwn
> @@ -241,7 +241,7 @@ Makefile:
> CC = gcc
> MIG = mig
> CFLAGS = -Wall -g -D_GNU_SOURCE
> - LDFLAGS = -lthreads -lports -ltrivfs -lfshelp -lshouldbeinlibc
> + LDFLAGS = -lports -ltrivfs -lfshelp -lshouldbeinlibc
> INCLUDES = -I.
> LCHDRS =
> MIGCOMSFLAGS = -prefix S_
> --
> 2.47.0
>
>
>
--
Samuel
/*
* [...] Note that 120 sec is defined in the protocol as the maximum
* possible RTT. I guess we'll have to use something other than TCP
* to talk to the University of Mars.
* PAWS allows us longer timeouts and large windows, so once implemented
* ftp to mars will work nicely.
*/
(from /usr/src/linux/net/inet/tcp.c, concerning RTT [retransmission timeout])