VOGONS


First post, by boyofdestiny

User metadata
Rank Newbie
Rank
Newbie

Hi, I hope this is the proper section, since everyone is talking about 0.65:) I also tried the current CVS, same errors.

Anyway, running ubuntu dapper (amd64), (let me know if you need more information), this is the output:

/usr/lib/gcc/x86_64-linux-gnu/4.0.3/../../../../lib64/crt1.o: In function `_start':../sysdeps/x86_64/elf/start.S:109: undefined reference to `main'
dosbox.o: In function `Normal_Loop':/home/safari/src/dosbox-0.65/src/dosbox.cpp:123: undefined reference to `PIC_RunQueue()'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:124: undefined reference to `cpudecoder'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:127: undefined reference to `CallBack_Handlers'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:134: undefined reference to `GFX_Events()'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:136: undefined reference to `TIMER_AddTick()'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:161: undefined reference to `CPU_CycleAuto'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:166: undefined reference to `CPU_CycleMax'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:166: undefined reference to `CPU_CycleMax'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:168: undefined reference to `CPU_CycleMax'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:168: undefined reference to `CPU_CycleMax'
dosbox.o: In function `DOSBOX_Init()':/home/safari/src/dosbox-0.65/src/dosbox.cpp:239: undefined reference to `Config::AddSection_prop(char const*, void (*)(Section*), bool)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:240: undefined reference to `Section_prop::Add_string(char const*, char*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:241: undefined reference to `Section_prop::Add_string(char const*, char*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:242: undefined reference to `Section_prop::Add_string(char const*, char*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:248: undefined reference to `IO_Init(Section*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:249: undefined reference to `PAGING_Init(Section*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:250: undefined reference to `MEM_Init(Section*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:251: undefined reference to `HARDWARE_Init(Section*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:252: undefined reference to `Section_prop::Add_int(char const*, int)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:253: undefined reference to `CALLBACK_Init(Section*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:254: undefined reference to `PIC_Init(Section*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:255: undefined reference to `PROGRAMS_Init(Section*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:256: undefined reference to `TIMER_Init(Section*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:257: undefined reference to `CMOS_Init(Section*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:264: undefined reference to `MSG_Add(char const*, char const*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:266: undefined reference to `RENDER_Init(Section*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:266: undefined reference to `Config::AddSection_prop(char const*, void (*)(Section*), bool)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:267: undefined reference to `Section_prop::Add_int(char const*, int)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:268: undefined reference to `Section_prop::Add_bool(char const*, bool)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:269: undefined reference to `Section_prop::Add_string(char const*, char*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:275: undefined reference to `MSG_Add(char const*, char const*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:277: undefined reference to `CPU_Init(Section*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:277: undefined reference to `Config::AddSection_prop(char const*, void (*)(Section*), bool)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:278: undefined reference to `Section_prop::Add_string(char const*, char*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:279: undefined reference to `Section_prop::Add_string(char const*, char*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:280: undefined reference to `Section_prop::Add_int(char const*, int)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:281: undefined reference to `Section_prop::Add_int(char const*, int)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:294: undefined reference to `MSG_Add(char const*, char const*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:296: undefined reference to `FPU_Init(Section*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:298: undefined reference to `DMA_Init(Section*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:299: undefined reference to `VGA_Init(Section*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:300: undefined reference to `KEYBOARD_Init(Section*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:302: undefined reference to `MIXER_Init(Section*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:302: undefined reference to `Config::AddSection_prop(char const*, void (*)(Section*), bool)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:303: undefined reference to `Section_prop::Add_bool(char const*, bool)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:304: undefined reference to `Section_prop::Add_int(char const*, int)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:305: undefined reference to `Section_prop::Add_int(char const*, int)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:306: undefined reference to `Section_prop::Add_int(char const*, int)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:315: undefined reference to `MSG_Add(char const*, char const*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:317: undefined reference to `MIDI_Init(Section*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:317: undefined reference to `Config::AddSection_prop(char const*, void (*)(Section*), bool)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:318: undefined reference to `MPU401_Init(Section*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:319: undefined reference to `Section_prop::Add_string(char const*, char*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:320: undefined reference to `Section_prop::Add_string(char const*, char*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:321: undefined reference to `Section_prop::Add_string(char const*, char*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:329: undefined reference to `MSG_Add(char const*, char const*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:335: undefined reference to `SBLASTER_Init(Section*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:335: undefined reference to `Config::AddSection_prop(char const*, void (*)(Section*), bool)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:336: undefined reference to `Section_prop::Add_string(char const*, char*)'
Show last 75 lines
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:337: undefined reference to `Section_prop::Add_hex(char const*, int)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:338: undefined reference to `Section_prop::Add_int(char const*, int)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:339: undefined reference to `Section_prop::Add_int(char const*, int)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:340: undefined reference to `Section_prop::Add_int(char const*, int)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:341: undefined reference to `Section_prop::Add_bool(char const*, bool)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:342: undefined reference to `Section_prop::Add_string(char const*, char*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:343: undefined reference to `Section_prop::Add_int(char const*, int)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:353: undefined reference to `MSG_Add(char const*, char const*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:355: undefined reference to `GUS_Init(Section*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:355: undefined reference to `Config::AddSection_prop(char const*, void (*)(Section*), bool)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:356: undefined reference to `Section_prop::Add_bool(char const*, bool)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:357: undefined reference to `Section_prop::Add_int(char const*, int)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:358: undefined reference to `Section_prop::Add_hex(char const*, int)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:359: undefined reference to `Section_prop::Add_int(char const*, int)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:360: undefined reference to `Section_prop::Add_int(char const*, int)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:361: undefined reference to `Section_prop::Add_int(char const*, int)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:362: undefined reference to `Section_prop::Add_int(char const*, int)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:363: undefined reference to `Section_prop::Add_string(char const*, char*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:374: undefined reference to `MSG_Add(char const*, char const*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:376: undefined reference to `PCSPEAKER_Init(Section*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:376: undefined reference to `Config::AddSection_prop(char const*, void (*)(Section*), bool)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:377: undefined reference to `Section_prop::Add_bool(char const*, bool)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:378: undefined reference to `Section_prop::Add_int(char const*, int)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:379: undefined reference to `TANDYSOUND_Init(Section*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:380: undefined reference to `Section_prop::Add_string(char const*, char*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:381: undefined reference to `Section_prop::Add_int(char const*, int)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:382: undefined reference to `DISNEY_Init(Section*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:383: undefined reference to `Section_prop::Add_bool(char const*, bool)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:392: undefined reference to `MSG_Add(char const*, char const*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:394: undefined reference to `BIOS_Init(Section*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:394: undefined reference to `Config::AddSection_prop(char const*, void (*)(Section*), bool)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:400: undefined reference to `MSG_Add(char const*, char const*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:402: undefined reference to `INT10_Init(Section*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:403: undefined reference to `MOUSE_Init(Section*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:404: undefined reference to `JOYSTICK_Init(Section*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:405: undefined reference to `Section_prop::Add_string(char const*, char*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:408: undefined reference to `SERIAL_Init(Section*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:408: undefined reference to `Config::AddSection_prop(char const*, void (*)(Section*), bool)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:409: undefined reference to `Section_prop::Add_string(char const*, char*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:410: undefined reference to `Section_prop::Add_string(char const*, char*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:411: undefined reference to `Section_prop::Add_string(char const*, char*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:412: undefined reference to `Section_prop::Add_string(char const*, char*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:422: undefined reference to `MSG_Add(char const*, char const*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:426: undefined reference to `DOS_Init(Section*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:426: undefined reference to `Config::AddSection_prop(char const*, void (*)(Section*), bool)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:427: undefined reference to `XMS_Init(Section*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:428: undefined reference to `Section_prop::Add_bool(char const*, bool)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:429: undefined reference to `EMS_Init(Section*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:430: undefined reference to `Section_prop::Add_bool(char const*, bool)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:431: undefined reference to `Section_prop::Add_string(char const*, char*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:436: undefined reference to `MSG_Add(char const*, char const*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:438: undefined reference to `MSCDEX_Init(Section*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:440: undefined reference to `IPX_Init(Section*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:440: undefined reference to `Config::AddSection_prop(char const*, void (*)(Section*), bool)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:441: undefined reference to `Section_prop::Add_bool(char const*, bool)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:444: undefined reference to `MSG_Add(char const*, char const*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:448: undefined reference to `AUTOEXEC_Init(Section*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:448: undefined reference to `Config::AddSection_line(char const*, void (*)(Section*))'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:451: undefined reference to `MSG_Add(char const*, char const*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:452: undefined reference to `SHELL_Init()'
dosbox.o: In function `DOSBOX_RealInit':/home/safari/src/dosbox-0.65/src/dosbox.cpp:213: undefined reference to `MSG_Init(Section_prop*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:215: undefined reference to `MAPPER_AddHandler(void (*)(bool), MapKeys, unsigned long, char*, char*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:220: undefined reference to `CommandLine::FindString(char*, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, bool)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:221: undefined reference to `Section_prop::Get_string(char const*)'
:/home/safari/src/dosbox-0.65/src/dosbox.cpp:227: undefined reference to `GFX_ShowMsg(char*, ...)'
dosbox.o: In function `DOSBOX_Init()':/home/safari/src/dosbox-0.65/src/dosbox.cpp:452: undefined reference to `Config::SetStartUp(void (*)())'
collect2: ld returned 1 exit status
make[3]: *** [dosbox] Error 1
make[3]: Leaving directory `/home/safari/src/dosbox-0.65/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/safari/src/dosbox-0.65/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/safari/src/dosbox-0.65'
make: *** [all-recursive-am] Error 2

Thank you for your consideration, I will try to compile it on the 32-bit version of ubuntu dapper a bit later... .63 works fine on both (32 and 64-bit dapper).

Reply 1 of 7, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

please post the linking command.
It's directly above the first errror you posted.

Water flows down the stream
How to ask questions the smart way!

Reply 2 of 7, by boyofdestiny

User metadata
Rank Newbie
Rank
Newbie

Here it is 😀

g++ -DHAVE_CONFIG_H -I. -I. -I..  -I../include -I/usr/include/SDL -D_REENTRANT -g -O2 -c dosbox.cpp
g++ -g -O2 -o dosbox dosbox.o -lSDL_sound -lasound -lm -ldl -lpthread -L/usr/lib -lSDL -lpng -lz -lSDL_net -lGL
/usr/lib/gcc/x86_64-linux-gnu/4.0.3/../../../../lib64/crt1.o: In function `_start':../sysdeps/x86_64/elf/start.S:109: undefined reference to `main'
dosbox.o: In function `Normal_Loop':/home/safari/src/dosbox-0.65/src/dosbox.cpp:123: undefined reference to `PIC_RunQueue()'

Thanks, I'm still a little new to Linux 😀

Here is the output of gcc -v in case that helps

gcc -v
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.0 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-java-awt=gtk-default --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre --enable-mpfr --disable-werror --enable-checking=release x86_64-linux-gnu
Thread model: posix
gcc version 4.0.3 (Ubuntu 4.0.3-1ubuntu3)

Reply 3 of 7, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

that link command is just wrong.
Only dosbox.o is linked. There should be a a lot of other files there.
here is what mine looks like

g++  -O2   -o dosbox  dosbox.o cpu/libcpu.a debug/libdebug.a dos/libdos.a fpu/libfpu.a  hardware/libhardware.a gui/libgui.a ints/libints.a misc/libmisc.a shell/libshell.a hardware/serialport/libserial.a  -lasound -lm -ldl -lpthread -L/usr/lib -lSDL -lcurses -lpng -lz -lGL

Water flows down the stream
How to ask questions the smart way!

Reply 4 of 7, by boyofdestiny

User metadata
Rank Newbie
Rank
Newbie

I see... Is there something I can do to correct this?

I just do the basic ./autogen.sh, configure, make...

Are there any errors to look for?

./autogen.sh Generating build information using aclocal, autoheader, automake and autoconf This may take a while ... automake: c […]
Show full quote

./autogen.sh
Generating build information using aclocal, autoheader, automake and autoconf
This may take a while ...
automake: configure.in: version `' doesn't follow Gnits standards
src/Makefile.am:8: dosbox_LDADD defined both conditionally and unconditionally
Now you are ready to run ./configure.

Thanks for your patience, just learning as I go with this...

Reply 5 of 7, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

hmm yes that looks like a problem that

src/Makefile.am:8: dosbox_LDADD defined both conditionally and unconditionally

you might want to do without the ./autogen.sh and use the original 0.65 source.

Water flows down the stream
How to ask questions the smart way!

Reply 6 of 7, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

It would be interresting to know your version of automake though. Then I can fix the problem for a next version of dosbox.

Water flows down the stream
How to ask questions the smart way!

Reply 7 of 7, by boyofdestiny

User metadata
Rank Newbie
Rank
Newbie

That solved it. 😀
Looks awesome!

Thanks again!

As for automake, I have 1.4,1.7,1.8, and 1.9 installed. I'm not sure which it defaults to...