Skip to content

Linking stage of build process fails on my arch linux machine #452

Description

@signedXNOR

make output, at the linking stage:

  CXXLD    nestopia
/usr/bin/ld: /tmp/ccBxsuDh.ltrans19.ltrans.o: in function `InputManager::event(SDL_Event&)':
/path-to-nestopia-source/nestopia/source/fltkui/inputmanager.cpp:420:(.text+0x886e): undefined reference to `SDL_JoystickGetPlayerIndex'
/usr/bin/ld: /path-to-nestopia-source/nestopia/source/fltkui/inputmanager.cpp:361:(.text+0x8a7e): undefined reference to `SDL_JoystickGetPlayerIndex'
/usr/bin/ld: /path-to-nestopia-source/nestopia/source/fltkui/inputmanager.cpp:480:(.text+0x8b0a): undefined reference to `SDL_JoystickGetPlayerIndex'
/usr/bin/ld: /path-to-nestopia-source/nestopia/source/fltkui/inputmanager.cpp:442:(.text+0x8c3f): undefined reference to `SDL_JoystickGetPlayerIndex'
/usr/bin/ld: /path-to-nestopia-source/nestopia/source/fltkui/inputmanager.cpp:461:(.text+0x8ebd): undefined reference to `SDL_JoystickGetPlayerIndex'
/usr/bin/ld: /tmp/ccBxsuDh.ltrans19.ltrans.o:/path-to-nestopia-source/nestopia/source/fltkui/inputmanager.cpp:451: more undefined references to `SDL_JoystickGetPlayerIndex' follow
/usr/bin/ld: /tmp/ccBxsuDh.ltrans19.ltrans.o: in function `InputManager::event(SDL_Event&)':
/path-to-nestopia-source/nestopia/source/fltkui/inputmanager.cpp:405:(.text+0x9174): undefined reference to `SDL_JoystickSetPlayerIndex'
/usr/bin/ld: /tmp/ccBxsuDh.ltrans19.ltrans.o:/path-to-nestopia-source/nestopia/source/fltkui/inputmanager.cpp:335:(.text+0x9212): undefined reference to `SDL_JoystickGetPlayerIndex'
/usr/bin/ld: /tmp/ccBxsuDh.ltrans19.ltrans.o:/path-to-nestopia-source/nestopia/source/fltkui/inputmanager.cpp:316:(.text+0x92a7): undefined reference to `SDL_JoystickGetPlayerIndex'
collect2: error: ld returned 1 exit status
make: *** [Makefile:3144: nestopia] Error 1

configure output:

checking whether configure should try to set CXXFLAGS/CPPFLAGS/LDFLAGS... yes
checking whether to enable debugging... no
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C++... yes
checking whether g++ accepts -g... yes
checking for g++ option to enable C++11 features... none needed
checking for C++ compiler vendor... gnu
checking for a sed that does not truncate output... /usr/bin/sed
checking for C++ compiler version... 15.2.1
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking whether g++ supports C++17 features with -std=c++17... yes
checking whether the C++ compiler accepts -O3... yes
checking whether the linker accepts -Wl,-O1... yes
checking whether the linker accepts -Wl,--as-needed... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for zlib... yes
checking for libarchive... yes
checking for samplerate... yes
checking for sdl2 >= 2.0.12... yes
checking for epoxy... yes
checking for fltk-config... fltk-config
checking for a BSD-compatible install... /usr/bin/install -c
checking whether sleep supports fractional seconds... yes
checking filesystem timestamp resolution... 0.01
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports the include directive... yes (GNU style)
checking whether make supports nested variables... yes
checking xargs -n works... yes
checking whether UID '1000' is supported by ustar format... yes
checking whether GID '1000' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking dependency style of g++ -std=c++17... gcc3
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands

	nestopia 1.53.2
	Using gnu, 15.2.1

	CXX:        g++ -std=c++17
	CXXFLAGS:   -O3
	CPPFLAGS:   
	LDFLAGS:    -Wl,-O1 -Wl,--as-needed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions