Donate Share

Fluxbox

Tracker: Bugs

5 fluxbox 1.0.0 compile error - ID: 1809786
Last Update: Comment added ( fluxgen )

Hi
I'm trying to compile the fluxbox 1.0.0 version released today (8 oct
2007). I run configure and make and then get this error:

=====

g++ -DHAVE_CONFIG_H -I. -I../.. -g -O2 -I/usr/X11R6/include -DSHAPE
-I/usr/local/include -MT TextBox.o -MD -MP -MF .deps/TextBox.Tpo -c -o
TextBox.o TextBox.cc
TextBox.cc: In method `void FbTk::TextBox::buttonPressEvent
(XButtonEvent &)':
TextBox.cc:207: call of overloaded `abs (unsigned int)' is ambiguous
/usr/include/stdlib.h:699: candidates are: int abs (int)
/usr/include/g++-3/cstdlib:17: long int abs (long int)
make[4]: *** [TextBox.o] Error 1
make[4]: Leaving directory
`/mnt/hdd/LinuxSW/WindowManagers/fluxbox/fluxbox-1.0.0/src/FbTk'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/mnt/hdd/LinuxSW/WindowManagers/fluxbox/fluxbox-1.0.0/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/mnt/hdd/LinuxSW/WindowManagers/fluxbox/fluxbox-1.0.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/mnt/hdd/LinuxSW/WindowManagers/fluxbox/fluxbox-1.0.0'
make: *** [all] Error 2


===

I'm running the following gcc version
gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-113)

rumpole@hotmail.com


Nobody/Anonymous ( nobody ) - 2007-10-08 21:14

5

Closed

Fixed

Henrik Kinnunen

None

None

Public


Comments ( 3 )




Date: 2007-10-18 18:20
Sender: fluxgenProject Admin


Its been fixed in svn trunk.



Date: 2007-10-12 00:06
Sender: nobody

Logged In: NO


In TextBox.cc line 207, I tried adding an int cast to remove ambiguity.

tmp = abs((int)(event.x - font().textWidth(m_text.c_str() + m_start_pos,
i - m_start_pos)));

Line was previously
tmp = abs(event.x - font().textWidth(m_text.c_str() + m_start_pos, i -
m_start_pos));

Fluxbox 1.0.0 now seems to compile cleanly now; but I'm not sure if this
will cause problems when fluxbox is running. Is it ok to do this or is
there a better method than this to get Fluxbox ver 1.0.0 to compile on this
system?


rumpole@hotmail.com


Date: 2007-10-08 21:51
Sender: nobody

Logged In: NO

Hi

I should add that 1.0rc3 also gave a compile error on this same system but
the error in that case was Menu.cc. I reported that here and the solution
proposed at that time was to

"Try putting "#include <algorithm>" at the top of the file
src/FbTk/Menu.cc"

This worked and 1.0rc3 subsequently compiled fine.


rumpole@hotmail.com



Log in to comment.

Attached File

No Files Currently Attached

Changes ( 4 )

Field Old Value Date By
status_id Open 2007-10-18 18:20 fluxgen
close_date - 2007-10-18 18:20 fluxgen
resolution_id None 2007-10-18 17:33 fluxgen
assigned_to nobody 2007-10-18 17:33 fluxgen