[gamin] gamin-0.1.7 compilation error



Hi all,

The compilation of gam_data.c for gamin-0.1.7 fails on my Linux box (2.6.14.3 kernel). I get the following messages:

gam_data.c: In function `gamin_data_new':
gam_data.c:460: `pthread_mutexattr_settype' undeclared (first use in this function)
gam_data.c:460: (Each undeclared identifier is reported only once
gam_data.c:460: for each function it appears in.)
gam_data.c:475: `pthread_mutexattr_settype' used prior to declaration
gam_data.c:475: warning: implicit declaration of function `pthread_mutexattr_settype'
make[3]: *** [gam_data.lo] Error 1
make[3]: Leaving directory `gamin-0.1.7/libgamin'

I did notice that there is a gam_data.loT file, but no gam_data.lo file in the libgamin directory. Copying gam_data.loT to gam_data.lo "solves" the problem, but then compilation fails later in the libgamin directory with:

cc -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wsign-compare -Wno-sign-compare -O2 -Wl,--export-dynamic -o .libs/gamin gamin.o -L/usr/local/gnome/lib ./.libs/libgamin-1.so -lpthread -Wl,--rpath -Wl,/usr/local/gnome/lib
./.libs/libgamin-1.so: undefined reference to `gamin_data_get_exists'
./.libs/libgamin-1.so: undefined reference to `gamin_data_need_auth'
./.libs/libgamin-1.so: undefined reference to `gamin_data_unlock'
./.libs/libgamin-1.so: undefined reference to `gamin_data_get_request'
./.libs/libgamin-1.so: undefined reference to `gamin_data_read_event'
./.libs/libgamin-1.so: undefined reference to `gamin_data_reset'
./.libs/libgamin-1.so: undefined reference to `gamin_data_get_reqnum'
./.libs/libgamin-1.so: undefined reference to `gamin_data_no_exists'
./.libs/libgamin-1.so: undefined reference to `gamin_data_new'
./.libs/libgamin-1.so: undefined reference to `gamin_data_event_ready'
./.libs/libgamin-1.so: undefined reference to `gamin_data_done_auth'
./.libs/libgamin-1.so: undefined reference to `gamin_data_free'
./.libs/libgamin-1.so: undefined reference to `gamin_data_get_data'
./.libs/libgamin-1.so: undefined reference to `gamin_data_cancel'
./.libs/libgamin-1.so: undefined reference to `gamin_data_conn_data'
./.libs/libgamin-1.so: undefined reference to `gamin_data_lock'
collect2: ld returned 1 exit status
make[3]: *** [gamin] Error 1

I'm not a programmer and don't know what other info you'll need, but any help will be appreciated.

I am running this as part of the garnome-2.12.3 distribution, but attempts with a separately downloaded gamin-0.1.7 tarball in a separate directory give the same results.

Thanks,

Torsten







[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]