bug-freedink
[Top][All Lists]
Advanced

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

Re: [Bug-freedink] Multiple definition of something when linking source


From: Jorma Karvonen
Subject: Re: [Bug-freedink] Multiple definition of something when linking source code
Date: Tue, 29 Sep 2009 14:48:39 +0300

Hello,

if this is a GCC compiler problem, one should use some alternative compiler to test the problem. Is there some Intel compiler or something like that I could use to test this package? I have installed the source code packages just to avoid upgrading.

Pre-compiled packages are not enough for me because I wanted to test a new translation and compiled the source code to get it with the code.

Br.

Jorma K.

2009/9/29 Sylvain Beucler <address@hidden>
Great!

Looking a bit in search engine, it seems other people had such issues:
http://www.linuxquestions.org/questions/programming-9/help-failed-build-of-gcc-4.3-on-sles-10gcc-4.1-ia64-635731/
but apparently they don't really know how they fixed it :/

It seems there was a problem with the GCC compiler, so at first glance
this is not a problem in FreeDink.  What do you think?

If you go to:
http://software.opensuse.org/search/
and search "freedink" in openSUSE 10.3, you'll see pre-compiled packages.

This means it should compile under that version - would you consider
upgrading openSUSE 10.1->10.3?

--
Sylvain

On Tue, Sep 29, 2009 at 12:01:46PM +0300, Jorma Karvonen wrote:
> Ok,
>
> uname -a
> Linux xxx 2.6.18.8-0.13-default #1 SMP Thu Nov 6 13:35:13 UTC 2008
> i686 i686 i386 GNU/Linux
> Distribution is now SUSE Linux 10.1 and it has previously upgrated
> from SuSE 6.4 (if I recall it correct), then 7.1, 7.2, 8.1 and 8.2,
> then 9.0 (if I recall it correct) and now 10.1 but it has not upgrated
> after it because the processor is a bit slow (450 MHz) and I have used
> this computer for testing of software only.
>
> some tools:
> gcc (GCC) 4.3.4
> GNU ld (GNU Binutils) 2.19
> autoconf (GNU Autoconf) 2.64
> automake (GNU automake) 1.11
> bison (GNU Bison) 2.3
> flex 2.5.35
>
> What else information are needed?
>
> Br. Jorma Karvonen
>
> 2009/9/29, Sylvain Beucler <address@hidden>:
> > Hi,
> >
> > Precise your OS (GNU/Linux, *BSD, OSX...), your distribution, and what
> > you manually installed.  The goal is we try and reproduce your
> > compilation environment, and possibly your linking error.
> >
> > The release compiled on Debian, Fedora, OpenSUSE, ArchLinux and MinGW,
> > so I guess there's something special about your environment.
> >
> > --
> > Sylvain
> >
> > On Tue, Sep 29, 2009 at 10:10:29AM +0300, Jorma Karvonen wrote:
> >> Hello,
> >>
> >> no problem with --disable-sdltest. I tested this several time and used
> >> --disable-sdltest to spare time ;)
> >>
> >> I tried again without with ./configure --prefix=/usr/local (yes, in source
> >> directory) and the problem is still the same. I managed to build dfarc
> >> from
> >> the source code and got it up and running. But the reason for fail in the
> >> linking of freedink source package is still unknown.
> >>
> >> I have no idea, what other kind of information I can provide?
> >>
> >> Best regards,
> >>
> >> Jorma Karvonen
> >>
> >> 2009/9/29 Sylvain Beucler <address@hidden>
> >>
> >> > Hi,
> >> >
> >> > It Works For Me (tm).
> >> >
> >> > So we'll need more information to diagnose the problem :)
> >> >
> >> >
> >> > Why are you using "--disable-sdltest"?  This probably means you had a
> >> > problem at configure time, so it's probably better to investigate that
> >> > first.
> >> >
> >> > Also precise your environment: OS (GNU/Linux, *BSD, ...),
> >> > distribution, etc.
> >> >
> >> > --
> >> > Sylvain
> >> >
> >> > On Mon, Sep 28, 2009 at 07:33:31PM +0300, Jorma Karvonen wrote:
> >> > > Hello,
> >> > >
> >> > > I tried to build the freedink from a source code package
> >> > > (freedink-1.08.20090918) and got the error message below.
> >> > >
> >> > > I started:
> >> > >
> >> > > tar xvf freedink-1.08.20090918.tar
> >> > > cd freedink-1.08.20090918
> >> > > mkdir target
> >> > > cd target
> >> > > ../configure --prefix=/usr/local --disable-sdltest
> >> > > make
> >> > > ...
> >> > > gcc -DHAVE_CONFIG_H -I. -I../../src -I..
> >> > > -DDEFAULT_DATA_DIR=\"/usr/local/share\" -I../../gnulib/lib
> >> > > -I../gnulib/lib -DINSTALLDIR=\"/usr/local/bin\"
> >> > > -DLOCALEDIR=\"/usr/local/share/locale\" -I../../intl -I../intl   -g
> >> > > -O2 -Wall -std=c99   -I/usr/local/include    -I/usr/local/include/SDL
> >> > > -D_GNU_SOURCE=1 -D_REENTRANT -MT update_frame.o -MD -MP -MF
> >> > > .deps/update_frame.Tpo -c -o update_frame.o ../../src/update_frame.c
> >> > > mv -f .deps/update_frame.Tpo .deps/update_frame.Po
> >> > > gcc  -g -O2 -Wall -std=c99   -I/usr/local/include
> >> > > -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT
> >> > > `"../../autotools/reloc-ldflags" "i686-pc-linux-gnu" ""
> >> > > /usr/local/bin`  -o freedink bgm.o dinkini.o dinkc.o dinkc_bindings.o
> >> > > dinkc_console.o dinkc_sp_custom.o dinkvar.o fastfile.o game_engine.o
> >> > > str_util.o io_util.o sfx.o gfx.o gfx_fade.o gfx_tiles.o gfx_palette.o
> >> > > gfx_fonts.o init.o rect.o input.o binreloc.o freedink_xpm.o paths.o
> >> > > log.o gfx_sprites.o vgasys_fon.o msgbox.o i18n.o meminfo.o screen.o
> >> > > SDL_rwops_libzip.o freedink.o update_frame.o  ../gnulib/lib/libgnu.a
> >> > > -lSDL_mixer -lSDL_image -lSDL_ttf -lSDL_gfx -lpthread -L/usr/local/lib
> >> > > -Wl,-rpath,/usr/local/lib -lSDL -lpthread  -L/usr/local/lib -lzip -lz
> >> > >  -lfontconfig -lexpat    -lm
> >> > > dinkini.o: In function `gnu_dev_major':
> >> > > /usr/include/sys/sysmacros.h:43: multiple definition of
> >> > > `gnu_dev_major'
> >> > > bgm.o:/usr/include/sys/sysmacros.h:43: first defined here
> >> > > dinkini.o: In function `gnu_dev_minor':
> >> > > /usr/include/sys/sysmacros.h:49: multiple definition of
> >> > > `gnu_dev_minor'
> >> > > bgm.o:/usr/include/sys/sysmacros.h:49: first defined here
> >> > > dinkini.o: In function `gnu_dev_makedev':
> >> > > /usr/include/sys/sysmacros.h:55: multiple definition of
> >> > > `gnu_dev_makedev'
> >> > > bgm.o:/usr/include/sys/sysmacros.h:55: first defined here
> >> > > dinkini.o: In function `feof_unlocked':
> >> > > /usr/include/bits/stdio.h:113: multiple definition of `feof_unlocked'
> >> > > bgm.o:/usr/include/bits/stdio.h:113: first defined here
> >> > > dinkini.o: In function `ferror_unlocked':
> >> > > /usr/include/bits/stdio.h:120: multiple definition of
> >> > > `ferror_unlocked'
> >> > > bgm.o:/usr/include/bits/stdio.h:120: first defined here
> >> > > dinkini.o: In function `__strcspn_c1':
> >> > > /usr/include/bits/string2.h:972: multiple definition of `__strcspn_c1'
> >> > > bgm.o:/usr/include/bits/string2.h:972: first defined here
> >> > > dinkini.o: In function `__strcspn_c2':
> >> > > /usr/include/bits/string2.h:983: multiple definition of `__strcspn_c2'
> >> > > bgm.o:/usr/include/bits/string2.h:983: first defined here
> >> > > dinkini.o: In function `__strcspn_c3':
> >> > > /usr/include/bits/string2.h:996: multiple definition of `__strcspn_c3'
> >> > > bgm.o:/usr/include/bits/string2.h:996: first defined here
> >> > > dinkini.o: In function `__strspn_c1':
> >> > > /usr/include/bits/string2.h:1048: multiple definition of `__strspn_c1'
> >> > > bgm.o:/usr/include/bits/string2.h:1048: first defined here
> >> > > dinkini.o: In function `__strspn_c2':
> >> > > /usr/include/bits/string2.h:1060: multiple definition of `__strspn_c2'
> >> > > bgm.o:/usr/include/bits/string2.h:1060: first defined here
> >> > > dinkini.o: In function `__strspn_c3':
> >> > > /usr/include/bits/string2.h:1072: multiple definition of `__strspn_c3'
> >> > > bgm.o:/usr/include/bits/string2.h:1072: first defined here
> >> > > dinkini.o: In function `__strpbrk_c2':
> >> > > /usr/include/bits/string2.h:1125: multiple definition of
> >> > > `__strpbrk_c2'
> >> > > bgm.o:/usr/include/bits/string2.h:1125: first defined here
> >> > > dinkini.o: In function `__strpbrk_c3':
> >> > > /usr/include/bits/string2.h:1137: multiple definition of
> >> > > `__strpbrk_c3'
> >> > > bgm.o:/usr/include/bits/string2.h:1137: first defined here
> >> > > dinkini.o: In function `__strtok_r_1c':
> >> > > /usr/include/bits/string2.h:1176: multiple definition of
> >> > > `__strtok_r_1c'
> >> > > bgm.o:/usr/include/bits/string2.h:1176: first defined here
> >> > > dinkini.o: In function `__strsep_2c':
> >> > > /usr/include/bits/string2.h:1236: multiple definition of `__strsep_2c'
> >> > > bgm.o:/usr/include/bits/string2.h:1236: first defined here
> >> > > dinkini.o: In function `__strsep_3c':
> >> > > /usr/include/bits/string2.h:1264: multiple definition of `__strsep_3c'
> >> > > bgm.o:/usr/include/bits/string2.h:1264: first defined here
> >> > > dinkini.o: In function `wcstouq':
> >> > > /usr/include/wchar.h:585: multiple definition of `wcstouq'
> >> > > bgm.o:/usr/include/wchar.h:585: first defined here
> >> > > dinkini.o: In function `wcstoumax':
> >> > > /usr/include/inttypes.h:452: multiple definition of `wcstoumax'
> >> > > bgm.o:/usr/include/inttypes.h:452: first defined here
> >> > > dinkini.o: In function `wcstoq':
> >> > > /usr/include/wchar.h:580: multiple definition of `wcstoq'
> >> > > bgm.o:/usr/include/wchar.h:580: first defined here
> >> > > dinkini.o: In function `wcstoimax':
> >> > > /usr/include/inttypes.h:433: multiple definition of `wcstoimax'
> >> > > bgm.o:/usr/include/inttypes.h:433: first defined here
> >> > > dinkini.o: In function `wcstold':
> >> > > /usr/include/wchar.h:574: multiple definition of `wcstold'
> >> > > bgm.o:/usr/include/wchar.h:574: first defined here
> >> > > dinkini.o: In function `wcstof':
> >> > > /usr/include/wchar.h:569: multiple definition of `wcstof'
> >> > > bgm.o:/usr/include/wchar.h:569: first defined here
> >> > > dinkini.o: In function `wcstoul':
> >> > > /usr/include/wchar.h:562: multiple definition of `wcstoul'
> >> > > bgm.o:/usr/include/wchar.h:562: first defined here
> >> > > dinkini.o: In function `wcstol':
> >> > > /usr/include/wchar.h:558: multiple definition of `wcstol'
> >> > > bgm.o:/usr/include/wchar.h:558: first defined here
> >> > > dinkini.o: In function `wcstod':
> >> > > /usr/include/wchar.h:554: multiple definition of `wcstod'
> >> > > bgm.o:/usr/include/wchar.h:554: first defined here
> >> > > dinkini.o: In function `mbrlen':
> >> > > /usr/include/wchar.h:344: multiple definition of `mbrlen'
> >> > > bgm.o:/usr/include/wchar.h:344: first defined here
> >> > > dinkini.o: In function `wctob':
> >> > > /usr/include/wchar.h:337: multiple definition of `wctob'
> >> > > bgm.o:/usr/include/wchar.h:337: first defined here
> >> > > dinkini.o: In function `btowc':
> >> > > /usr/include/wchar.h:331: multiple definition of `btowc'
> >> > > bgm.o:/usr/include/wchar.h:331: first defined here
> >> > > dinkini.o: In function `toupper':
> >> > > /usr/include/ctype.h:199: multiple definition of `toupper'
> >> > > bgm.o:/usr/include/ctype.h:199: first defined here
> >> > > dinkini.o: In function `tolower':
> >> > > /usr/include/ctype.h:193: multiple definition of `tolower'
> >> > > bgm.o:/usr/include/ctype.h:193: first defined here
> >> > > dinkini.o: In function `strtoumax':
> >> > > /usr/include/inttypes.h:417: multiple definition of `strtoumax'
> >> > > bgm.o:/usr/include/inttypes.h:417: first defined here
> >> > > dinkini.o: In function `strtoull':
> >> > > /usr/include/stdlib.h:389: multiple definition of `strtoull'
> >> > > bgm.o:/usr/include/stdlib.h:389: first defined here
> >> > > dinkini.o: In function `strtouq':
> >> > > /usr/include/stdlib.h:373: multiple definition of `strtouq'
> >> > > bgm.o:/usr/include/stdlib.h:373: first defined here
> >> > > dinkini.o: In function `strtoimax':
> >> > > /usr/include/inttypes.h:399: multiple definition of `strtoimax'
> >> > > bgm.o:/usr/include/inttypes.h:399: first defined here
> >> > > dinkini.o: In function `strtoll':
> >> > > /usr/include/stdlib.h:383: multiple definition of `strtoll'
> >> > > ...
> >> > > etc
> >


reply via email to

[Prev in Thread] Current Thread [Next in Thread]