aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: error while compiling on FC3  (Read 3482 times)

xalexas

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 22
error while compiling on FC3
« on: March 07, 2006, 08:32:14 PM »

I have configured using:
./configure --prefix=/usr --enable-optimize --disable-debug --enable-wxcas --enable-cas --enable-alc --enable-alcc --enable-amule-daemon --enable-amulecmd --enable-webserver


##########################################

Then make. I have received error so i repeated again. Here is error part:

make[5]: Entering directory `/home/fedora/aMule-2.1.0/aMule-2.1.0/src/utils/aLin
kCreator/src'
g++  -DUSE_EMBEDDED_CRYPTO -W -Wall -Wshadow -Wundef -O2   -lpthread -o alc  alc
-alc.o alc-alcframe.o alc-ed2khash.o alc-alcpix.o alc-md4.o -pthread   -L/usr/X1
1R6/lib  -lwx_gtk2u_adv-2.6 -lwx_gtk2u_core-2.6 -lwx_baseu_net-2.6 -lwx_baseu-2.
6
/usr/lib/gcc/i386-redhat-linux/3.4.3/../../../libwx_gtk2u_adv-2.6.so: undefined
reference to `g_return_if_fail_warning'
collect2: ld returned 1 exit status
make[5]: *** [alc] Error 1
make[5]: Leaving directory `/home/fedora/aMule-2.1.0/aMule-2.1.0/src/utils/aLink
Creator/src'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/fedora/aMule-2.1.0/aMule-2.1.0/src/utils/aLink
Creator'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/fedora/aMule-2.1.0/aMule-2.1.0/src/utils'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/fedora/aMule-2.1.0/aMule-2.1.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/fedora/aMule-2.1.0/aMule-2.1.0'
make: *** [all] Error 2


##################################

configure part


checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for mode_t... yes
checking for off_t... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for uid_t in sys/types.h... yes
checking for working volatile... yes
checking for ptrdiff_t... yes
checking whether closedir returns void... no
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for library containing strerror... none required
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking whether we are using the GNU C Library 2.1 or newer... yes
checking whether integer division by zero raises SIGFPE... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unsigned long long... yes
checking for inttypes.h... yes
checking whether the inttypes.h PRIxNN macros are broken... no
checking for ld used by GCC... ld
checking if the linker (ld) is GNU ld... yes
checking for shared library run path origin... done
checking for argz.h... (cached) yes
checking for limits.h... (cached) yes
checking for locale.h... (cached) yes
checking nl_types.h usability... yes
checking nl_types.h presence... yes
checking for nl_types.h... yes
checking for malloc.h... (cached) yes
checking for stddef.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for feof_unlocked... yes
checking for fgets_unlocked... yes
checking for getc_unlocked... yes
checking for getcwd... yes
checking for getegid... yes
checking for geteuid... yes
checking for getgid... yes
checking for getuid... yes
checking for mempcpy... yes
checking for munmap... yes
checking for putenv... yes
checking for setenv... yes
checking for setlocale... yes
checking for stpcpy... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for strtoul... yes
checking for tsearch... yes
checking for __argz_count... yes
checking for __argz_stringify... yes
checking for __argz_next... yes
checking for iconv... yes
checking for iconv declaration...
         extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for nl_langinfo and CODESET... yes
checking for LC_MESSAGES... yes
checking for bison... bison
checking version of bison... 1.875, ok
checking whether NLS is requested... yes
checking whether included gettext is requested... no
checking for GNU gettext in libc... yes
checking for getmntent in -lsun... no
checking for getmntent in -lseq... no
checking for getmntent in -lgen... no
checking for getmntent... yes
checking whether gcc needs -traditional... no
checking for pid_t... yes
checking for unistd.h... (cached) yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking whether lstat dereferences a symlink specified with a trailing slash... yes
checking whether lstat accepts an empty string... no
checking whether lstat dereferences a symlink specified with a trailing slash... (cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for working memcmp... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... (cached) yes
checking for working mmap... (cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking for sys/socket.h... (cached) yes
checking types of arguments for select... int,fd_set *,struct timeval *
checking for function prototypes... yes
checking whether setvbuf arguments are reversed... no
checking return type of signal handlers... void
checking whether stat accepts an empty string... no
checking for strftime... yes
checking for working strtod... yes
checking for __argz_count... (cached) yes
checking for __argz_next... (cached) yes
checking for __argz_stringify... (cached) yes
checking for endpwent... yes
checking for floor... no
checking for ftruncate... yes
checking for getcwd... (cached) yes
checking for gethostbyaddr... yes
checking for gethostbyname... yes
checking for gethostname... yes
checking for getmntent... (cached) yes
checking for getmntinfo... no
checking for getpass... yes
checking for gettimeofday... yes
checking for inet_ntoa... yes
checking for memmove... yes
checking for mempcpy... (cached) yes
checking for memset... yes
checking for munmap... (cached) yes
checking for nl_langinfo... yes
checking for select... yes
checking for setlocale... (cached) yes
checking for socket... yes
checking for sqrt... no
checking for stpcpy... (cached) yes
checking for strcasecmp... (cached) yes
checking for strchr... yes
checking for strcspn... yes
checking for strdup... (cached) yes
checking for strerror... yes
checking for strncasecmp... yes
checking for strstr... yes
checking for strtoul... (cached) yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking for mkdir... yes
checking for getrlimit... yes
checking for setrlimit... yes
checking if the applications should be statically linked... no
checking for CVSDATE... None required
checking if this is a FreeBSD 4 or earlier system... no
checking for a readline compatible library... -lreadline -ltermcap
checking readline.h usability... no
checking readline.h presence... no
checking for readline.h... no
checking readline/readline.h usability... yes
checking readline/readline.h presence... yes
checking for readline/readline.h... yes
checking whether readline supports history... yes
checking history.h usability... no
checking history.h presence... no
checking for history.h... no
checking readline/history.h usability... yes
checking readline/history.h presence... yes
checking for readline/history.h... yes
checking whether ccache support should be added... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating docs/Makefile
config.status: creating docs/man/Makefile
config.status: creating intl/Makefile
config.status: creating m4/Makefile
config.status: creating src/Makefile
config.status: creating src/kademlia/Makefile
config.status: creating src/kademlia/utils/Makefile
config.status: creating src/kademlia/io/Makefile
config.status: creating src/kademlia/kademlia/Makefile
config.status: creating src/kademlia/routing/Makefile
config.status: creating src/kademlia/net/Makefile
config.status: creating src/pixmaps/Makefile
config.status: creating src/libs/Makefile
config.status: creating src/libs/ec/Makefile
config.status: creating src/libs/common/Makefile
config.status: creating src/utils/Makefile
config.status: creating src/utils/aLinkCreator/Makefile
config.status: creating src/utils/aLinkCreator/docs/Makefile
config.status: creating src/utils/aLinkCreator/src/Makefile
config.status: creating src/utils/cas/Makefile
config.status: creating src/utils/cas/docs/Makefile
config.status: creating src/utils/wxCas/Makefile
config.status: creating src/utils/wxCas/docs/Makefile
config.status: creating src/utils/wxCas/src/Makefile
config.status: creating src/utils/xas/Makefile
config.status: creating src/utils/xas/docs/Makefile
config.status: creating src/webserver/Makefile
config.status: creating src/webserver/src/Makefile
config.status: creating src/webserver/default/Makefile
config.status: creating src/webserver/php-default/Makefile
config.status: creating src/webserver/chicane/Makefile
config.status: creating unittests/Makefile
config.status: creating unittests/muleunit/Makefile
config.status: creating unittests/tests/Makefile
config.status: creating po/Makefile.in
config.status: creating Compilation.flags
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing default-1 commands
config.status: creating po/POTFILES
config.status: creating po/Makefile


  Configure script has finished system check.

  Configured aMule 2.1.0 for 'i686-pc-linux-gnu'.

  aMule enabled options:

  **** aMule Core ****
  Prefix where aMule should be installed?                    /usr
  Should aMule be compiled with i18n support?                yes
  Should aMule be compiled in debug mode?                    no
  Should aMule be compiled with profiling?                   no
  Should aMule be compiled with optimizations?               yes
  Should aMule monolithic application be built?              yes
  Should aMule daemon version be built?                      yes
  Should aMule remote gui be built? (EXPERIMENTAL)           no
  Crypto++ library/headers style?                            embedded

  **** aMule TextClient ****
  Should aMule Command Line Client be built?                 yes

  **** aMule WebServer ****
  Should aMule WebServer be built?                           yes

  **** aMule ED2K Links Handler ****
  Should aMule ED2K Links Handler be built?                  yes

  **** aMuleLinkCreator ****
  Should aMuleLinkCreator GUI version (alc) be built?        yes
  Should aMuleLinkCreator for console (alcc) be built?       yes

  **** aMule Statistics ****
  Should C aMule Statistics (CAS) be built?                  yes
  Should aMule GUI Statistics (wxCas) be built?              yes

  **** General Libraries and Tools ****
  Should ccache support be enabled?                          no
  Libraries aMule will use to build:
                                       wxWidgets             2.6.2
                                       crypto++              embedded
                                       libpng                1.2.8
                                       libgd                 2.0.33
                                       zlib                  1.2.1.2


###########################################

Any idea? Thanks.
« Last Edit: March 07, 2006, 10:04:36 PM by xalexas »
Logged

Gerd78

  • Hero Member
  • *****
  • Karma: 9
  • Offline Offline
  • Posts: 681
Re: error while compiling on FC3
« Reply #1 on: March 08, 2006, 07:00:27 AM »

Could you please tell me the output of these commands?
Code: [Select]
objdump -p /usr/lib/libwx_gtk2u_adv-2.6.so | grep NEEDEDI think the problem is that your wxGTK libraries were not linked to GLib although they should.

Workaround:
Code: [Select]
export LIBS="`pkg-config --libs glib-2.0`"
./configure
make
« Last Edit: March 08, 2006, 07:02:28 AM by Gerd78 »
Logged

Gerd78

  • Hero Member
  • *****
  • Karma: 9
  • Offline Offline
  • Posts: 681
Re: error while compiling on FC3
« Reply #2 on: March 08, 2006, 07:01:13 AM »

- sorry, confused "edit" and "reply" buttons AGAIN, please delete -
« Last Edit: March 08, 2006, 07:02:00 AM by Gerd78 »
Logged

xalexas

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 22
Re: error while compiling on FC3
« Reply #3 on: March 08, 2006, 08:52:28 AM »

Here is the output:

[root@nids1 aMule-2.1.0]# export LIBS="`pkg-config --libs glib-2.0`"

Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glib-2.0' found

[root@nids1 aMule-2.1.0]# objdump -p /usr/lib/libwx_gtk2u_adv-2.6.so | grep NEEDED
  NEEDED      libz.so.1
  NEEDED      libdl.so.2
  NEEDED      libgtk-x11-2.0.so.0
  NEEDED      libgdk-x11-2.0.so.0
  NEEDED      libatk-1.0.so.0
  NEEDED      libgdk_pixbuf-2.0.so.0
  NEEDED      libm.so.6
  NEEDED      libpangoxft-1.0.so.0
  NEEDED      libpangox-1.0.so.0
  NEEDED      libpango-1.0.so.0
  NEEDED      libgobject-2.0.so.0
  NEEDED      libgmodule-2.0.so.0
  NEEDED      libgthread-2.0.so.0
  NEEDED      libglib-2.0.so.0
  NEEDED      libXinerama.so.1
  NEEDED      libXxf86vm.so.1
  NEEDED      libpng12.so.0
  NEEDED      libjpeg.so.62
  NEEDED      libtiff.so.3
  NEEDED      libwx_gtk2u_core-2.6.so.0
  NEEDED      libwx_baseu-2.6.so.0
  NEEDED      libstdc++.so.6
  NEEDED      libgcc_s.so.1
  NEEDED      libpthread.so.0
  NEEDED      libc.so.6
Logged

Gerd78

  • Hero Member
  • *****
  • Karma: 9
  • Offline Offline
  • Posts: 681
Re: error while compiling on FC3
« Reply #4 on: March 08, 2006, 09:55:06 AM »

Install glib2-devel and try again.
Logged

xalexas

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 22
Re: error while compiling on FC3
« Reply #5 on: March 08, 2006, 11:13:07 AM »

Installed glib2-devel and same thing again.

[root@nids1 aMule-2.1.0]# export LIBS="`pkg-config --libs glib-2.0`"

Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glib-2.0' found

[root@nids1 aMule-2.1.0]# objdump -p /usr/lib/libwx_gtk2u_adv-2.6.so | grep NEEDED
NEEDED libz.so.1
NEEDED libdl.so.2
NEEDED libgtk-x11-2.0.so.0
NEEDED libgdk-x11-2.0.so.0
NEEDED libatk-1.0.so.0
NEEDED libgdk_pixbuf-2.0.so.0
NEEDED libm.so.6
NEEDED libpangoxft-1.0.so.0
NEEDED libpangox-1.0.so.0
NEEDED libpango-1.0.so.0
NEEDED libgobject-2.0.so.0
NEEDED libgmodule-2.0.so.0
NEEDED libgthread-2.0.so.0
NEEDED libglib-2.0.so.0
NEEDED libXinerama.so.1
NEEDED libXxf86vm.so.1
NEEDED libpng12.so.0
NEEDED libjpeg.so.62
NEEDED libtiff.so.3
NEEDED libwx_gtk2u_core-2.6.so.0
NEEDED libwx_baseu-2.6.so.0
NEEDED libstdc++.so.6
NEEDED libgcc_s.so.1
NEEDED libpthread.so.0
NEEDED libc.so.6
Logged

Gerd78

  • Hero Member
  • *****
  • Karma: 9
  • Offline Offline
  • Posts: 681
Re: error while compiling on FC3
« Reply #6 on: March 08, 2006, 11:55:26 AM »

OK, then let's try it without pkg-config:

export LIBS="-lglib-2.0"
./configure
make

And for information:

ls -l /usr/lib/pkgconfig/glib*
Logged

xalexas

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 22
Re: error while compiling on FC3
« Reply #7 on: March 08, 2006, 01:07:50 PM »

export LIBS="-lglib-2.0"  - no error report


make failed again with same error

ls -l /usr/lib/pkgconfig/glib*
-rw-r--r--  1 root root 309 Dec  6  2004 /usr/lib/pkgconfig/glib-2.0.pc
-rw-r--r--  1 root root 213 Aug  9  2004 /usr/lib/pkgconfig/glib.pc
« Last Edit: March 08, 2006, 01:08:21 PM by xalexas »
Logged