Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
advancemame-3.7 won't build
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
andrewwalker27
l33t
l33t


Joined: 27 Jun 2005
Posts: 660

PostPosted: Sat May 05, 2018 11:25 pm    Post subject: advancemame-3.7 won't build Reply with quote

I've tried to update to advancemame-3.7 but the ebuild seems to fail. The fist error I got was as follows
Code:
checking for endwin in -lncurses... yes
checking for x86_64-pc-linux-gnu-freetype-config... no
configure: error: the x86_64-pc-linux-gnu-freetype-config tool is missing

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/games-emulation/advancemame-3.7/work/advancemame-3.7/config.log

which seems to be due to the truetype use flag being set. I set this to -truetype to see if that fixed the build issue only to come upon a second issue that is beyond me,
Code:
nd/linux/vfb.o -lncurses  -Wl,-O1 -Wl,--as-needed -lm -o obj/cfg/linux/blend/advcfg
x86_64-pc-linux-gnu-gcc obj/v/linux/blend/lib/portable.o obj/v/linux/blend/lib/snstring.o obj/v/linux/blend/lib/log.o obj/v/linux/blend/lib/video.o obj/v/linux/blend/lib/measure.o obj/v/linux/blend/lib/rgb.o obj/v/linux/blend/lib/conf.o obj/v/linux/blend/lib/incstr.o obj/v/linux/blend/lib/videoio.o obj/v/linux/blend/lib/update.o obj/v/linux/blend/lib/generate.o obj/v/linux/blend/lib/crtc.o obj/v/linux/blend/lib/crtcbag.o obj/v/linux/blend/lib/monitor.o obj/v/linux/blend/lib/device.o obj/v/linux/blend/lib/gtf.o obj/v/linux/blend/lib/inputall.o obj/v/linux/blend/lib/inputdrv.o obj/v/linux/blend/lib/videoall.o obj/v/linux/blend/lib/error.o obj/v/linux/blend/blit/blit.o obj/v/linux/blend/blit/clear.o obj/v/linux/blend/blit/slice.o obj/v/linux/blend/v/v.o obj/v/linux/blend/v/draw.o obj/v/linux/blend/linux/file.o obj/v/linux/blend/linux/target.o obj/v/linux/blend/linux/os.o obj/v/linux/blend/linux/vcurses.o obj/v/linux/blend/linux/itty.o obj/v/linux/blend/linux/vfb.o -lncurses  -Wl,-O1 -Wl,--as-needed -lm -o obj/v/linux/blend/advv
/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: obj/v/linux/blend/linux/vcurses.o: undefined reference to symbol 'LINES'
/lib64/libtinfo.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [advance/v.mak:266: obj/v/linux/blend/advv] Error 1
make: *** Waiting for unfinished jobs....
/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: obj/cfg/linux/blend/linux/vcurses.o: undefined reference to symbol 'LINES'
/lib64/libtinfo.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [advance/cfg.mak:269: obj/cfg/linux/blend/advcfg] Error 1
 * ERROR: games-emulation/advancemame-3.7::gentoo failed (compile phase):


From what I've read, this is a ggc flags error but I didn't understand what the problem is and how you go about fixing it.
Don't suppose anyone wants to enlighten me by any chance?

Cheers.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30914
Location: here

PostPosted: Sun May 06, 2018 9:02 am    Post subject: Reply with quote

It's seems a sys-libs/ncurses[tinfo] problem.
Try this patch, I'm not sure if work not tested
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
andrewwalker27
l33t
l33t


Joined: 27 Jun 2005
Posts: 660

PostPosted: Fri May 18, 2018 8:47 pm    Post subject: Reply with quote

Well the patch got past that bit, now on to the next error!
Code:
/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in object.
collect2: error: ld returned 1 exit status
make: *** [advance/cfg.mak:269: obj/cfg/linux/blend/advcfg] Error 1
make: *** Waiting for unfinished jobs....
/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: obj/v/linux/blend/linux/vcurses.o: warning: relocation against `COLOR_PAIRS' in read-only section `.text'
obj/v/linux/blend/linux/os.o: In function `os_inner_init':
os.c:(.text+0x705): undefined reference to `initscr'
os.c:(.text+0x70a): undefined reference to `start_color'
os.c:(.text+0x711): undefined reference to `cbreak'
os.c:(.text+0x716): undefined reference to `noecho'
os.c:(.text+0x71b): undefined reference to `nonl'
obj/v/linux/blend/linux/os.o: In function `os_inner_done':
os.c:(.text+0x8f1): undefined reference to `endwin'
obj/v/linux/blend/linux/vcurses.o: In function `curses_init':
vcurses.c:(.text+0x1cd): undefined reference to `COLS'
vcurses.c:(.text+0x1e4): undefined reference to `LINES'
obj/v/linux/blend/linux/vcurses.o: In function `curses_mode_done':
vcurses.c:(.text+0x253): undefined reference to `stdscr'
vcurses.c:(.text+0x25d): undefined reference to `scrollok'
vcurses.c:(.text+0x262): undefined reference to `endwin'
obj/v/linux/blend/linux/vcurses.o: In function `curses_wait_vsync':
vcurses.c:(.text+0x2c3): undefined reference to `stdscr'
vcurses.c:(.text+0x2d2): undefined reference to `wmove'
vcurses.c:(.text+0x366): undefined reference to `stdscr'
vcurses.c:(.text+0x36e): undefined reference to `waddch'
vcurses.c:(.text+0x399): undefined reference to `stdscr'
vcurses.c:(.text+0x3bd): undefined reference to `COLOR_PAIRS'
vcurses.c:(.text+0x3eb): undefined reference to `init_pair'
vcurses.c:(.text+0x455): undefined reference to `stdscr'
obj/v/linux/blend/linux/vcurses.o: In function `curses_mode_set':
vcurses.c:(.text+0x527): undefined reference to `stdscr'
vcurses.c:(.text+0x52e): undefined reference to `scrollok'
obj/v/linux/blend/linux/vcurses.o: In function `curses_wait_vsync':
vcurses.c:(.text+0x3ac): undefined reference to `wrefresh'
vcurses.c:(.text+0x45a): undefined reference to `wrefresh'
/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in object.
collect2: error: ld returned 1 exit status
make: *** [advance/v.mak:266: obj/v/linux/blend/advv] Error 1
 * ERROR: games-emulation/advancemame-3.7::gentoo failed (compile phase):


I found a web page that said this about the error
Quote:

This means that you are including an object in the shared library
which was compiled without the -fpic option.


Not sure what it means though, is it a gcc flag that's causing the issue?
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6747

PostPosted: Sat May 19, 2018 6:26 am    Post subject: Reply with quote

andrewwalker27 wrote:
Not sure what it means though, is it a gcc flag that's causing the issue?

pie is enabled by default w/ gcc-7.3 on the 17.0 profile. Do you have recompiled all your static libs when you changed the profile?
Back to top
View user's profile Send private message
andrewwalker27
l33t
l33t


Joined: 27 Jun 2005
Posts: 660

PostPosted: Thu May 24, 2018 11:45 pm    Post subject: Reply with quote

Well I've tried running through the entire gcc upgrade wiki and rebuilt static libs but no change. I did notice this when I tried installing advancemame again
Code:
>>> Emerging (1 of 1) games-emulation/advancemame-3.7::gentoo
 * advancemame-3.7.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                                                                         [ ok ]
 * advancemame-3.7-use_pkgconfig_for_freetype_and_sdl.patch BLAKE2B SHA512 size ;-) ...                                                                                                       [ ok ]
>>> Unpacking source...
>>> Unpacking advancemame-3.7.tar.gz to /var/tmp/portage/games-emulation/advancemame-3.7/work
>>> Unpacking advancemame-3.7-use_pkgconfig_for_freetype_and_sdl.patch to /var/tmp/portage/games-emulation/advancemame-3.7/work
unpack advancemame-3.7-use_pkgconfig_for_freetype_and_sdl.patch: file format not recognized. Ignoring.
>>> Source unpacked in /var/tmp/portage/games-emulation/advancemame-3.7/work
>>> Preparing source in /var/tmp/portage/games-emulation/advancemame-3.7/work/advancemame-3.7 ...
 * Applying advancemame-1.2-pic.patch ...                                                                                                                                                     [ ok ]
 * Applying advancemame-1.2-verboselog.patch ...                                                                                                                                              [ ok ]
 * Applying advancemame-3.7-move_aclocal_to_acinclude.patch ...                                                                                                                               [ ok ]
 * Applying advancemame-3.7-use_pkgconfig_for_freetype_and_sdl.patch ...                                                                                                                      [ ok ]
 * Applying advancemame-3.7-remove_static_configure_option.patch ...                                                                                                                          [ ok ]
 * Running eautoreconf in '/var/tmp/portage/games-emulation/advancemame-3.7/work/advancemame-3.7' ...
 * Running aclocal ...                                                                                                                                                                        [ ok ]
 * Running autoconf --force ...                                                                                                                                                               [ ok ]
 * Running autoheader ...                                                                                                                                                                     [ ok ]
 * Running elibtoolize in: advancemame-3.7/
>>> Source prepared.

So it looks like the patch is now downloaded and installed as part of the ebuild. I still get the same error though.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum