compiling error

Discussion of development and patch submission.
Post Reply
te_lanus
Posts: 64
Joined: Tue 28 Jul, 2015 4:47 am

compiling error

Post by te_lanus » Thu 11 Jan, 2018 9:08 am

with the latest t1000 addition pcem seems no longer able to compile on linux (ubuntu 16.04)
pcem-keyboard_xt.o: In function `keyboard_xt_adddata':
keyboard_xt.c:(.text+0x11e): undefined reference to `t1000_syskey'
keyboard_xt.c:(.text+0x140): undefined reference to `t1000_syskey'
keyboard_xt.c:(.text+0x15a): undefined reference to `t1000_syskey'
keyboard_xt.c:(.text+0x172): undefined reference to `t1000_syskey'
keyboard_xt.c:(.text+0x18a): undefined reference to `t1000_syskey'
pcem-keyboard_xt.o:keyboard_xt.c:(.text+0x1a2): more undefined references to `t1000_syskey' follow
pcem-model.o:(.data+0x948): undefined reference to `xt_t1000_init'
pcem-model.o:(.data+0x950): undefined reference to `t1000_device'
pcem-nvr.o: In function `loadnvr':
nvr.c:(.text+0x743): undefined reference to `tc8521_loadnvr'
nvr.c:(.text+0x74a): undefined reference to `t1000_configsys_loadnvr'
pcem-nvr.o: In function `savenvr':
nvr.c:(.text+0xe53): undefined reference to `tc8521_savenvr'
nvr.c:(.text+0xe5a): undefined reference to `t1000_configsys_savenvr'
pcem-nvr.o: In function `loadnvr':
nvr.c:(.text+0x752): undefined reference to `t1000_emsboard_loadnvr'
pcem-nvr.o: In function `savenvr':
nvr.c:(.text+0xe62): undefined reference to `t1000_emsboard_savenvr'
pcem-video.o: In function `video_init':
video.c:(.text+0x311): undefined reference to `t1000_device'
collect2: error: ld returned 1 exit status
Makefile:632: recipe for target 'pcem' failed
make[1]: *** [pcem] Error 1

User avatar
SarahWalker
Site Admin
Posts: 1442
Joined: Thu 24 Apr, 2014 4:18 pm

Re: compiling error

Post by SarahWalker » Thu 11 Jan, 2018 11:00 am

Run autoreconf.

jznomoney
Posts: 56
Joined: Sat 06 Dec, 2014 9:11 pm

Re: compiling error

Post by jznomoney » Thu 11 Jan, 2018 12:50 pm

This happens when compiling on windows too.

szadycbr
Posts: 215
Joined: Mon 21 Nov, 2016 6:23 pm

Re: compiling error

Post by szadycbr » Thu 11 Jan, 2018 1:16 pm

Strange, i just did newest , without ./configure , right from src folder : make -f Makefile.linux64-wx-sdl2 , and it compile without any problems. (debian 9 "stretch")

jznomoney
Posts: 56
Joined: Sat 06 Dec, 2014 9:11 pm

Re: compiling error

Post by jznomoney » Thu 11 Jan, 2018 3:10 pm

keyboard_xt.o:keyboard_xt.c:(.text+0x12e): undefined reference to `t1000_syskey'
keyboard_xt.o:keyboard_xt.c:(.text+0x158): undefined reference to `t1000_syskey'
keyboard_xt.o:keyboard_xt.c:(.text+0x178): undefined reference to `t1000_syskey'
keyboard_xt.o:keyboard_xt.c:(.text+0x198): undefined reference to `t1000_syskey'
keyboard_xt.o:keyboard_xt.c:(.text+0x1b5): undefined reference to `t1000_syskey'
keyboard_xt.o:keyboard_xt.c:(.text+0x1d4): more undefined references to `t1000_syskey' follow
model.o:model.c:(.data+0x77c): undefined reference to `xt_t1000_init'
model.o:model.c:(.data+0x780): undefined reference to `t1000_device'
nvr.o:nvr.c:(.text+0x782): undefined reference to `tc8521_loadnvr'
nvr.o:nvr.c:(.text+0x787): undefined reference to `t1000_configsys_loadnvr'
nvr.o:nvr.c:(.text+0xfa1): undefined reference to `tc8521_savenvr'
nvr.o:nvr.c:(.text+0xfa6): undefined reference to `t1000_configsys_savenvr'
nvr.o:nvr.c:(.text+0x791): undefined reference to `t1000_emsboard_loadnvr'
nvr.o:nvr.c:(.text+0xfaf): undefined reference to `t1000_emsboard_savenvr'
video.o:video.c:(.text+0x323): undefined reference to `t1000_device'
collect2.exe: error: ld returned 1 exit status
mingw32-make: *** [Makefile.msys2-wx-sdl2-network:34: PCem-wx-SDL2.exe] Error 1

That is what I get in Windows.

User avatar
SarahWalker
Site Admin
Posts: 1442
Joined: Thu 24 Apr, 2014 4:18 pm

Re: compiling error

Post by SarahWalker » Thu 11 Jan, 2018 6:04 pm

Makefile.msys2-wx-sdl2-network isn't one of the makefiles provided with PCem...

shermanp
Posts: 37
Joined: Sat 18 Feb, 2017 2:09 am

Re: compiling error

Post by shermanp » Thu 11 Jan, 2018 8:51 pm

Oops, my bad. I forgot to check whether the latest commit added new files to compile and update the msys2 makefile accordingly.

I'll do this and update the msys2 thread.

te_lanus
Posts: 64
Joined: Tue 28 Jul, 2015 4:47 am

Re: compiling error

Post by te_lanus » Fri 12 Jan, 2018 3:56 am

SarahWalker wrote:
Thu 11 Jan, 2018 11:00 am
Run autoreconf.
thanx that helped :D

Post Reply