Skip to content

Issues compiling on Jammy #1

@kript

Description

@kript

Trying to compile this on Ubuntu 22.04, I ran into this issue;

In file included from /usr/include/string.h:535,
                 from utf8wc.c:18:
In function ‘strncpy’,
    inlined from ‘utf8_split’ at utf8wc.c:287:11:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:95:10: warning: ‘__builtin_strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
   95 |   return __builtin___strncpy_chk (__dest, __src, __len,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   96 |                                   __glibc_objsize (__dest));
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~
utf8wc.c: In function ‘utf8_split’:
utf8wc.c:284:21: note: length computed here
  284 |           long L2 = strlen(ret[i-1]);
      |                     ^~~~~~~~~~~~~~~~
make[1]: Leaving directory '/home/john/xscreensaver-5.36-build/xscreensaver-5.36/utils'
make[1]: Entering directory '/home/john/xscreensaver-5.36-build/xscreensaver-5.36/jwxyz'
make[1]: Nothing to be done for 'default'.
make[1]: Leaving directory '/home/john/xscreensaver-5.36-build/xscreensaver-5.36/jwxyz'
make[1]: Entering directory '/home/john/xscreensaver-5.36-build/xscreensaver-5.36/hacks'
gcc -pedantic -Wall -Wstrict-prototypes -Wnested-externs -Wmissing-prototypes -Wno-overlength-strings -Wdeclaration-after-statement -std=c89 -U__STRICT_ANSI__ -c -I. -I. -I./../utils -I..  -DSTANDALONE -DHAVE_CONFIG_H  -g -O2  attraction.c
gcc -pedantic -Wall -Wstrict-prototypes -Wnested-externs -Wmissing-prototypes -Wno-overlength-strings -Wdeclaration-after-statement -std=c89 -U__STRICT_ANSI__ -c -I. -I. -I./../utils -I..  -DSTANDALONE -DHAVE_CONFIG_H  -g -O2  screenhack.c
gcc -pedantic -Wall -Wstrict-prototypes -Wnested-externs -Wmissing-prototypes -Wno-overlength-strings -Wdeclaration-after-statement -std=c89 -U__STRICT_ANSI__ -c -I. -I. -I./../utils -I..  -DSTANDALONE -DHAVE_CONFIG_H  -g -O2  fps.c
gcc -pedantic -Wall -Wstrict-prototypes -Wnested-externs -Wmissing-prototypes -Wno-overlength-strings -Wdeclaration-after-statement -std=c89 -U__STRICT_ANSI__ -L/usr/local/lib -o attraction attraction.o	screenhack.o fps.o ../utils/resources.o ../utils/visual.o ../utils/usleep.o ../utils/yarandom.o ../utils/utf8wc.o ../utils/xmu.o ../utils/xft.o  ../utils/hsv.o ../utils/colors.o ../utils/spline.o     -lSM -lICE  -lXt -lX11  -lXext  -lm
/usr/bin/ld: cannot find -lXext: No such file or directory
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:582: attraction] Error 1
make[1]: Leaving directory '/home/john/xscreensaver-5.36-build/xscreensaver-5.36/hacks'
make: *** [Makefile:25: default] Error 5

build failed... sorry

To get to this point, I needed to have installed;

sudo apt-get install libegl1-mesa-dev xscreensaver xscreensaver-data-extra xscreensaver-gl xscreensaver-gl-extra libxt-dev

Not being a C coder, I am not sure how to proceed from here! If can can provide any more information, do say....

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions