Bug 1298 - Fail to compile on Fedora 14 64 bit
Summary: Fail to compile on Fedora 14 64 bit
Status: RESOLVED FIXED
Alias: None
Product: BpmDj - old linux tools
Classification: Unclassified
Component: clock driver (show other bugs)
Version: 4.1
Hardware: PC Linux
: Future blocker
Assignee: Bernard Fortz
URL:
: 1270 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-05-10 18:43 CEST by Tyrell Berry
Modified: 2011-05-11 10:36 CEST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Comment 4 Josiah Boothby 2011-05-11 10:36:22 CEST
This change to bpmclock.cpp seems to work, but only if I use the cmake patches.
Comment 3 Tyrell Berry 2011-05-11 08:07:14 CEST
That seemed to do the trick, thank you!  
Comment 2 Bernard Fortz 2011-05-10 20:23:03 CEST
*** Bug 1270 has been marked as a duplicate of this bug. ***
Comment 1 Bernard Fortz 2011-05-10 20:18:22 CEST
Hello,

Could you try to add
#include <sys/stat.h>
in the include portion of bpmclock.cpp and report if it solves the problem.

Thanks,
Bernard
Description Tyrell Berry 2011-05-10 18:43:21 CEST
Steps taken:  
1. Create "defines" file
2. Patch symbol.h with corrected Symbol() : text((const char*)NULL)  line
3. make

Expected outcome: Program compiles

Actual outcome: 
Fails with error:

...
In file included from files.h++:4:0,
                 from period-type.h++:1,
                 from bpmclock.h++:1,
                 from bpmclock.c++:11:
stereo-sample2.h++: In member function ‘unsigned4& stereo_sample2::value()’:
stereo-sample2.h++:25:40: warning: dereferencing type-punned pointer will break strict-aliasing rules
bpmclock.c++: In function ‘int main(int, char**)’:
bpmclock.c++:31:8: error: ‘S_IREAD’ was not declared in this scope
bpmclock.c++:31:18: error: ‘S_IWRITE’ was not declared in this scope
make[1]: *** [bpmclock.o] Error 1
make: *** [.compile] Error 2

Attached, please find my complete compile log.  

Below, please find my defines file.   Thank you.



CPP             = g++ -g -O3 -Wall
RCC             = rcc
UIC             = uic-qt4
MOC             = moc-qt4
CFLAGS         += -D COMPILE_ALSA
LDFLAGS        += -lpthread -lm -lasound -lrt -lfftw3
QT_INCLUDE_PATH = -I/usr/include/QtGui/ -I/usr/include/QtCore/ -I/usr/include/Qt/
QT_LIBRARY_PATH = /usr/lib64/libQtCore.so.4
QT_LIBS         = -lQtGui
BITS            = 64