You are not logged in.

#1 2010-02-24 15:47:47

kaddy
Member
From: Perth, Western Australia
Registered: 2009-09-22
Posts: 192

build fail for gtkatlantic

hey archers
im trying to install this foss monopoly game called gtkatlantic, i've tried using yaourt and i've tried manually compiling the pkgbuild with makepkg -s

this is my error


[kaddy@Arch gtkatlantic]$ makepkg -s
==> Making package: gtkatlantic 0.4.2-1 x86_64 (Wed Feb 24 23:42:42 WST 2010)
==> Checking Runtime Dependencies...                                         
==> Checking Buildtime Dependencies...                                       
==> Retrieving Sources...                                                   
  -> Downloading gtkatlantic-0.4.2.tar.gz...                                 
--2010-02-24 23:42:42--  http://gtkatlantic.gradator.net/downloa … 4.2.tar.gz
Resolving gtkatlantic.gradator.net... 212.85.158.4                                             
Connecting to gtkatlantic.gradator.net|212.85.158.4|:80... connected.                           
HTTP request sent, awaiting response... 301 Moved Permanently                                   
Location: http://download.tuxfamily.org/gtkatlant … 4.2.tar.gz [following]
--2010-02-24 23:42:48--  http://download.tuxfamily.org/gtkatlant … 4.2.tar.gz
Resolving download.tuxfamily.org... 88.191.250.18                                                         
Connecting to download.tuxfamily.org|88.191.250.18|:80... connected.                                     
HTTP request sent, awaiting response... 200 OK                                                           
Length: 1046488 (1022K) [application/x-tar]                                                               
Saving to: "gtkatlantic-0.4.2.tar.gz.part"                                                               

100%[===========================================================================================>] 1,046,488    138K/s   in 7.4s   

2010-02-24 23:43:01 (138 KB/s) - "gtkatlantic-0.4.2.tar.gz.part" saved [1046488/1046488]

==> Validating source files with md5sums...
    gtkatlantic-0.4.2.tar.gz ... Passed   
==> Extracting Sources...                 
  -> Extracting gtkatlantic-0.4.2.tar.gz with bsdtar
==> Entering fakeroot environment...               
==> Starting build()...                             
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes       
checking for gawk... gawk                               
checking whether make sets $(MAKE)... yes               
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 build system type... x86_64-unknown-linux-gnu         
checking host system type... x86_64-unknown-linux-gnu           
checking for a sed that does not truncate output... /bin/sed   
checking for ld used by gcc... /usr/bin/ld                     
checking if the linker (/usr/bin/ld) is GNU ld... yes           
checking for /usr/bin/ld option to reload object files... -r   
checking for BSD-compatible nm... /usr/bin/nm -B               
checking whether ln -s works... yes                             
checking how to recognise dependent libraries... pass_all       
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 dlfcn.h usability... yes                               
checking dlfcn.h presence... yes                               
checking for dlfcn.h... yes                                     
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 how to run the C++ preprocessor... g++ -E             
checking for g77... no                                         
checking for f77... no                                         
checking for xlf... no                                         
checking for frt... no                                         
checking for pgf77... no                                       
checking for fort77... no                                       
checking for fl32... no                                         
checking for af77... no                                         
checking for f90... no                                         
checking for xlf90... no                                       
checking for pgf90... no                                       
checking for epcf90... no                                       
checking for f95... no                                         
checking for fort... no                                         
checking for xlf95... no                                       
checking for ifc... no                                         
checking for efc... no                                         
checking for pgf95... no                                       
checking for lf95... no                                         
checking for gfortran... no                                     
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no                             
checking the maximum length of command line arguments... 32768 
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs                                         
checking for ar... ar                                               
checking for ranlib... ranlib                                       
checking for strip... strip                                         
checking if gcc supports -fno-rtti -fno-exceptions... no             
checking for gcc option to produce PIC... -fPIC                     
checking if gcc PIC flag -fPIC works... yes                         
checking if gcc static flag -static works... yes                     
checking if gcc supports -c -o file.o... yes                         
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no                                   
checking dynamic linker characteristics... GNU/Linux ld.so                                 
checking how to hardcode library paths into programs... immediate                           
checking whether stripping libraries is possible... yes                                     
checking if libtool supports shared libraries... yes                                       
checking whether to build shared libraries... yes                                           
checking whether to build static libraries... yes                                           
configure: creating libtool                                                                 
appending configuration tag "CXX" to libtool                                               
checking for ld used by g++... /usr/bin/ld -m elf_x86_64                                   
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes                         
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC                                             
checking if g++ PIC flag -fPIC works... yes                                                 
checking if g++ static flag -static works... yes                                           
checking if g++ supports -c -o file.o... yes                                               
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so                                 
checking how to hardcode library paths into programs... immediate                           
appending configuration tag "F77" to libtool                                               
checking for pkg-config... /usr/bin/pkg-config                                             
checking pkg-config is at least version 0.9.0... yes                                       
checking for GTK... yes                                                                     
checking png.h usability... yes                                                             
checking png.h presence... yes                                                             
checking for png.h... yes                                                                   
checking for inet_aton in -lc... yes                                                       
checking for inet_aton in -lresolv... yes                                                   
configure: creating ./config.status                                                         
config.status: creating Makefile                                                           
config.status: creating src/Makefile                                                       
config.status: creating config.h                                                           
config.status: executing depfiles commands                                                 
make  all-recursive                                                                         
make[1]: Entering directory `/home/kaddy/Downloads/gtkatlantic/src/gtkatlantic-0.4.2'       
Making all in src                                                                           
make[2]: Entering directory `/home/kaddy/Downloads/gtkatlantic/src/gtkatlantic-0.4.2/src'   
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/gtk-2.0 -I/usr/lib/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/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/libxml2      -march=x86-64 -mtune=generic -O2 -pipe -MT callback.o -MD -MP -MF ".deps/callback.Tpo" -c -o callback.o callback.c; \                                                                                                           
        then mv -f ".deps/callback.Tpo" ".deps/callback.Po"; else rm -f ".deps/callback.Tpo"; exit 1; fi                             
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/gtk-2.0 -I/usr/lib/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/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/libxml2      -march=x86-64 -mtune=generic -O2 -pipe -MT client.o -MD -MP -MF ".deps/client.Tpo" -c -o client.o client.c; \                                                                                                                   
        then mv -f ".deps/client.Tpo" ".deps/client.Po"; else rm -f ".deps/client.Tpo"; exit 1; fi                                   
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/gtk-2.0 -I/usr/lib/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/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/libxml2      -march=x86-64 -mtune=generic -O2 -pipe -MT eng_conv.o -MD -MP -MF ".deps/eng_conv.Tpo" -c -o eng_conv.o eng_conv.c; \                                                                                                           
        then mv -f ".deps/eng_conv.Tpo" ".deps/eng_conv.Po"; else rm -f ".deps/eng_conv.Tpo"; exit 1; fi                             
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/gtk-2.0 -I/usr/lib/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/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/libxml2      -march=x86-64 -mtune=generic -O2 -pipe -MT eng_frame.o -MD -MP -MF ".deps/eng_frame.Tpo" -c -o eng_frame.o eng_frame.c; \                                                                                                       
        then mv -f ".deps/eng_frame.Tpo" ".deps/eng_frame.Po"; else rm -f ".deps/eng_frame.Tpo"; exit 1; fi                         
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/gtk-2.0 -I/usr/lib/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/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/libxml2      -march=x86-64 -mtune=generic -O2 -pipe -MT eng_main.o -MD -MP -MF ".deps/eng_main.Tpo" -c -o eng_main.o eng_main.c; \                                                                                                           
        then mv -f ".deps/eng_main.Tpo" ".deps/eng_main.Po"; else rm -f ".deps/eng_main.Tpo"; exit 1; fi                             
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/gtk-2.0 -I/usr/lib/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/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/libxml2      -march=x86-64 -mtune=generic -O2 -pipe -MT game.o -MD -MP -MF ".deps/game.Tpo" -c -o game.o game.c; \                                                                                                                           
        then mv -f ".deps/game.Tpo" ".deps/game.Po"; else rm -f ".deps/game.Tpo"; exit 1; fi                                         
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/gtk-2.0 -I/usr/lib/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/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/libxml2      -march=x86-64 -mtune=generic -O2 -pipe -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.. -I/usr/include/gtk-2.0 -I/usr/lib/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/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/libxml2      -march=x86-64 -mtune=generic -O2 -pipe -MT load.o -MD -MP -MF ".deps/load.Tpo" -c -o load.o load.c; \                                                                                                                           
        then mv -f ".deps/load.Tpo" ".deps/load.Po"; else rm -f ".deps/load.Tpo"; exit 1; fi                                         
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/gtk-2.0 -I/usr/lib/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/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/libxml2      -march=x86-64 -mtune=generic -O2 -pipe -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.. -I/usr/include/gtk-2.0 -I/usr/lib/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/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/libxml2      -march=x86-64 -mtune=generic -O2 -pipe -MT readpng.o -MD -MP -MF ".deps/readpng.Tpo" -c -o readpng.o readpng.c; \                                                                                                               
        then mv -f ".deps/readpng.Tpo" ".deps/readpng.Po"; else rm -f ".deps/readpng.Tpo"; exit 1; fi                               
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/gtk-2.0 -I/usr/lib/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/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/libxml2      -march=x86-64 -mtune=generic -O2 -pipe -MT xmlparse.o -MD -MP -MF ".deps/xmlparse.Tpo" -c -o xmlparse.o xmlparse.c; \                                                                                                           
        then mv -f ".deps/xmlparse.Tpo" ".deps/xmlparse.Po"; else rm -f ".deps/xmlparse.Tpo"; exit 1; fi                             
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/gtk-2.0 -I/usr/lib/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/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/libxml2      -march=x86-64 -mtune=generic -O2 -pipe -MT display.o -MD -MP -MF ".deps/display.Tpo" -c -o display.o display.c; \                                                                                                               
        then mv -f ".deps/display.Tpo" ".deps/display.Po"; else rm -f ".deps/display.Tpo"; exit 1; fi                               
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/gtk-2.0 -I/usr/lib/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/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/libxml2      -march=x86-64 -mtune=generic -O2 -pipe -MT trade.o -MD -MP -MF ".deps/trade.Tpo" -c -o trade.o trade.c; \
        then mv -f ".deps/trade.Tpo" ".deps/trade.Po"; else rm -f ".deps/trade.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/gtk-2.0 -I/usr/lib/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/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/libxml2      -march=x86-64 -mtune=generic -O2 -pipe -MT theme.o -MD -MP -MF ".deps/theme.Tpo" -c -o theme.o theme.c; \
        then mv -f ".deps/theme.Tpo" ".deps/theme.Po"; else rm -f ".deps/theme.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/gtk-2.0 -I/usr/lib/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/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/libxml2      -march=x86-64 -mtune=generic -O2 -pipe -MT parser.o -MD -MP -MF ".deps/parser.Tpo" -c -o parser.o parser.c; \
        then mv -f ".deps/parser.Tpo" ".deps/parser.Po"; else rm -f ".deps/parser.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc  -march=x86-64 -mtune=generic -O2 -pipe  -Wl,--hash-style=gnu -Wl,--as-needed -o gtkatlantic  callback.o client.o eng_conv.o eng_frame.o eng_main.o game.o interface.o load.o main.o readpng.o xmlparse.o display.o trade.o theme.o parser.o -lgtk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lfreetype -lfontconfig -lgdk-x11-2.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lxml2   -lpng
mkdir .libs
gcc -march=x86-64 -mtune=generic -O2 -pipe -Wl,--hash-style=gnu -Wl,--as-needed -o gtkatlantic callback.o client.o eng_conv.o eng_frame.o eng_main.o game.o interface.o load.o main.o readpng.o xmlparse.o display.o trade.o theme.o parser.o  -lgtk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lfreetype -lfontconfig -lgdk-x11-2.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lxml2 -lpng
readpng.o: In function `readpng_init':
readpng.c:(.text+0x51e): undefined reference to `png_check_sig'
collect2: ld returned 1 exit status
make[2]: *** [gtkatlantic] Error 1
make[2]: Leaving directory `/home/kaddy/Downloads/gtkatlantic/src/gtkatlantic-0.4.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/kaddy/Downloads/gtkatlantic/src/gtkatlantic-0.4.2'
make: *** [all] Error 2
==> ERROR: Build Failed.
    Aborting...





any ideas?


thanx

Offline

#2 2010-02-24 16:44:14

hbekel
Member
Registered: 2008-10-04
Posts: 311

Re: build fail for gtkatlantic

png_check_sig has been removed in libpng 1.4.

See http://www.libpng.org/pub/png/src/libpn … ummary.txt -> i)

Offline

#3 2010-02-24 17:21:25

kaddy
Member
From: Perth, Western Australia
Registered: 2009-09-22
Posts: 192

Re: build fail for gtkatlantic

ahhhhh true... a friend of mine suggested it could of been libpng at fault.....
what is the best way to resolve this?
for some reason, i have the old and new version of libpng on my system yikes   
I don't suppose removing the new one would be worth it
because i got a hell of alot of programs that are using it... pacman won't let me remove it unless i remove all of the programs first from what I saw when I tried....

is there a workaround anybody know of?

Offline

#4 2010-02-24 19:00:23

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: build fail for gtkatlantic

make a patch for gtkatlantic

Offline

#5 2010-02-25 00:53:18

kaddy
Member
From: Perth, Western Australia
Registered: 2009-09-22
Posts: 192

Re: build fail for gtkatlantic

I wish i knew how.... lol

hopefully the package maintainer see's my post in the AUR

Offline

#6 2010-02-25 04:56:02

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: build fail for gtkatlantic

The package was orphaned. Anyway, try it again, I've fixed it. smile

Offline

#7 2010-02-25 06:43:44

kaddy
Member
From: Perth, Western Australia
Registered: 2009-09-22
Posts: 192

Re: build fail for gtkatlantic

hey, Thanx Snowman for your time and effort... it works now

any chance you can give a quick briefing on how you fixed it? I wanna learn more about this sort of stuff...

thanx again for your effort smile

Offline

#8 2010-02-25 07:13:33

kaddy
Member
From: Perth, Western Australia
Registered: 2009-09-22
Posts: 192

Re: build fail for gtkatlantic

oh, if you have time... anychance you can fix the kde version too? Kapitalist.... smile

Offline

#9 2010-02-25 07:18:12

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: build fail for gtkatlantic

The changes in the new libpng and tips on how to change old code are here:
http://libpng.sourceforge.net/ANNOUNCE-1.4.0.txt

untar the sources:
tar -xvf gtkatlantic-0.4.2.tar.gz

make a copy:
cp -r gtkatlantic-0.4.2 gtkatlantic-0.4.2-orig

do the changes that needs to be done in gtkatlantic-0.4.2 then create the patch:
diff -Naur gtkatlantic-0.4.2-orig gtkatlantic-0.4.2 > libpng14.patch

modify PKGBUILD by adding patch in sources array and add a line to apply it.

Offline

Board footer

Powered by FluxBB