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

compilation issue in usr/vtltape.c #116

Closed
davrosyoung opened this issue Jun 12, 2023 · 3 comments
Closed

compilation issue in usr/vtltape.c #116

davrosyoung opened this issue Jun 12, 2023 · 3 comments

Comments

@davrosyoung
Copy link
Contributor

Since last week (when it compiled just fine), the following compilation error has crept into usr/vtltape.c;

cc -Wall -Wshadow -g -O2 -D_LARGEFILE64_SOURCE -I../kernel -I../ccan -DMHVTL_VERSION="1.7.1-git-master" -D_GNU_SOURCE -DMHVTL_DEBUG -DMHVTL_HOME_PATH="/opt/mhvtl" -DMHVTL_CONFIG_PATH="/etc/mhvtl" -DSYSTEMD_SERVICE_DIR="/lib/systemd/system" -c -o vtltape.o vtltape.c
vtltape.c: In function ‘processMessageQ’:
vtltape.c:1534:7: error: ‘fg’ undeclared (first use in this function)
1534 | fg = TA_MEDIA_NOT_SUPPORTED;
| ^~
vtltape.c:1534:7: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [: vtltape.o] Error 1
make[1]: Leaving directory '/home/somebody/projects/mhvtl/usr'
make: *** [Makefile:37: usr] Error 2

The fix I've made locally is to declare the fg variable as it is declared elsewhere in this source file (such as in the loadTape function) as uint64_t fg = TA_NONE; within the processMessageQ function.

@davrosyoung
Copy link
Contributor Author

A pull request has been raised to remedy this; #117

@markh794
Copy link
Owner

Merged - many thanks

@davrosyoung
Copy link
Contributor Author

davrosyoung commented Jun 13, 2023 via email

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