FTBFS with gcc 4.4 with error "invalid conversion from 'const char*' to 'char*'"

Bug #434752 reported by Fabrice Coutadeur
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
hammerhead (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: hammerhead

Hi,

This package needs to be patched to compile with gcc 4.4, with hardened mode:
g++ -O2 -fomit-frame-pointer -DHAMMER_VSN=\"2.1.3\" -c -D_REENTRANT -DLinux -g -Wall -I/usr/include/openssl -I/usr/include config.cc -o obj/Linux/config.o
config.cc:64: warning: deprecated conversion from string constant to 'char*'
config.cc:64: warning: deprecated conversion from string constant to 'char*'
config.cc:64: warning: deprecated conversion from string constant to 'char*'
config.cc: In function 'int ParseIPNumber(const char*, int*, int*)':
config.cc:94: error: invalid conversion from 'const char*' to 'char*'
make[3]: *** [obj/Linux/config.o] Error 1
make[3]: Leaving directory `/build/buildd/hammerhead-2.1.3/src'
make[2]: *** [first] Error 2
make[2]: Leaving directory `/build/buildd/hammerhead-2.1.3/src'
make[1]: *** [src] Error 2
make[1]: Leaving directory `/build/buildd/hammerhead-2.1.3'
make: *** [build-stamp] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2

Thanks,
Fabrice

Related branches

Changed in hammerhead (Ubuntu):
assignee: nobody → fabrice_sp (fabricesp)
status: New → In Progress
Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

debdiff with the fix to the package. No patch system has been added as Debian maintainer is already doing changes directly in the source

Changed in hammerhead (Ubuntu):
assignee: fabrice_sp (fabricesp) → nobody
status: In Progress → Confirmed
Benjamin Drung (bdrung)
Changed in hammerhead (Ubuntu):
assignee: nobody → Benjamin Drung (bdrung)
status: Confirmed → In Progress
Revision history for this message
Benjamin Drung (bdrung) wrote :

Uploading, thanks.

Changed in hammerhead (Ubuntu):
assignee: Benjamin Drung (bdrung) → nobody
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package hammerhead - 2.1.3-9ubuntu1

---------------
hammerhead (2.1.3-9ubuntu1) karmic; urgency=low

  * src/config.cc: fix a FTBFS by copying the const char * to a char *
    variable before using it (LP: #434752)
  * src/cmdline.cc: added header of cstdio to fix a compilation error with
    gcc 4.4

 -- Fabrice Coutadeur <email address hidden> Tue, 22 Sep 2009 05:03:15 +0000

Changed in hammerhead (Ubuntu):
status: Fix Committed → 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.