markh794 / mhvtl

Linux based Virtual Tape Library
http://sites.google.com/site/linuxvtl2/
Other
139 stars 65 forks source link

compilation issue in usr/vtltape.c #116

Closed davrosyoung closed 1 year ago

davrosyoung commented 1 year ago

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 commented 1 year ago

A pull request has been raised to remedy this; https://github.com/markh794/mhvtl/pull/117

markh794 commented 1 year ago

Merged - many thanks

davrosyoung commented 1 year ago

Mark,

I use your mhvtl library a lot. Very very small contribution back from me.

Regards,

David

On Tue, 13 Jun 2023 at 08:40, Mark Harvey @.***> wrote:

Merged - many thanks

— Reply to this email directly, view it on GitHub https://github.com/markh794/mhvtl/issues/116#issuecomment-1588302350, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFG25VADY5ZW2TXTGZMWJTXK6ZHLANCNFSM6AAAAAAZC2ZZR4 . You are receiving this because you authored the thread.Message ID: @.***>