gramophone2: FTBFS:/«PKGBUILDDIR»/grammyVM.c:1498:undefined reference to log10

Bug #1277954 reported by Andreas Moog
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gramophone2 (Ubuntu)
Fix Released
High
Unassigned

Bug Description

 affects ubuntu/gramophone2
 importance high
 tag ftbfs trusty
 done

Hi there,

the package gramophone2 fails to build in current Ubuntu.

(Hopefully) Relevant part of the log:
--------------------------------------

mkdir -p "."
/usr/bin/make -f debian/rules reverse-config
make[1]: Entering directory `/«PKGBUILDDIR»'
make[1]: Nothing to be done for `reverse-config'.
make[1]: Leaving directory `/«PKGBUILDDIR»'
cd . && QUILT_PATCHES=/«PKGBUILDDIR»/debian/patches quilt --quiltrc /dev/null push -a || test $? = 2
File series fully applied, ends at patch grammyVM.c.diff
touch debian/stamp-patched
/usr/bin/make -f debian/rules update-config
make[1]: Entering directory `/«PKGBUILDDIR»'
make[1]: Nothing to be done for `update-config'.
make[1]: Leaving directory `/«PKGBUILDDIR»'
make -C .
make[1]: Entering directory `/«PKGBUILDDIR»'
flex GRAMophone.l
bison -d GRAMophone.y
GRAMophone.y: warning: 22 shift/reduce conflicts [-Wconflicts-sr]
GRAMophone.y: warning: 39 reduce/reduce conflicts [-Wconflicts-rr]
gcc -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -O2 -lm -Wl,-Bsymbolic-functions -Wl,-z,relro -o gramophone2 GRAMophone.c\
   grammyVM.c init.c midicode.c\
   midifile.c expcode.c debug.c errors.c\
   hash.c GRAMophone.tab.c
In file included from GRAMophone.y:40:0:
GRAMophone.l: In function 'yylex':
GRAMophone.l:250:42: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
       yy_switch_to_buffer(
                                          ^
GRAMophone.y: In function 'yyparse':
GRAMophone.y:454:29: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
         if(!(noteVarTempBis=(pnote_var)dhSearch(yytext, 0)) &&
                             ^
GRAMophone.y:455:29: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
            !(noteVarTempBis=(pnote_var)dhSearch(yytext, 1)))
                             ^
GRAMophone.y:459:29: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
         if(!(noteVarTempBis=(pnote_var)dhSearch(yytext, 1)))
                             ^
/tmp/ccWLX0zu.o: In function `write_player_track':
/«PKGBUILDDIR»/grammyVM.c:1498: undefined reference to `log10'
collect2: error: ld returned 1 exit status
make[1]: *** [default] Error 1
make[1]: Leaving directory `/«PKGBUILDDIR»'
make: *** [debian/stamp-makefile-build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
────────────────────────────────────────────────────────────────────────────────
Build finished at 20140208-2115

Finished
────────

E: Build failure (dpkg-buildpackage died)

Thanks for your time!

Regards,
  Andreas

--
PGP-encrypted mails preferred
PGP Fingerprint: 74CD D9FE 5BCB FE0D 13EE 8EEA 61F3 4426 74DE 6624

Tags: ftbfs trusty
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gramophone2 - 0.8.13a-3ubuntu1

---------------
gramophone2 (0.8.13a-3ubuntu1) trusty; urgency=medium

  * Update debian/patches/makefile.diff to put "-lm" into LDLIBS instead of
    CFLAGS. The position of this parameter matters because Ubuntu uses --as-
    needed as a default compiler flag and libs need to come after objects on
    the command line. (LP: #1277954)
 -- Andreas Moog <email address hidden> Sat, 08 Feb 2014 21:46:09 +0100

Changed in gramophone2 (Ubuntu):
status: New → Fix Released
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.