unable to compile due to looking for libcpuid in /usr/local
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
I-Nex |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Hi all,
I compiled libcpuid to be in /usr/lib/ instead of /usr/local/ directory in Debian.
While trying to compile I-nex it doesn't compile because it's looking for libcpuid in the wrong location (I guess.)
~/games/i-nex$ fakeroot debian/rules build
dh build --with autoreconf
dh_testdir
debian/rules override_
make[1]: Entering directory '/data/
cd I-Nex && autoreconf -i
configure.ac:4: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated. For more info, see:
configure.ac:4: http://
configure.ac:4: installing './install-sh'
configure.ac:4: installing './missing'
make[1]: Leaving directory '/data/
debian/rules override_
make[1]: Entering directory '/data/
dh_auto_configure --sourcedirecto
configure: WARNING: unrecognized options: --disable-
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gambas3 binaries... Ok
checking for gambas3 components path... Ok
checking for gb.image component... Ok
checking for gb.qt4 component... Ok
checking for gb.form component... Ok
checking for gb.desktop component... Ok
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
configure: WARNING: unrecognized options: --disable-
make[1]: Leaving directory '/data/
dh_auto_build
make[1]: Entering directory '/data/
Build I-Nex...
make -C I-Nex
make[2]: Entering directory '/data/
Compiling i-nex project...
OK
make[2]: Leaving directory '/data/
Build JSON...
make -C JSON
make[2]: Entering directory '/data/
Compile Static ⚑
Compile i-nex-edid ✔
gcc -o i-nex-edid i-nex-edid.c -g -Wall -O2
i-nex-edid.c: In function ‘detailed_block’:
i-nex-edid.c:194:2: warning: ‘width’ may be used uninitialized in this function [-Wmaybe-
printf(" %dx%d @ ( %s%s%s%s%s) Hz (%s%s preferred)\n", width, height,
^
i-nex-edid.c:155:9: note: ‘width’ was declared here
int width, height;
^
i-nex-edid.c: In function ‘main’:
i-nex-edid.
nonconformant
i-nex-edid.c:110:5: warning: ‘v’ may be used uninitialized in this function [-Wmaybe-
printf("%s%s: %s (%d)\n", prefix, field->name, v->description, val);
^
i-nex-edid.c:95:19: note: ‘v’ was declared here
struct value *v;
i-nex-edid.
printf(" %dx%d@%dHz\n", x, y, refresh);
^
i-nex-edid.
write(ofd, edid, edid_lines * 16);
^
Compile i-nex-cpuid ✔
gcc -o i-nex-cpuid i-nex-cpuid.c -static -I/usr/
i-nex-cpuid.c: In function ‘main’:
i-nex-cpuid.
printf(" \"VALUE\": %s \n", data.flags[
i-nex-cpuid.
i-nex-cpuid.
printf(" \"VALUE\": %s \n", data.flags[
i-nex-cpuid.
printf(" \"VALUE\": %s \n", data.flags[
i-nex-cpuid.
printf(" \"VALUE\": %s \n", data.flags[
Makefile:23: recipe for target 'compile-
make[2]: *** [compile-
make[2]: Leaving directory '/data/
Makefile:24: recipe for target 'build-json' failed
make[1]: *** [build-json] Error 2
make[1]: Leaving directory '/data/
dh_auto_build: make -j1 returned exit code 2
debian/rules:20: recipe for target 'build' failed
make: *** [build] Error 2
I wish/hope there is a way that I could use it with /usr/lib instead of libcpuid living in /usr/local
Looking forward to the fix or your advice on the above.
you must use libcpuid library from this repo https:/ /github. com/anrieff/ libcpuid