Find the answer to your Linux question:
Results 1 to 7 of 7
Every time I try to compile some source code, whether it's something wrote or it's an official CVS release, the makefile runs on and on, and gives me many messages ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! yurimxpxman's Avatar
    Join Date
    Oct 2006
    Location
    Galveston, Indiana
    Posts
    60

    FC6 x86_64 - c/c++ source code won't compile


    Every time I try to compile some source code, whether it's something wrote or it's an official CVS release, the makefile runs on and on, and gives me many messages saying "Leaving directory". It will never compile anything, and doesn't seem to be reporting any errors.

    Here's a small example:

    Code:
    [josh@localhost test1]$ ./configure
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking whether to enable maintainer-specific portions of Makefiles... no
    checking for style of include used by make... GNU
    checking for gcc... gcc
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables... 
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ANSI C... none needed
    checking dependency style of gcc... gcc3
    checking for library containing strerror... none required
    checking for gcc... (cached) gcc
    checking whether we are using the GNU C compiler... (cached) yes
    checking whether gcc accepts -g... (cached) yes
    checking for gcc option to accept ANSI C... (cached) none needed
    checking dependency style of gcc... (cached) gcc3
    checking for gcc... (cached) gcc
    checking whether we are using the GNU C compiler... (cached) yes
    checking whether gcc accepts -g... (cached) yes
    checking for gcc option to accept ANSI C... (cached) none needed
    checking dependency style of gcc... (cached) gcc3
    checking how to run the C preprocessor... gcc -E
    checking for egrep... grep -E
    checking for ANSI C header files... yes
    checking for pkg-config... /usr/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    checking for PACKAGE... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking locale.h usability... yes
    checking locale.h presence... yes
    checking for locale.h... yes
    checking for LC_MESSAGES... yes
    checking libintl.h usability... yes
    checking libintl.h presence... yes
    checking for libintl.h... yes
    checking for ngettext in libc... yes
    checking for dgettext in libc... yes
    checking for bind_textdomain_codeset... yes
    checking for msgfmt... /usr/bin/msgfmt
    checking for dcgettext... yes
    checking for gmsgfmt... /usr/bin/msgfmt
    checking for xgettext... /usr/bin/xgettext
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating src/Makefile
    config.status: creating po/Makefile.in
    config.status: creating config.h
    config.status: config.h is unchanged
    config.status: executing depfiles commands
    config.status: executing default-1 commands
    [josh@localhost test1]$ make
    make  all-recursive
    make[1]: Entering directory `/home/josh/programs/test1/test1'
    Making all in src
    make[2]: Entering directory `/home/josh/programs/test1/test1/src'
    if gcc -DHAVE_CONFIG_H -I. -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/local/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12      -g -O2 -MT main.o -MD -MP -MF ".deps/main.Tpo" -c -o main.o main.c; \
            then mv -f ".deps/main.Tpo" ".deps/main.Po"; else rm -f ".deps/main.Tpo"; exit 1; fi
    if gcc -DHAVE_CONFIG_H -I. -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/local/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12      -g -O2 -MT support.o -MD -MP -MF ".deps/support.Tpo" -c -o support.o support.c; \
            then mv -f ".deps/support.Tpo" ".deps/support.Po"; else rm -f ".deps/support.Tpo"; exit 1; fi
    if gcc -DHAVE_CONFIG_H -I. -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/local/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12      -g -O2 -MT interface.o -MD -MP -MF ".deps/interface.Tpo" -c -o interface.o interface.c; \
            then mv -f ".deps/interface.Tpo" ".deps/interface.Po"; else rm -f ".deps/interface.Tpo"; exit 1; fi
    if gcc -DHAVE_CONFIG_H -I. -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/local/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12      -g -O2 -MT callbacks.o -MD -MP -MF ".deps/callbacks.Tpo" -c -o callbacks.o callbacks.c; \
            then mv -f ".deps/callbacks.Tpo" ".deps/callbacks.Po"; else rm -f ".deps/callbacks.Tpo"; exit 1; fi
    gcc  -g -O2   -o test1  main.o support.o interface.o callbacks.o -L/lib64 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0    
    make[2]: Leaving directory `/home/josh/programs/test1/test1/src'
    Making all in po
    make[2]: Entering directory `/home/josh/programs/test1/test1/po'
    make[2]: Nothing to be done for `all'.
    make[2]: Leaving directory `/home/josh/programs/test1/test1/po'
    make[2]: Entering directory `/home/josh/programs/test1/test1'
    make[2]: Leaving directory `/home/josh/programs/test1/test1'
    make[1]: Leaving directory `/home/josh/programs/test1/test1'
    [josh@localhost test1]$
    Any ideas?

  2. #2
    Linux User fernape's Avatar
    Join Date
    Dec 2005
    Location
    Holland
    Posts
    301
    Well, I think you should make a make clean before to try to remove all that .o files.
    Then try again to run make.

    Best Regards

  3. #3
    Just Joined! yurimxpxman's Avatar
    Join Date
    Oct 2006
    Location
    Galveston, Indiana
    Posts
    60
    Tried that. Didn't work. Thanks for the suggestion though.

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined! yurimxpxman's Avatar
    Join Date
    Oct 2006
    Location
    Galveston, Indiana
    Posts
    60
    Bump! Any ideas? I'm getting really desparate here 0_o

  6. #5
    Linux Newbie
    Join Date
    Jul 2005
    Posts
    180
    I'm going to preface this with "just a guess":

    You might have to tell it the library path... if it's a 32 bit app you're trying to install then you should have it use the 32 bit libs. This is done in the configure. It's probably by default using the 64 bit libs.

  7. #6
    Just Joined! yurimxpxman's Avatar
    Join Date
    Oct 2006
    Location
    Galveston, Indiana
    Posts
    60
    How would I do that? I tried "linux32 ./configure linux32 make" and that didn't work either. What do I need to edit in the config file to make it work?

  8. #7
    Linux Newbie
    Join Date
    Jul 2005
    Posts
    180
    Again take this with a grain of salt...

    but I don't think that you do 32 bit emulation for compiling and installing 32 bit software, you just use emulation to run it.

    For each software package you have to read the documentation included to see what the configure options are. One solution that works alot is to set the LD_LIBRARY_PATH variable before installation. But usually you use a specific flag when running configure to tell it not to look in the default location, but instead another location.

    like ./configure --library_path kind of thing. Kind of thing, you have to actually look up what it is per package.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •