Author Topic: (solved) Error by build deadbeef, cyberjack...  (Read 998 times)

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3749
  • God knows, i'm not an Angel!
    • Tipps und Tricks
(solved) Error by build deadbeef, cyberjack...
« on: May 25, 2011, 01:04:54 PM »
I was asking the developers of deadbeef this:
Quote
Hello,
when i will generate deadbeef from source, i get a error messages.
Code: [Select]
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -std=c99 -pthread
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0
-I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1
-I/usr/include/freetype2 -I/usr/include/libpng12 -O2 -pipe -Wformat
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fomit-frame-pointer -march=i586
-mtune=generic -fasynchronous-unwind-tables -D_GNU_SOURCE -DLIBDIR=\"/usr/lib\"
-DPREFIX=\"/usr\" -DDOCDIR=\"/usr/share/doc/deadbeef\" -MT converter_gtkui_la-convgui.lo
-MD -MP -MF .deps/converter_gtkui_la-convgui.Tpo -c convgui.c  -fPIC -DPIC -o
.libs/converter_gtkui_la-convgui.o
converter.c: In function 'convert':
converter.c:753:21: warning: format '%lu' expects type 'long unsigned int', but
argument 3 has type 'unsigned int'
converter.c:736:24: warning: ignoring return value of 'mktemp', declared with
attribute warn_unused_result
converter.c:904:28: warning: ignoring return value of 'fwrite', declared with
attribute warn_unused_result
converter.c:908:28: warning: ignoring return value of 'fwrite', declared with
attribute warn_unused_result
converter.c:923:24: warning: ignoring return value of 'fwrite', declared with
attribute warn_unused_result
convgui.c: In function 'overwrite_prompt_cb':
convgui.c:111:5: error: format not a string literal and no format arguments
make[2]: *** [converter_gtkui_la-convgui.lo] Fehler 1
make[2]: *** Warte auf noch nicht beendete Prozesse...
mv -f .deps/converter.Tpo .deps/converter.Plo
make[2]: Leaving directory `/home/leiche/src/rpm/BUILD/deadbeef-0.5.1/plugins/converter'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/home/leiche/src/rpm/BUILD/deadbeef-0.5.1'
make: *** [all] Fehler 2
Fehler: Fehler-Status beim Beenden von /home/leiche/src/tmp/rpm-tmp.77249
(%build)

I get this error since version 0.5.0-rc1. I'm not sure, what is missing.
I add the configure.log, and hope we find a solution.


This answers was:
Quote
it looks that you have global CFLAGS override somewhere.
compiler is instructed to treat format-security warnings as errors, this
is why it stops.
removing -Werror=format-security from your CFLAGS should help.
i will fix the problem in my code.

and closed my thread.

But how can i remove -Werror=format-security from CFLAGS?

configure.log

specfile

Or is the mistake by my side?
The same messages i get by ctapi-cyberjack...

Thanks for open my eyes  ;D


« Last Edit: May 25, 2011, 03:09:27 PM by Leiche »

Offline Texstar

  • Administrator
  • Super Villain
  • *****
  • Posts: 12536
Re: Error by build deadbeef, cyberjack...
« Reply #1 on: May 25, 2011, 02:25:39 PM »
Edit your specfile.

Remove
%define __libtoolize    /bin/true
%define __cputoolize /bin/true

Add
%define Werror_cflags %nil


Thanks to everyone who donates. You keep the servers running.

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3749
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: Error by build deadbeef, cyberjack...
« Reply #2 on: May 25, 2011, 03:08:57 PM »
Thank you, it's now build...

Offline Texstar

  • Administrator
  • Super Villain
  • *****
  • Posts: 12536
Re: (solved) Error by build deadbeef, cyberjack...
« Reply #3 on: May 25, 2011, 04:07:49 PM »
Do you know anything about the status of the plugins? Someone posted here they would be available as a separate package otherwise won't it be crippled by default?

« Last Edit: May 25, 2011, 04:11:46 PM by Texstar »

Thanks to everyone who donates. You keep the servers running.

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3749
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: (solved) Error by build deadbeef, cyberjack...
« Reply #4 on: May 25, 2011, 04:21:16 PM »
I don't know, i see some plugins, they all works.
ZIP functions works well, too. So i'm not sure, why we should generate a seperate packages for plugins.