-
-
Notifications
You must be signed in to change notification settings - Fork 423
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
undefined reference to `waddnwstr' #161
Comments
Did you run configure? |
Of course |
[root@dclx cmatrix]# ./configure |
Can you give me more information about the system (OS). I was guessing it was due to curses not being present but configure tells otherwise. |
It seems that way. wget https://github.com/abishekvashok/cmatrix/archive/refs/tags/v2.0.tar.gz *** You do not appear to have an X window fonts directory in the standard |
Maybe it's my version of linux. |
Closing as it is working :) For the x fonts warning, it means you don't have fonts installed or configured and the -x option won't work properly. Maybe try the latest version instead of the release tarball? |
Same problem on the current master. Ubuntu 20.04.
|
Can you run, @somera and post the output? |
|
Okay and it compiled? Must be a problem with the make file then. |
Yes.
|
Yes yes, will clean the make file. |
Fix linker issues that prevent compillation with gcc from succeeding using autotools. This allows compilation to succeeed in Mac OS - haven't tested on linux yet. Fixes: #161 Signed-off-by: Abishek V Ashok <[email protected]>
So, I tried using automake and seems I've fixed compilation issues in automake - but haven't tested it in linux yet - can someone of you help to make sure the patch works in linux as well? PR: #163 |
hm ...
|
Okay, same error, -lncursesw doesn't work in Mac, so just need to pass it in Linux, let me see. |
I tested this on Ubuntu 20.04. |
@somera hey, can you try the latest patch again (added a new commit)? It should add -lncursesw to gcc args if it detects the package in your system and display a warning otherwise if you are on linux. |
Strange. Now I see this
And than
But the needed libs are installed on my system. This
is working fine. |
Can you go one line above it? Also, can you do |
Sorry, didn't see it first time
And
|
SYSTEM: devuan ceres linux, aarch64.
Missing function is in ncursesw.h (the old cmatrix 1.2a builds fine.) gcc -g -O2 -o cmatrix cmatrix.o -lncurses -lncursesw -v gives an executeable as this links ncursesw.maybe seperate issue: running that gives Segmentation fault when first string hits bottom of terminal. (xterm) gdb output
fun program. might consider ditching curses dino entirely in favor of Since nobody needs ncurses terminal abstraction (termcap) unless they're running a 1970s-80s hardware serial terminal. It's all ansi/vt100 controls today. Only the wildest edge cases are not. Only difference you'll find in practice is #colors supported. |
I solved this build issue with 2 simple things:
|
I had the same issue, and resolved it as per @maskimko's post; make and make install worked and cmatrix runs. However, as soon as the first text rain hits the base of my terminal, I get a segmentation fault. |
It works mostly fine for me with Debian Bullseye if I only specify Lambda mode (option |
I myself am getting this error after trying @maskimko's solution. Not really sure why it's not creating anything, though I'm at least no longer getting that waddnstr error. Even weirder, the command works but it prints out this: May very well be a font/terminal issue, but overall very weird |
Operating System: CentOS Linux 7 (Core) make all-am getting the above error |
@Maxito7 your error is because you used sudo make, and no sudo after with the 'make install', so permission for make to install (move the bin) without sudo was denied |
also, i do get the waddnwstr error on WSL Ubuntu 22, and definitelyu have the lib.. only solution that worked was downloading the tar. |
I'm going to borrow this thread because I get the same ncurses error, but I also cannot get it working at all on Fedora 38. It does eventually compile with this command that @abishekvashok showed;
I also tried building it in an Ubuntu 23.10 Toolbx container, same build error.
|
Failed with
OS Info: $cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy Error: |
[root@dclx cmatrix]# make
make all-am
make[1]: Entering directory
/cmat/cmatrix' gcc -g -O2 -o cmatrix cmatrix.o -lncurses -lncurses cmatrix.o: In function
main':/cmat/cmatrix/cmatrix.c:850: undefined reference to
waddnwstr' collect2: error: ld returned 1 exit status make[1]: *** [cmatrix] Error 1 make[1]: Leaving directory
/cmat/cmatrix'make: *** [all] Error 2
The text was updated successfully, but these errors were encountered: