Help - Search - Members - Calendar
Full Version: Trouble Installing Gnome Desktop Changer
Linuxhelp > Support > Technical Support
pbjoiner
Howdy!

I've downloaded gdchange-0.2.1 but cannot get it to install. Here's the output I'm getting from configure:

checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
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 build environment is sane... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for a BSD-compatible install... /usr/bin/install -c
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 for style of include used by make... GNU
checking dependency style of gcc... 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 for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking whether make sets $(MAKE)... (cached) yes
checking whether ln -s works... yes
checking whether mkdir accepts -p... yes


POSIX Threads
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for cc_r... gcc
checking how to run the C++ preprocessor... g++ -E
checking for egrep... grep -E
checking for ANSI C header files... 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 pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for pthread_create... yes


I/O functions
checking for ANSI C header files... (cached) yes
checking whether stat file-mode macros are broken... no
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking for open... yes
checking for read... yes
checking for write... yes
checking for close... yes
checking for printf... yes
checking for sprintf... yes
checking for unlink... yes
checking for exit... no
configure: error: required function missing

No "exit" function? It it kidding me?
Termina
Sounds like a bug in their code.

If you need to compile from source, you'll probably going to have to use a newer, or older, version.

That project is in beta, after all. wink.gif
pbjoiner
Nope. I've got the same result from 0.2 and 0.1.1. My guess is that it's some system configuration issue that I've hosed somewhere. I can't imagine that there's anything wrong with gcc.
Hemant
Ok.. then why not you try this bit of code and tell us what happens:
CODE
#include <stdio.h>
#include <stdlib.h>

int main()
{
  printf("Linux Rocksn");
  exit(0);
}


If this piece of code works, then certainly there is some issue with "configration.in" file of your package.If this bit of code runs. Then can you post the contents of "configuration.in" file, in your package directory.
pbjoiner
I've compiled and run Hemant's code (after changing "n" to "\n", I know about that much C).

Here's configure.in for gdchange-0.2.1. Sorry I just don't have the chops to parse this.

CODE
AC_INIT([Gnome Desktop Change],0.2.1,administrator@tortugalabs.it)
AC_COPYRIGHT([Copyright 2004 Tortuga Labs. Inc.])
AC_CANONICAL_HOST
AC_CONFIG_SRCDIR(gdchange.cpp)
AM_INIT_AUTOMAKE(gdchange,0.2.1)
AM_CONFIG_HEADER(config.h)
AC_PREFIX_DEFAULT(/usr/local)
AM_SANITY_CHECK
AM_MAINTAINER_MODE

MAJOR_VERSION=0
MINOR_VERSION=2
RELEASE_VERSIO=1
VERSION="$MAJOR_VERSION.$MINOR_VERSION.$RELEASE_VERSION"

dnl checks for programs needed to build.
CXXFLAGS="-ansi -pedantic"

AC_PROG_INSTALL
AC_PROG_CC
AM_PROG_CC_STDC
AC_PROG_CXX
AC_LANG_CPLUSPLUS

AC_PROG_MAKE_SET
AC_PROG_LN_S

dnl debug check
AC_ARG_ENABLE(debug,
 [  --enable-debug          enable debug (default disabled)],
 [ CXXFLAGS="$CXXFLAGS -g" ],
 [ CXXFLAGS="$CXXFLAGS -pipe -Wall -O3" ])

dnl checking mkdir -p
AC_MSG_CHECKING([whether mkdir accepts -p])
if (mkdir -p config.tmpdir/p && mkdir -p config.tmpdir/p 2>&1) > /dev/null; then
   AC_MSG_RESULT(yes)
   MKDIR="mkdir -p"
else
   AC_MSG_RESULT(no)
   MKDIR=mkdir
fi
rm -rf config.tmpdir

dnl check for POSIX Threads library
echo -e $'n'$'n'POSIX Threads
ACX_PTHREAD([
 LDFLAGS="$LDFLAGS $PTHREAD_LIBS"
 CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
    ])
AC_CHECK_HEADERS(pthread.h)
AC_CHECK_FUNCS(pthread_create)

dnl I/O functions
echo -e $'n'$'n'I/O functions
AC_HEADER_STDC
AC_HEADER_STAT
AC_CHECK_HEADERS(stdio.h fcntl.h errno.h)
AC_CHECK_FUNCS(open read write close printf sprintf unlink exit,[have_io_funcs=yes],AC_MSG_ERROR([required function missing]))

have_errno=no
AC_MSG_CHECKING(for errno)
AC_TRY_LINK([
#if HAVE_ERRNO_H
#include <errno.h>
#endif], [static int x; x = errno;],
 [AC_MSG_RESULT(yes - in errno.h); AC_DEFINE(HAVE_ERRNO,1,[Errno]) have_errno=yes])
if test $have_errno = no; then
AC_TRY_LINK([
#if HAVE_ERRNO_H
#include <errno.h>
#endif], [extern int errno; static int x; x = errno;],
 [AC_MSG_RESULT(yes - must define); AC_DEFINE(HAVE_ERRNO,1,[Errno]) AC_DEFINE(MUST_DEFINE_ERRNO,1,[Must have Errno])],
 [AC_MSG_RESULT(no)])
fi

dnl directory functions
echo -e $'n'$'n'Directory functions
AC_HEADER_DIRENT
AC_CHECK_HEADERS(dirent.h)
AC_CHECK_FUNCS(opendir readdir closedir,[have_dir_funcs=yes],AC_MSG_ERROR([required function missing]))

dnl string/char functions
echo -e $'n'$'n'String and character functions
AC_CHECK_HEADERS(getopt.h ctype.h)
AC_CHECK_FUNCS(getopt strcpy atoi strcat strlen,[have_str_funcs=yes],AC_MSG_ERROR([required function missing]))

dnl POSIX signal functions
echo -e $'n'$'n'POSIX signal functions
AC_CHECK_HEADERS(signal.h)
AC_CHECK_FUNCS(sigemptyset sigfillset sigwait kill,[have_sigs_funcs=yes],AC_MSG_ERROR([required function missing]))

dnl Utility functions
echo -e $'n'$'n'Other functions
AC_HEADER_TIME
AC_STRUCT_TM
AC_CHECK_HEADERS(time.h)
AC_CHECK_FUNCS(time srand rand getpid,[have_other_funcs=yes],AC_MSG_ERROR([required function missing]))

AC_CHECK_HEADERS(fam.h)
AC_CHECK_LIB(fam,FAMOpen,[LDFLAGS="$LDFLAGS -lfam"],AC_MSG_ERROR([required library missing]))
AC_CHECK_FUNCS(FAMOpen FAMClose FAMMonitorDirectory FAMNextEvent FAMCancelMonitor,[have_fam_funcs=yes],AC_MSG_ERROR([required function missing]))

CXXFLAGS="$CXXFLAGS `pkg-config --cflags gconf-2.0`"
LDFLAGS="$LDFLAGS `pkg-config --libs gconf-2.0`"
CXXCPP="$CXXCPP `pkg-config --cflags-only-I gconf-2.0`"
AC_CHECK_HEADERS(gconf/gconf-client.h)
AC_CHECK_LIB(gconf-2,gconf_client_get_default,[have_gconf_lib=yes],AC_MSG_ERROR([required library missing]))
AC_CHECK_FUNCS(gconf_client_set_string,[have_gconf_funcs=yes],AC_MSG_ERROR([required function missing]))

AC_PATH_XTRA

CXXFLAGS="$CXXFLAGS $X_CFLAGS"
LDFLAGS="$LDFLAGS $X_LIBS $X_PRE_LIBS -lX11 -lXss -lXext $X_EXTRA_LIBS"
CXXCPP="$CXXCPP $X_CFLAGS"
AC_CHECK_HEADERS(X11/X.h X11/Xlib.h)
AC_CHECK_LIB(X11,XOpenDisplay,[have_X11_lib=yes],AC_MSG_ERROR([required library missing]))
AC_CHECK_LIB(Xss,XScreenSaverAllocInfo,[have_Xss_lib=yes],AC_MSG_ERROR([required library missing]))

dnl =================================================================
dnl Always defined
dnl =================================================================


AC_DEFINE(__MT__,1,
 [Always define this, for thread safety on some platforms.])

AC_OUTPUT(Makefile)
Hemant
What about the code i told you to compile:

use "$gcc test.c" to compile the program
and use "$./a.out" to run the program.
DS2K3
QUOTE
I've compiled and run Hemant's code (after changing "n" to "n", I know about that much C).


...
Hemant
Just few small changes:
here is the portion of the "configure.in" script that you have to change.

CODE
dnl I/O functions
echo -e $'n'$'n'I/O functions
AC_HEADER_STDC
AC_HEADER_STAT
AC_CHECK_HEADERS(stdio.h fcntl.h errno.h)
AC_CHECK_FUNCS(open read write close printf sprintf unlink exit,[have_io_funcs=yes],AC_MSG_ERROR([required function missing]))


in AC_CHECK_HEADERS add "stdlib.h" and in AC_CHECK_FUNCS remove "exit"

After that you do:
CODE
$autoconf configure.in>configure
$./configure
$make
$sudo make install


This will solve your problem.
pbjoiner
That worked just fine. Now the problem is in the source code. The misbegotten thing won't compile.

I think I'll wait until they're out of beta. Thank you all for your help.
Hemant
No buddy, the same thing got compiled and installed on my notebook.


Get the latest version from sourceforge.net and compile, as per the instruction i have given to you.

by the way, thanks for pointing me to a nice program smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.