LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Gamin compilation error (https://www.linuxquestions.org/questions/linux-from-scratch-13/gamin-compilation-error-936142/)

pannet1 03-23-2012 08:09 AM

gamin compilation problem
 
Hi linux ethus,
While installing gamin package i got the following error message..

make[3]: *** [gam_subscription.o] Error 1
make[3]: Leaving directory `/myphepkgs/blfs/GeneralLibraries/gamin-0.1.10/server'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/myphepkgs/blfs/GeneralLibraries/gamin-0.1.10/server'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/myphepkgs/blfs/GeneralLibraries/gamin-0.1.10'
make: *** [all] Error 2

Give me a solution friends..

druuna 03-23-2012 08:52 AM

Hi,

Please post the actual error(s) as explained here: 1.5 Help - section 1.5.3

The lines starting with make[x] only tell us that something has gone wrong, not _what_ has gone wrong.

Also include the (B)LFS version you are working on and the appropriate chapter.

pannet1 03-24-2012 02:09 AM

Gamin compilation error
 
Hi friends,
While compiling gamin package in BLFS latest version i got the following errors.. Give me a solution for this problem..
make
make all-recursive
make[1]: Entering directory `/myphepkgs/blfs/GeneralLibraries/gamin-0.1.10'
Making all in lib
make[2]: Entering directory `/myphepkgs/blfs/GeneralLibraries/gamin-0.1.10/lib'
gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -DGAM_DEBUG_ENABLED -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wsign-compare -Wno-sign-compare -g -MT gam_event.o -MD -MP -MF .deps/gam_event.Tpo -c -o gam_event.o gam_event.c
mv -f .deps/gam_event.Tpo .deps/gam_event.Po
gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -DGAM_DEBUG_ENABLED -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wsign-compare -Wno-sign-compare -g -MT gam_error.o -MD -MP -MF .deps/gam_error.Tpo -c -o gam_error.o gam_error.c
mv -f .deps/gam_error.Tpo .deps/gam_error.Po
rm -f libgamin_shared.a
ar cru libgamin_shared.a gam_event.o gam_error.o
ranlib libgamin_shared.a
make[2]: Leaving directory `/myphepkgs/blfs/GeneralLibraries/gamin-0.1.10/lib'
Making all in doc
make[2]: Entering directory `/myphepkgs/blfs/GeneralLibraries/gamin-0.1.10/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/myphepkgs/blfs/GeneralLibraries/gamin-0.1.10/doc'
Making all in libgamin
make[2]: Entering directory `/myphepkgs/blfs/GeneralLibraries/gamin-0.1.10/libgamin'
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -DBINDIR=\""/usr/sbin"\" -DBUILDDIR=\"".."\" -DGAM_DEBUG_ENABLED -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wsign-compare -Wno-sign-compare -g -MT gam_api.lo -MD -MP -MF .deps/gam_api.Tpo -c -o gam_api.lo gam_api.c
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -DBINDIR=\"/usr/sbin\" -DBUILDDIR=\"..\" -DGAM_DEBUG_ENABLED -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wsign-compare -Wno-sign-compare -g -MT gam_api.lo -MD -MP -MF .deps/gam_api.Tpo -c gam_api.c -fPIC -DPIC -o .libs/gam_api.o
gam_api.c:41:3: warning: 'FAMError' defined but not used [-Wunused-variable]
gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -DBINDIR=\"/usr/sbin\" -DBUILDDIR=\"..\" -DGAM_DEBUG_ENABLED -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wsign-compare -Wno-sign-compare -g -MT gam_api.lo -MD -MP -MF .deps/gam_api.Tpo -c gam_api.c -o gam_api.o >/dev/null 2>&1
mv -f .deps/gam_api.Tpo .deps/gam_api.Plo
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -DBINDIR=\""/usr/sbin"\" -DBUILDDIR=\"".."\" -DGAM_DEBUG_ENABLED -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wsign-compare -Wno-sign-compare -g -MT gam_data.lo -MD -MP -MF .deps/gam_data.Tpo -c -o gam_data.lo gam_data.c
gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -DBINDIR=\"/usr/sbin\" -DBUILDDIR=\"..\" -DGAM_DEBUG_ENABLED -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wsign-compare -Wno-sign-compare -g -MT gam_data.lo -MD -MP -MF .deps/gam_data.Tpo -c gam_data.c -fPIC -DPIC -o .libs/gam_data.o
gam_data.c: In function 'gamin_data_new':
gam_data.c:461:26: warning: the comparison will always evaluate as 'true' for the address of 'pthread_mutex_init' will never be NULL [-Waddress]
gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -DBINDIR=\"/usr/sbin\" -DBUILDDIR=\"..\" -DGAM_DEBUG_ENABLED -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wsign-compare -Wno-sign-compare -g -MT gam_data.lo -MD -MP -MF .deps/gam_data.Tpo -c gam_data.c -o gam_data.o >/dev/null 2>&1
mv -f .deps/gam_data.Tpo .deps/gam_data.Plo
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -DBINDIR=\""/usr/sbin"\" -DBUILDDIR=\"".."\" -DGAM_DEBUG_ENABLED -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wsign-compare -Wno-sign-compare -g -MT gam_fork.lo -MD -MP -MF .deps/gam_fork.Tpo -c -o gam_fork.lo gam_fork.c
gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -DBINDIR=\"/usr/sbin\" -DBUILDDIR=\"..\" -DGAM_DEBUG_ENABLED -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wsign-compare -Wno-sign-compare -g -MT gam_fork.lo -MD -MP -MF .deps/gam_fork.Tpo -c gam_fork.c -fPIC -DPIC -o .libs/gam_fork.o
gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -DBINDIR=\"/usr/sbin\" -DBUILDDIR=\"..\" -DGAM_DEBUG_ENABLED -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wsign-compare -Wno-sign-compare -g -MT gam_fork.lo -MD -MP -MF .deps/gam_fork.Tpo -c gam_fork.c -o gam_fork.o >/dev/null 2>&1
mv -f .deps/gam_fork.Tpo .deps/gam_fork.Plo
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -DBINDIR=\""/usr/sbin"\" -DBUILDDIR=\"".."\" -DGAM_DEBUG_ENABLED -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wsign-compare -Wno-sign-compare -g -MT gam_error.lo -MD -MP -MF .deps/gam_error.Tpo -c -o gam_error.lo gam_error.c
gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -DBINDIR=\"/usr/sbin\" -DBUILDDIR=\"..\" -DGAM_DEBUG_ENABLED -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wsign-compare -Wno-sign-compare -g -MT gam_error.lo -MD -MP -MF .deps/gam_error.Tpo -c gam_error.c -fPIC -DPIC -o .libs/gam_error.o
gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -DBINDIR=\"/usr/sbin\" -DBUILDDIR=\"..\" -DGAM_DEBUG_ENABLED -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wsign-compare -Wno-sign-compare -g -MT gam_error.lo -MD -MP -MF .deps/gam_error.Tpo -c gam_error.c -o gam_error.o >/dev/null 2>&1
mv -f .deps/gam_error.Tpo .deps/gam_error.Plo
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -DBINDIR=\""/usr/sbin"\" -DBUILDDIR=\"".."\" -DGAM_DEBUG_ENABLED -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wsign-compare -Wno-sign-compare -g -MT gam_event.lo -MD -MP -MF .deps/gam_event.Tpo -c -o gam_event.lo gam_event.c
gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -DBINDIR=\"/usr/sbin\" -DBUILDDIR=\"..\" -DGAM_DEBUG_ENABLED -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wsign-compare -Wno-sign-compare -g -MT gam_event.lo -MD -MP -MF .deps/gam_event.Tpo -c gam_event.c -fPIC -DPIC -o .libs/gam_event.o
gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -DBINDIR=\"/usr/sbin\" -DBUILDDIR=\"..\" -DGAM_DEBUG_ENABLED -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wsign-compare -Wno-sign-compare -g -MT gam_event.lo -MD -MP -MF .deps/gam_event.Tpo -c gam_event.c -o gam_event.o >/dev/null 2>&1
mv -f .deps/gam_event.Tpo .deps/gam_event.Plo
/bin/sh ../libtool --tag=CC --mode=link gcc -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wsign-compare -Wno-sign-compare -g -Wl,--version-script=./gamin_sym.version -version-info 1:10:1 -o libgamin-1.la -rpath /usr/lib gam_api.lo gam_data.lo gam_fork.lo gam_error.lo gam_event.lo
gcc -shared .libs/gam_api.o .libs/gam_data.o .libs/gam_fork.o .libs/gam_error.o .libs/gam_event.o -Wl,--version-script=./gamin_sym.version -Wl,-soname -Wl,libgamin-1.so.0 -o .libs/libgamin-1.so.0.1.10
(cd .libs && rm -f libgamin-1.so.0 && ln -s libgamin-1.so.0.1.10 libgamin-1.so.0)
(cd .libs && rm -f libgamin-1.so && ln -s libgamin-1.so.0.1.10 libgamin-1.so)
ar cru .libs/libgamin-1.a gam_api.o gam_data.o gam_fork.o gam_error.o gam_event.o
ranlib .libs/libgamin-1.a
creating libgamin-1.la
(cd .libs && rm -f libgamin-1.la && ln -s ../libgamin-1.la libgamin-1.la)
/bin/sh ../libtool --tag=CC --mode=link gcc -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wsign-compare -Wno-sign-compare -g -Wl,--version-script=./gamin_sym.version -version-info 0:0:0 -o libfam.la -rpath /usr/lib gam_api.lo gam_data.lo gam_fork.lo gam_error.lo gam_event.lo
gcc -shared .libs/gam_api.o .libs/gam_data.o .libs/gam_fork.o .libs/gam_error.o .libs/gam_event.o -Wl,--version-script=./gamin_sym.version -Wl,-soname -Wl,libfam.so.0 -o .libs/libfam.so.0.0.0
(cd .libs && rm -f libfam.so.0 && ln -s libfam.so.0.0.0 libfam.so.0)
(cd .libs && rm -f libfam.so && ln -s libfam.so.0.0.0 libfam.so)
ar cru .libs/libfam.a gam_api.o gam_data.o gam_fork.o gam_error.o gam_event.o
ranlib .libs/libfam.a
creating libfam.la
(cd .libs && rm -f libfam.la && ln -s ../libfam.la libfam.la)
gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -DBINDIR=\""/usr/sbin"\" -DBUILDDIR=\"".."\" -DGAM_DEBUG_ENABLED -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wsign-compare -Wno-sign-compare -g -MT gamin.o -MD -MP -MF .deps/gamin.Tpo -c -o gamin.o gamin.c
mv -f .deps/gamin.Tpo .deps/gamin.Po
/bin/sh ../libtool --tag=CC --mode=link gcc -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wsign-compare -Wno-sign-compare -g -o gamin gamin.o libgamin-1.la
gcc -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wsign-compare -Wno-sign-compare -g -o .libs/gamin gamin.o ./.libs/libgamin-1.so
creating gamin
make[2]: Leaving directory `/myphepkgs/blfs/GeneralLibraries/gamin-0.1.10/libgamin'
Making all in python
make[2]: Entering directory `/myphepkgs/blfs/GeneralLibraries/gamin-0.1.10/python'
Making all in tests
make[3]: Entering directory `/myphepkgs/blfs/GeneralLibraries/gamin-0.1.10/python/tests'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/myphepkgs/blfs/GeneralLibraries/gamin-0.1.10/python/tests'
make[3]: Entering directory `/myphepkgs/blfs/GeneralLibraries/gamin-0.1.10/python'
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/python2.7 -I../libgamin -I../lib -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wsign-compare -Wno-sign-compare -g -MT gamin.lo -MD -MP -MF .deps/gamin.Tpo -c -o gamin.lo gamin.c
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/python2.7 -I../libgamin -I../lib -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wsign-compare -Wno-sign-compare -g -MT gamin.lo -MD -MP -MF .deps/gamin.Tpo -c gamin.c -fPIC -DPIC -o .libs/gamin.o
In file included from gamin.c:11:0:
../config.h:59:0: warning: "HAVE_PTHREAD_H" redefined [enabled by default]
/usr/include/python2.7/pyconfig.h:516:0: note: this is the location of the previous definition
gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/python2.7 -I../libgamin -I../lib -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wsign-compare -Wno-sign-compare -g -MT gamin.lo -MD -MP -MF .deps/gamin.Tpo -c gamin.c -o gamin.o >/dev/null 2>&1
mv -f .deps/gamin.Tpo .deps/gamin.Plo
/bin/sh ../libtool --tag=CC --mode=link gcc -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wsign-compare -Wno-sign-compare -g -module -avoid-version -o _gamin.la -rpath /usr/lib/python2.7/site-packages gamin.lo ../libgamin/libgamin-1.la
gcc -shared .libs/gamin.o -Wl,--rpath -Wl,/myphepkgs/blfs/GeneralLibraries/gamin-0.1.10/libgamin/.libs ../libgamin/.libs/libgamin-1.so -Wl,-soname -Wl,_gamin.so -o .libs/_gamin.so
ar cru .libs/_gamin.a gamin.o
ranlib .libs/_gamin.a
creating _gamin.la
(cd .libs && rm -f _gamin.la && ln -s ../_gamin.la _gamin.la)
make[3]: Leaving directory `/myphepkgs/blfs/GeneralLibraries/gamin-0.1.10/python'
make[2]: Leaving directory `/myphepkgs/blfs/GeneralLibraries/gamin-0.1.10/python'
Making all in lib
make[2]: Entering directory `/myphepkgs/blfs/GeneralLibraries/gamin-0.1.10/lib'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/myphepkgs/blfs/GeneralLibraries/gamin-0.1.10/lib'
Making all in server
make[2]: Entering directory `/myphepkgs/blfs/GeneralLibraries/gamin-0.1.10/server'
make all-am
make[3]: Entering directory `/myphepkgs/blfs/GeneralLibraries/gamin-0.1.10/server'
gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../libgamin -I../protocol -I../lib -I../libgamin -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DBINDIR=\""/usr/sbin"\" -DG_DISABLE_DEPRECATED -DGAM_DEBUG_ENABLED -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wsign-compare -Wno-sign-compare -g -MT gam_subscription.o -MD -MP -MF .deps/gam_subscription.Tpo -c -o gam_subscription.o gam_subscription.c
In file included from gam_subscription.c:26:0:
gam_subscription.h:24:16: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘char’
gam_subscription.c:144:16: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘char’
gam_subscription.c:351:1: warning: no previous prototype for ‘gam_subscription_shutdown’ [-Wmissing-prototypes]
make[3]: *** [gam_subscription.o] Error 1
make[3]: Leaving directory `/myphepkgs/blfs/GeneralLibraries/gamin-0.1.10/server'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/myphepkgs/blfs/GeneralLibraries/gamin-0.1.10/server'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/myphepkgs/blfs/GeneralLibraries/gamin-0.1.10'
make: *** [all] Error 2

druuna 03-24-2012 02:48 AM

Hi,

Haven't seen this one myself, but a little search comes up with this: [blfs-support] Gamin-0.1.10 breaks on build

Hope this helps.

BTW: I asked a moderator to merge this with your original thread. No need to start a new thread when one already exists....

Slackyman 03-24-2012 02:50 AM

I found this Bug at Launchpad
And the solution is "This bug was fixed in the package gamin - 0.1.10-2ubuntu2".
Are you using Ubuntu?

spiky0011 04-09-2012 10:31 AM

Hi

pannet1 did you ever solve this problem as I have the same error.
FYI I tried gamin-0.1.10.2.src with patches but still out come

Slackyman 04-09-2012 10:52 AM

Well, I downloaded gamin from launchpad and then also downloaded the patch from the same page.
then I apply the patch with
Code:

patch < gamin_0.1.10-2ubuntu2.diff
then I launch ./configure and make with no error.
I'm on Slackware 13.37.
Maybe something in your build tools is broken?

stoat 04-13-2012 01:45 PM

I also had problems compiling that version of gamin. But I think it's been fixed by a sed in the latest versions of the book.

Slackyman 04-13-2012 03:17 PM

@stoat: Have you tried to apply the patch?

stoat 04-16-2012 05:34 PM

Quote:

Originally Posted by Slackyman

Have you tried to apply the patch?

No, I didn't need it. I just now installed Gamin-0.1.10 using the steps in book-20120412 (with the sed), and it installed quietly.


All times are GMT -5. The time now is 04:50 AM.