Update device-info.h#113
Open
Lu100git wants to merge 1 commit into
Open
Conversation
I added: #include <sys/stat.h> since I got this error when running the install script: Running make... device-info.c:943:33: error: implicit declaration of function ‘stat’; did you mean ‘strcat’? [-Wimplicit-function-declaration] device-info.c:944:33: error: implicit declaration of function ‘S_ISBLK’; did you mean ‘S_IFBLK’? [-Wimplicit-function-declaration]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I added:
#include <sys/stat.h>
since I got this error when running the install script:
Running make...
device-info.c:943:33: error: implicit declaration of function ‘stat’; did you mean ‘strcat’? [-Wimplicit-function-declaration] device-info.c:944:33: error: implicit declaration of function ‘S_ISBLK’; did you mean ‘S_IFBLK’? [-Wimplicit-function-declaration]
contex:
I was trying to install CasaOS on Alma Linux, even tho this distro is not supported I wanted to see how far I could go,
I cloned the repo, since I got an error when trying to install CasaOS, the error said udevil was not found, I've seen these implicit declaration errors before, so I double check if this would fix the issue, and it looks like it worked, not sure if it will work on other distros, but since this is only a library line I don't think it will affect the install script.
this is the output I got when running the install script after I added the library:
Running make...
udevil appears to have been built successfully. To install it, you
may need to enter your root or administrator password below...
Running sudo make install
Making install in etc
make[1]: Entering directory '/home/admin/git/udevil/etc'
make[2]: Entering directory '/home/admin/git/udevil/etc'
make[2]: Nothing to be done for 'install-exec-am'.
make install-data-hook
make[3]: Entering directory '/home/admin/git/udevil/etc'
test -d //etc/udevil || mkdir -p --
//etc/udevil
test -f //etc/udevil/udevil.conf || /usr/bin/install -c -m 644
./udevil.conf
//etc/udevil/udevil.conf
test -d //etc/conf.d || mkdir -p --
//etc/conf.d
test -f //etc/conf.d/devmon || /usr/bin/install -c -m 644
./systemd/devmon
//etc/conf.d/devmon
test -d //usr/local/lib/systemd/system ||
mkdir -p -- //usr/local/lib/systemd/system
/usr/bin/install -c -m 644 ./systemd/devmon@.service
//usr/local/lib/systemd/system/devmon@.service
make[3]: Leaving directory '/home/admin/git/udevil/etc'
make[2]: Leaving directory '/home/admin/git/udevil/etc'
make[1]: Leaving directory '/home/admin/git/udevil/etc'
Making install in po
make[1]: Entering directory '/home/admin/git/udevil/po'
grep: warning: stray \ before #
grep: warning: stray \ before #
grep: warning: stray \ before #
grep: warning: stray \ before #
grep: warning: stray \ before #
linguas="de es fr it pl pt_BR ru sv ";
for lang in $linguas; do
dir=/usr/local/share/locale/$lang/LC_MESSAGES;
/bin/sh /home/admin/git/udevil/install-sh -d $dir;
if test -r $lang.gmo; then
/usr/bin/install -c -m 644 $lang.gmo $dir/udevil.mo;
echo "installing $lang.gmo as $dir/udevil.mo";
else
/usr/bin/install -c -m 644 ./$lang.gmo $dir/udevil.mo;
echo "installing ./$lang.gmo as"
"$dir/udevil.mo";
fi;
if test -r $lang.gmo.m; then
/usr/bin/install -c -m 644 $lang.gmo.m $dir/udevil.mo.m;
echo "installing $lang.gmo.m as $dir/udevil.mo.m";
else
if test -r ./$lang.gmo.m ; then
/usr/bin/install -c -m 644 ./$lang.gmo.m
$dir/udevil.mo.m;
echo "installing ./$lang.gmo.m as"
"$dir/udevil.mo.m";
else
true;
fi;
fi;
done
installing de.gmo as /usr/local/share/locale/de/LC_MESSAGES/udevil.mo
installing es.gmo as /usr/local/share/locale/es/LC_MESSAGES/udevil.mo
installing fr.gmo as /usr/local/share/locale/fr/LC_MESSAGES/udevil.mo
installing it.gmo as /usr/local/share/locale/it/LC_MESSAGES/udevil.mo
installing pl.gmo as /usr/local/share/locale/pl/LC_MESSAGES/udevil.mo
installing pt_BR.gmo as /usr/local/share/locale/pt_BR/LC_MESSAGES/udevil.mo
installing ru.gmo as /usr/local/share/locale/ru/LC_MESSAGES/udevil.mo
installing sv.gmo as /usr/local/share/locale/sv/LC_MESSAGES/udevil.mo
make[1]: Leaving directory '/home/admin/git/udevil/po'
Making install in src
make[1]: Entering directory '/home/admin/git/udevil/src'
make[2]: Entering directory '/home/admin/git/udevil/src'
/usr/bin/mkdir -p '/usr/local/bin'
/usr/bin/install -c devmon '/usr/local/bin'
make install-data-hook
make[3]: Entering directory '/home/admin/git/udevil/src'
test -z //usr/local/bin || mkdir -p -- //usr/local/bin
/usr/bin/install -c -m 644 -o root -g root -m 4755 -D ../src/udevil //usr/local/bin/udevil
make[3]: Leaving directory '/home/admin/git/udevil/src'
make[2]: Leaving directory '/home/admin/git/udevil/src'
make[1]: Leaving directory '/home/admin/git/udevil/src'
make[1]: Entering directory '/home/admin/git/udevil'
make[2]: Entering directory '/home/admin/git/udevil'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/home/admin/git/udevil'
make[1]: Leaving directory '/home/admin/git/udevil'
Installation appears successful.