Package Details: sccs 5.09-1

Git Clone URL: https://aur.archlinux.org/sccs.git (read-only, click to copy)
Package Base: sccs
Description: The UNIX Source Code Control System actively maintained/enhanced.
Upstream URL: http://sccs.sourceforge.net/
Licenses: GPL, CDDL
Submitter: aksr
Maintainer: aksr
Last Packager: aksr
Votes: 2
Popularity: 0.000000
First Submitted: 2015-06-02 11:18 (UTC)
Last Updated: 2019-05-09 10:03 (UTC)

Dependencies (0)

Required by (3)

Sources (1)

Latest Comments

Mettacrawer commented on 2022-11-29 02:08 (UTC)

Seems the project is still being developed but not on SourceForge: https://codeberg.org/schilytools/schilytools

majortom commented on 2022-08-24 00:48 (UTC) (edited on 2022-08-24 00:59 (UTC) by majortom)

The issue I found was related to this 'EXT LINENUM p_repl_lines;' being defined twice.

Once in patch/common.h, and again in patch/pch.c.

common.h is included in pch.c, so just deleting the occurrence in pch.c resolved the linker issue. using gcc (GCC) 12.1.1 20220730


diff -urb ../../sccs-5.09/patch/pch.c patch/pch.c
--- ../../sccs-5.09/patch/pch.c 2018-10-14 10:50:20.000000000 -0400
+++ patch/pch.c 2022-08-23 20:46:13.780538628 -0400
@@ -42,7 +42,6 @@
 static LINENUM p_first;            /* 1st line number */
 static LINENUM p_newfirst;     /* 1st line number of replacement */
 static LINENUM p_ptrn_lines;       /* # lines in pattern */
-EXT    LINENUM p_repl_lines;       /* # lines in replacement text */
 static LINENUM p_end = -1;     /* last line in hunk */
 static LINENUM p_max;          /* max allowed value of p_end */
 static LINENUM p_context = 3;      /* # of context lines */

micwoj92 commented on 2021-12-15 08:45 (UTC)

build fails

/usr/bin/ld: OBJ/x86_64-linux-gcc/pch.o:(.bss+0x0): multiple definition of `p_repl_lines'; OBJ/x86_64-linux-gcc/patch.o:(.bss+0x0): first defined here
/usr/bin/ld: OBJ/x86_64-linux-gcc/patch.o: in function `main':
patch.c:(.text+0xfff): warning: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp'
collect2: error: ld returned 1 exit status
make[1]: *** [../RULES/rules.cmd:45: OBJ/x86_64-linux-gcc/spatch] Error 1