Comment 2 for bug 1358542

Revision history for this message
Shirish Agarwal (shirishag75) wrote : Re: [Bug 1358542] Re: Unable to compile I-Nex, using arnieff's libcpuid library.

at bottom :-

On 8/21/14, eloaders <email address hidden> wrote:
> Ubuntu builds must be always build in clean system. Fresh instalation.
> You are using an old version of the library. check if you do not have a
> duplicate in /usr/local
>
> I recommend using the Ubuntu ppa or change the static compilation by
> editing inex.mk.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1358542
>
> Title:
> Unable to compile I-Nex, using arnieff's libcpuid library.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/i-nex/+bug/1358542/+subscriptions

You were right on the money. I had an old library lurking in
/usr/local/lib. Taking all of them out along with libcpuid.pc from
pkg_config in /usr/local/lib made a clean rules build.

~/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/lib/include/libcpuid
-L/usr/lib/lib -lcpuid -O2
Compile i-nex-usage ✔
gcc -o i-nex-usage i-nex-usage.c -static -lprocps -O2
Compile i-nex-cpusage ✔
gcc -o i-nex-cpusage i-nex-cpusage.c -O2
Compile i-nex-glinfo ✔
gcc -o i-nex-glinfo glinfo_common.c i-nex-glinfo.c -lX11
-I/usr/include/libdrm -lGL -lXext -O2
Compile i-nex-uname ✔
gcc -o i-nex-uname i-nex-uname.c -O2
make[2]: Leaving directory '/data/shirish/Games/I-Nex/JSON'
Build Pixmaps...
make -C pixmaps
make[2]: Entering directory '/data/shirish/Games/I-Nex/pixmaps'
convert i-nex.png -resize 16x16 i-nex-16.png
convert i-nex.png -resize 32x32 i-nex-32.png
convert i-nex.png -resize 128x128 i-nex-128.png
make[2]: Leaving directory '/data/shirish/Games/I-Nex/pixmaps'
make[1]: Leaving directory '/data/shirish/Games/I-Nex'
   dh_auto_test

After that was able to build the debian package and was also able to
install it.

$ ll -h i-nex_7.4.0_amd64.deb
-rw-r--r-- 1 shirish shirish 2.1M Aug 21 21:08 i-nex_7.4.0_amd64.deb

$ sudo dpkg -i i-nex_7.4.0_amd64.deb
D000001: ensure_diversions: new, (re)loading
D000001: ensure_statoverrides: new, (re)loading
(Reading database ... 556831 files and directories currently installed.)
Preparing to unpack i-nex_7.4.0_amd64.deb ...
D000001: process_archive oldversionstatus=awaiting trigger processing
by another package
Unpacking i-nex (7.4.0) over (7.0.0) ...
D000001: process_archive updating info directory
D000001: generating infodb hashfile
Setting up i-nex (7.4.0) ...
D000001: deferred_configure updating conffiles
D000001: ensure_diversions: same, skipping
Processing triggers for menu (2.1.47) ...
D000001: ensure_diversions: same, skipping
Processing triggers for debian-security-support (2014.07.31) ...
D000001: cmpversions a='0:1.17.10' b='0:1.16' r=1
D000001: cmpversions a='0:1.17.10' b='0:1.16' r=1
D000001: ensure_diversions: same, skipping
Processing triggers for gnome-menus (3.13.3-1) ...
D000001: ensure_diversions: same, skipping
Processing triggers for mime-support (3.56) ...
D000001: ensure_diversions: same, skipping
Processing triggers for desktop-file-utils (0.22-1) ...
D000001: ensure_diversions: same, skipping
Processing triggers for man-db (2.6.7.1-1) ...
D000001: ensure_diversions: same, skipping

I have put dpkg, apt and aptitude in verbose mode so can get output if
something arises. Thank you for following it up.

You can close the bug. It was an issue/mistake from my side.
--
          Regards,
          Shirish Agarwal शिरीष अग्रवाल
  My quotes in this email licensed under CC 3.0
http://creativecommons.org/licenses/by-nc/3.0/
http://flossexperiences.wordpress.com
EB80 462B 08E1 A0DE A73A 2C2F 9F3D C7A4 E1C4 D2D8