Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src/libscream.c faild to build #6

Open
dslackw opened this issue Jan 8, 2023 · 1 comment
Open

src/libscream.c faild to build #6

dslackw opened this issue Jan 8, 2023 · 1 comment

Comments

@dslackw
Copy link

dslackw commented Jan 8, 2023

             from /usr/include/libast.h:97,
             from feature.h:100,
             from term.c:27:

/usr/include/X11/Xlib.h:1687:15: note: declared here
1687 | extern KeySym XKeycodeToKeysym(
| ^~~~~~~~~~~~~~~~
mv -f .deps/term.Tpo .deps/term.Plo
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -O2 -fPIC -MT timer.lo -MD -MP -MF .deps/timer.Tpo -c -o timer.lo timer.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -O2 -fPIC -MT timer.lo -MD -MP -MF .deps/timer.Tpo -c timer.c -fPIC -DPIC -o .libs/timer.o
mv -f .deps/timer.Tpo .deps/timer.Plo
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -O2 -fPIC -MT utmp.lo -MD -MP -MF .deps/utmp.Tpo -c -o utmp.lo utmp.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -O2 -fPIC -MT utmp.lo -MD -MP -MF .deps/utmp.Tpo -c utmp.c -fPIC -DPIC -o .libs/utmp.o
mv -f .deps/utmp.Tpo .deps/utmp.Plo
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -O2 -fPIC -MT windows.lo -MD -MP -MF .deps/windows.Tpo -c -o windows.lo windows.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -O2 -fPIC -MT windows.lo -MD -MP -MF .deps/windows.Tpo -c windows.c -fPIC -DPIC -o .libs/windows.o
mv -f .deps/windows.Tpo .deps/windows.Plo
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -O2 -fPIC -MT defaultfont.lo -MD -MP -MF .deps/defaultfont.Tpo -c -o defaultfont.lo defaultfont.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -O2 -fPIC -MT defaultfont.lo -MD -MP -MF .deps/defaultfont.Tpo -c defaultfont.c -fPIC -DPIC -o .libs/defaultfont.o
mv -f .deps/defaultfont.Tpo .deps/defaultfont.Plo
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -O2 -fPIC -MT libscream.lo -MD -MP -MF .deps/libscream.Tpo -c -o libscream.lo libscream.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -O2 -fPIC -MT libscream.lo -MD -MP -MF .deps/libscream.Tpo -c libscream.c -fPIC -DPIC -o .libs/libscream.o
libscream.c: In function ‘ns_attach_by_URL’:
libscream.c:1490:2: warning: #warning compiling in libscream [-Wcpp]
1490 | #warning compiling in libscream
| ^~~~~~~
libscream.c:1496:2: warning: #warning compiling in support for GNU screen [-Wcpp]
1496 | #warning compiling in support for GNU screen
| ^~~~~~~
mv -f .deps/libscream.Tpo .deps/libscream.Plo
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -O2 -fPIC -MT sse2_cmod.lo -MD -MP -MF .deps/sse2_cmod.Tpo -c -o sse2_cmod.lo sse2_cmod.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -O2 -fPIC -MT sse2_cmod.lo -MD -MP -MF .deps/sse2_cmod.Tpo -c sse2_cmod.c -fPIC -DPIC -o .libs/sse2_cmod.o
mv -f .deps/sse2_cmod.Tpo .deps/sse2_cmod.Plo
/bin/sh ../libtool --tag=CC --mode=link gcc -O2 -fPIC -release 0.9.6 -L/usr/lib64 -L/usr/lib -L/usr/lib64 -L/usr/lib -o libEterm.la -rpath /usr/lib64 actions.lo buttons.lo command.lo draw.lo e.lo events.lo font.lo grkelot.lo menus.lo misc.lo options.lo pixmap.lo screen.lo script.lo scrollbar.lo startup.lo system.lo term.lo timer.lo utmp.lo windows.lo defaultfont.lo libscream.lo sse2_cmod.lo -lImlib2 -ldl -lImlib2 -lfreetype -lX11 -lSM -lICE -lpcre -ldl -lm -lXRes -lSM -lICE -lutempter -last -lXext -lX11 -lutil -lm
libtool: link: gcc -shared -fPIC -DPIC .libs/actions.o .libs/buttons.o .libs/command.o .libs/draw.o .libs/e.o .libs/events.o .libs/font.o .libs/grkelot.o .libs/menus.o .libs/misc.o .libs/options.o .libs/pixmap.o .libs/screen.o .libs/script.o .libs/scrollbar.o .libs/startup.o .libs/system.o .libs/term.o .libs/timer.o .libs/utmp.o .libs/windows.o .libs/defaultfont.o .libs/libscream.o .libs/sse2_cmod.o -L/usr/lib64 -L/usr/lib -lImlib2 -lfreetype -lpcre -ldl -lXRes -lSM -lICE -lutempter -last -lXext -lX11 -lutil -lm -O2 -Wl,-soname -Wl,libEterm-0.9.6.so -o .libs/libEterm-0.9.6.so
libtool: link: (cd ".libs" && rm -f "libEterm.so" && ln -s "libEterm-0.9.6.so" "libEterm.so")
libtool: link: ( cd ".libs" && rm -f "libEterm.la" && ln -s "../libEterm.la" "libEterm.la" )
/bin/sh ../libtool --tag=CC --mode=link gcc -O2 -fPIC -rpath /usr/lib64:/usr/lib64/Eterm -L/usr/lib64 -L/usr/lib -L/usr/lib64 -L/usr/lib -o Eterm main.o libEterm.la -lImlib2 -ldl -lImlib2 -lfreetype -lX11 -lSM -lICE -lpcre -ldl -lm -lXRes -lSM -lICE -lutempter -last -lXext -lX11 -lutil -lm
libtool: link: gcc -O2 -fPIC -o .libs/Eterm main.o -L/usr/lib64 -L/usr/lib ./.libs/libEterm.so -lImlib2 -lfreetype -lpcre -ldl -lXRes -lSM -lICE -lutempter -last -lXext -lX11 -lutil -lm -Wl,-rpath -Wl,/usr/lib64:/usr/lib64/Eterm
/usr/bin/ld: ./.libs/libEterm.so: undefined reference to `MEMSET'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:548: Eterm] Error 1
make[2]: Leaving directory '/tmp/SBo/Eterm-0.9.6/src'
make[1]: *** [Makefile:439: all-recursive] Error 1
make[1]: Leaving directory '/tmp/SBo/Eterm-0.9.6'
make: *** [Makefile:371: all] Error 2

@ferdnyc
Copy link

ferdnyc commented Nov 24, 2023

That failure has nothing to do with libscream.c, the error that stopped the build was this one:

/usr/bin/ld: ./.libs/libEterm.so: undefined reference to `MEMSET'
collect2: error: ld returned 1 exit status

The use of MEMSET() was removed in commit 5d475d0. It sounds like you might have been trying to build the 0.9.6 release sources, which are from 2011. (Ignore the tag date being 2020, that's just from the sourceforge migration. The latest commit in 0.9.6 is from 2011.) You definitely should use the master branch, instead of 0.9.6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants