shailendra201 / oscats

Automatically exported from code.google.com/p/oscats
Other
0 stars 0 forks source link

Won't compile on Ubuntu x64 (error: conflicting types for 'select') #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download and unzip oscats-0.6.tar.gz
2. Install dependencies (e.g. apt-get install libgsl0-dev)
3. "./configure --enable-python-bindings" (no errors)
4. make

What is the expected output? What do you see instead?

Expected a successful compilation, instead got:

algorithms/pick_rand.c:38:13: error: conflicting types for 'select'
/usr/include/x86_64-linux-gnu/sys/select.h:109:12: note: previous declaration 
of 'select' was here
make[2]: *** [liboscats_la-pick_rand.lo] Error 1
make[2]: Leaving directory `/home/jamalex/oscats-0.6/src/liboscats'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jamalex/oscats-0.6/src'
make: *** [all-recursive] Error 1

What version of the product are you using? On what operating system?
Version 0.6 (source) on Ubuntu 11.04 x64

Original issue reported on code.google.com by jama...@gmail.com on 19 Feb 2012 at 7:03

GoogleCodeExporter commented 9 years ago
I think I may have "fixed" this by doing the following:

Renamed "select" to "select2" (twice) in each of these files:
src/liboscats/algorithms/max_fisher.c:static gint select2 (OscatsTest *test, 
OscatsExaminee *e,
src/liboscats/algorithms/max_fisher.c:  g_signal_connect_data(test, "select", 
G_CALLBACK(select2),
src/liboscats/algorithms/pick_rand.c:static gint select2 (OscatsTest *test, 
OscatsExaminee *e,
src/liboscats/algorithms/pick_rand.c:  g_signal_connect_data(test, "select", 
G_CALLBACK(select2),
src/liboscats/algorithms/max_kl.c:static gint select2 (OscatsTest *test, 
OscatsExaminee *e,
src/liboscats/algorithms/max_kl.c:  g_signal_connect_data(test, "select", 
G_CALLBACK(select2),
src/liboscats/algorithms/closest_diff.c:static gint select2 (OscatsTest *test, 
OscatsExaminee *e,
src/liboscats/algorithms/closest_diff.c:  g_signal_connect_data(test, "select", 
G_CALLBACK(select2),

And ran this before starting Python:
export LD_LIBRARY_PATH=/usr/local/lib

Original comment by jama...@gmail.com on 27 Feb 2012 at 7:03

GoogleCodeExporter commented 9 years ago
I got the same issue .. and @jamalex workaround didn't work for me... 

Original comment by cacesa8...@gmail.com on 15 Aug 2012 at 2:15

GoogleCodeExporter commented 9 years ago
This patch fixes the compilation issue.

Original comment by jiri....@gmail.com on 1 Sep 2012 at 11:42

Attachments: