Page 1 of 1

compiling error

Posted: Thu 11 Jan, 2018 9:08 am
by te_lanus
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

Re: compiling error

Posted: Thu 11 Jan, 2018 11:00 am
by SarahWalker
Run autoreconf.

Re: compiling error

Posted: Thu 11 Jan, 2018 12:50 pm
by jznomoney
This happens when compiling on windows too.

Re: compiling error

Posted: Thu 11 Jan, 2018 1:16 pm
by szadycbr
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")

Re: compiling error

Posted: Thu 11 Jan, 2018 3:10 pm
by jznomoney
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.

Re: compiling error

Posted: Thu 11 Jan, 2018 6:04 pm
by SarahWalker
Makefile.msys2-wx-sdl2-network isn't one of the makefiles provided with PCem...

Re: compiling error

Posted: Thu 11 Jan, 2018 8:51 pm
by shermanp
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.

Re: compiling error

Posted: Fri 12 Jan, 2018 3:56 am
by te_lanus
SarahWalker wrote:
Thu 11 Jan, 2018 11:00 am
Run autoreconf.
thanx that helped :D

Re: compiling error

Posted: Fri 02 Mar, 2018 2:35 pm
by te_lanus
I get the following error today, not sure why.

Code: Select all

wx-createdisc.cc: In function ‘int creatediscimage_dlgproc(void*, int, wxInt32, wxIntPtr)’:
wx-createdisc.cc:78:49: error: ‘uint8_t’ was not declared in this scope
                                                 uint8_t sector[512];
                                                 ^
wx-createdisc.cc:81:56: error: ‘sector’ was not declared in this scope
                                                 memset(sector, 0, 512);

Re: compiling error

Posted: Fri 02 Mar, 2018 4:02 pm
by JohnElliott
Try adding

Code: Select all

#include <stdint.h>
at the top of wx-createdisc.cc .