unable to compile due to looking for libcpuid in /usr/local

Bug #1350464 reported by Shirish Agarwal
This bug report is a duplicate of:  Bug #1350018: 7.2.1 @ openSUSE 13.1 x64. Edit Remove
6
This bug affects 1 person
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_dh_autoreconf
make[1]: Entering directory '/data/shirish/Games/i-nex'
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://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation
configure.ac:4: installing './install-sh'
configure.ac:4: installing './missing'
make[1]: Leaving directory '/data/shirish/Games/i-nex'
   debian/rules override_dh_auto_configure
make[1]: Entering directory '/data/shirish/Games/i-nex'
dh_auto_configure --sourcedirectory=I-Nex
configure: WARNING: unrecognized options: --disable-maintainer-mode, --disable-dependency-tracking
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-maintainer-mode, --disable-dependency-tracking
make[1]: Leaving directory '/data/shirish/Games/i-nex'
   dh_auto_build
make[1]: Entering directory '/data/shirish/Games/i-nex'
Build I-Nex...
make -C I-Nex
make[2]: Entering directory '/data/shirish/Games/i-nex/I-Nex'
Compiling i-nex project...
OK
make[2]: Leaving directory '/data/shirish/Games/i-nex/I-Nex'
Build JSON...
make -C JSON
make[2]: Entering directory '/data/shirish/Games/i-nex/JSON'
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-uninitialized]
  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.c:1656:26: warning: ‘conformant_extension’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  nonconformant_extension += parse_extension(x);
                          ^
i-nex-edid.c:110:5: warning: ‘v’ may be used uninitialized in this function [-Wmaybe-uninitialized]
     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.c:1630:7: warning: ‘y’ may be used uninitialized in this function [-Wmaybe-uninitialized]
       printf(" %dx%d@%dHz\n", x, y, refresh);
       ^
i-nex-edid.c:1417:2: warning: ‘ofd’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  write(ofd, edid, edid_lines * 16);
  ^
Compile i-nex-cpuid ✔
gcc -o i-nex-cpuid i-nex-cpuid.c -static -I/usr/local/include/libcpuid -L/usr/local/lib -lcpuid -O2
i-nex-cpuid.c: In function ‘main’:
i-nex-cpuid.c:835:45: error: ‘CPU_FEATURE_CPB’ undeclared (first use in this function)
  printf(" \"VALUE\": %s \n", data.flags[CPU_FEATURE_CPB] ? "1 ," : "0 ,");
                                             ^
i-nex-cpuid.c:835:45: note: each undeclared identifier is reported only once for each function it appears in
i-nex-cpuid.c:843:45: error: ‘CPU_FEATURE_APERFMPERF’ undeclared (first use in this function)
  printf(" \"VALUE\": %s \n", data.flags[CPU_FEATURE_APERFMPERF] ? "1 ," : "0 ,");
                                             ^
i-nex-cpuid.c:851:45: error: ‘CPU_FEATURE_PFI’ undeclared (first use in this function)
  printf(" \"VALUE\": %s \n", data.flags[CPU_FEATURE_PFI] ? "1 ," : "0 ,");
                                             ^
i-nex-cpuid.c:859:45: error: ‘CPU_FEATURE_PA’ undeclared (first use in this function)
  printf(" \"VALUE\": %s \n", data.flags[CPU_FEATURE_PA] ? "1 ," : "0 ,");
                                             ^
Makefile:23: recipe for target 'compile-i-nex-cpuid' failed
make[2]: *** [compile-i-nex-cpuid] Error 1
make[2]: Leaving directory '/data/shirish/Games/i-nex/JSON'
Makefile:24: recipe for target 'build-json' failed
make[1]: *** [build-json] Error 2
make[1]: Leaving directory '/data/shirish/Games/i-nex'
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.

Revision history for this message
eloaders (eloaders) wrote :

you must use libcpuid library from this repo https://github.com/anrieff/libcpuid

Changed in i-nex:
status: New → Won't Fix
status: Won't Fix → Incomplete
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.