Already tried. Different error of course :
gcc -std=gnu99 -Wno-pointer-sign -Wno-pointer-to-int-cast -O2 -Ofast -flto -ftree-loop-if-convert-stores -DUSE_ASM -pg -Iyes/include -Iyes/include -Lyes/lib -Lyes/lib -Lyes/lib -Lyes/lib -o cpuminer cpuminer-cpu-miner.o cpuminer-util.o cpuminer-api.o cpuminer-sysinfos.o sha3/cpuminer-sph_keccak.o sha3/cpuminer-sph_hefty1.o sha3/cpuminer-sph_groestl.o sha3/cpuminer-sph_skein.o sha3/cpuminer-sph_bmw.o sha3/cpuminer-sph_jh.o sha3/cpuminer-sph_shavite.o sha3/cpuminer-sph_blake.o sha3/cpuminer-mod_blakecoin.o sha3/cpuminer-sph_luffa.o sha3/cpuminer-sph_cubehash.o sha3/cpuminer-sph_simd.o sha3/cpuminer-sph_echo.o sha3/cpuminer-sph_hamsi.o sha3/cpuminer-sph_fugue.o sha3/cpuminer-sph_sha2.o sha3/cpuminer-sph_sha2big.o sha3/cpuminer-sph_shabal.o sha3/cpuminer-sph_whirlpool.o crypto/cpuminer-blake2s.o crypto/cpuminer-oaes_lib.o crypto/cpuminer-c_keccak.o crypto/cpuminer-c_groestl.o crypto/cpuminer-c_blake256.o crypto/cpuminer-c_jh.o crypto/cpuminer-c_skein.o crypto/cpuminer-hash.o crypto/cpuminer-aesb.o lyra2/cpuminer-Lyra2.o lyra2/cpuminer-Sponge.o algo/cpuminer-animecoin.o algo/cpuminer-axiom.o algo/cpuminer-blake.o algo/cpuminer-blakecoin.o algo/cpuminer-blake2.o algo/cpuminer-bmw256.o algo/cpuminer-c11.o algo/cpuminer-cryptonight.o algo/cpuminer-drop.o algo/cpuminer-fresh.o algo/cpuminer-groestl.o algo/cpuminer-heavy.o algo/cpuminer-ink.o algo/cpuminer-luffa.o algo/cpuminer-lyra2re.o algo/cpuminer-myr-groestl.o algo/cpuminer-keccak.o algo/cpuminer-pentablake.o algo/cpuminer-quark.o algo/cpuminer-neoscrypt.o algo/cpuminer-nist5.o algo/cpuminer-pluck.o algo/cpuminer-qubit.o algo/cpuminer-scrypt.o algo/cpuminer-sha2.o algo/cpuminer-skein.o algo/cpuminer-skein2.o algo/cpuminer-s3.o algo/cpuminer-x11.o algo/cpuminer-x13.o algo/cpuminer-x14.o algo/cpuminer-x15.o algo/cpuminer-zr5.o asm/cpuminer-neoscrypt_asm.o asm/cpuminer-sha2-x64.o asm/cpuminer-scrypt-x64.o asm/cpuminer-aesb-x64.o -lcurl -lz -lssl -lcrypto compat/jansson/libjansson.a -lpthread
/tmp/cc3qX1RA.ltrans1.ltrans.o: dans la fonction « submit_upstream_work »:
:(.text+0x4cc): référence indéfinie vers « json_object »
:(.text+0x4db): référence indéfinie vers « json_string »
:(.text+0x4eb): référence indéfinie vers « json_object_set_new »
:(.text+0x4f5): référence indéfinie vers « json_dumps »
:(.text+0x51c): référence indéfinie vers « json_delete »
:(.text+0x5bf): référence indéfinie vers « json_object_get »
:(.text+0x5d9): référence indéfinie vers « json_string_value »
Played with the -fuse-linker-plugin flag to see if that change something but no.
Ubuntu 15.04, GCC 4.9.2
Look like a broken flag, I'm tracking it (compiling and linking with only "-O2" work).
Ok, found the guilty : "
-flto". Without it, everything compile fine. I've tried to remove "-pg" but "-flto" keep breaking link.