pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/53746: pkgsrc/devel/SDL2 on NetBSD/arm 8.0 causes undefined reference



>Number:         53746
>Category:       pkg
>Synopsis:       pkgsrc/devel/SDL2 on NetBSD/arm 8.0 causes undefined reference
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 26 16:10:00 +0000 2018
>Originator:     Izumi Tsutsui
>Release:        NetBSD 8.0
>Organization:
>Environment:
System: 
Architecture: earmv6hf
Machine: evbarm RPI3B
>Description:
The "rpi" option in pkgsrc/devel/SDL2/options.mk pulls
pkgsrc/misc/respberrypi-userland to build SDL2 on arm,
but the SDL2 package build with the option causes undefined
reference errors on builds packages that require SDL2, like PC6001VX:

---
 :
/usr/obj.earmv6hf/pkgsrc/emulators/PC6001VX/work.earmv6hf/.buildlink/lib/libSDL2.a(SDL_rpivideo.o): In function `RPI_VideoInit':
SDL_rpivideo.c:(.text+0x234): undefined reference to `bcm_host_init'
SDL_rpivideo.c:(.text+0x254): undefined reference to `graphics_get_display_size'
SDL_rpivideo.c:(.text+0x274): undefined reference to `vc_tv_get_display_state'
SDL_rpivideo.c:(.text+0x2ec): undefined reference to `vc_dispmanx_display_open'
SDL_rpivideo.c:(.text+0x320): undefined reference to `vc_tv_hdmi_get_property'
/usr/obj.earmv6hf/pkgsrc/emulators/PC6001VX/work.earmv6hf/.buildlink/lib/libSDL2.a(SDL_rpivideo.o): In function `RPI_CreateWindow':
SDL_rpivideo.c:(.text+0x424): undefined reference to `vc_dispmanx_update_start'
SDL_rpivideo.c:(.text+0x45c): undefined reference to `vc_dispmanx_element_add'
SDL_rpivideo.c:(.text+0x474): undefined reference to `vc_dispmanx_update_submit_sync'
SDL_rpivideo.c:(.text+0x500): undefined reference to `vc_dispmanx_vsync_callback'
/usr/obj.earmv6hf/pkgsrc/emulators/PC6001VX/work.earmv6hf/.buildlink/lib/libSDL2.a(SDL_rpivideo.o): In function `RPI_DestroyWindow':
SDL_rpivideo.c:(.text+0x604): undefined reference to `vc_dispmanx_vsync_callback'
/usr/obj.earmv6hf/pkgsrc/emulators/PC6001VX/work.earmv6hf/.buildlink/lib/libSDL2.a(SDL_sysjoystick.o): In function `SDL_SYS_JoystickOpen':
SDL_sysjoystick.c:(.text+0xf8): undefined reference to `hid_get_report_desc'
SDL_sysjoystick.c:(.text+0x23c): undefined reference to `hid_report_size'
SDL_sysjoystick.c:(.text+0x270): undefined reference to `hid_start_parse'
SDL_sysjoystick.c:(.text+0x2bc): undefined reference to `hid_get_item'
SDL_sysjoystick.c:(.text+0x2fc): undefined reference to `hid_usage_in_page'
SDL_sysjoystick.c:(.text+0x394): undefined reference to `hid_end_parse'
/usr/obj.earmv6hf/pkgsrc/emulators/PC6001VX/work.earmv6hf/.buildlink/lib/libSDL2.a(SDL_sysjoystick.o): In function `SDL_SYS_JoystickUpdate':
SDL_sysjoystick.c:(.text+0x630): undefined reference to `hid_start_parse'
SDL_sysjoystick.c:(.text+0x648): undefined reference to `hid_get_item'
SDL_sysjoystick.c:(.text+0x684): undefined reference to `hid_get_data'
SDL_sysjoystick.c:(.text+0x6d4): undefined reference to `hid_get_data'
SDL_sysjoystick.c:(.text+0x724): undefined reference to `hid_end_parse'
SDL_sysjoystick.c:(.text+0x744): undefined reference to `hid_get_data'
/usr/obj.earmv6hf/pkgsrc/emulators/PC6001VX/work.earmv6hf/.buildlink/lib/libSDL2.a(SDL_sysjoystick.o): In function `SDL_SYS_JoystickClose':
SDL_sysjoystick.c:(.text+0x948): undefined reference to `hid_dispose_report_desc'
/usr/obj.earmv6hf/pkgsrc/emulators/PC6001VX/work.earmv6hf/.buildlink/lib/libSDL2.a(SDL_sysjoystick.o): In function `SDL_SYS_JoystickInit':
SDL_sysjoystick.c:(.text+0xab8): undefined reference to `hid_init'
/usr/obj.earmv6hf/pkgsrc/emulators/PC6001VX/work.earmv6hf/.buildlink/lib/libSDL2.a(SDL_rpimouse.o): In function `RPI_WarpMouseGlobal':
SDL_rpimouse.c:(.text+0x78): undefined reference to `vc_dispmanx_update_start'
SDL_rpimouse.c:(.text+0xe0): undefined reference to `vc_dispmanx_element_change_attributes'
SDL_rpimouse.c:(.text+0xf4): undefined reference to `vc_dispmanx_update_submit'
/usr/obj.earmv6hf/pkgsrc/emulators/PC6001VX/work.earmv6hf/.buildlink/lib/libSDL2.a(SDL_rpimouse.o): In function `RPI_MoveCursor':
SDL_rpimouse.c:(.text+0x184): undefined reference to `vc_dispmanx_update_start'
SDL_rpimouse.c:(.text+0x1ec): undefined reference to `vc_dispmanx_element_change_attributes'
SDL_rpimouse.c:(.text+0x200): undefined reference to `vc_dispmanx_update_submit'
/usr/obj.earmv6hf/pkgsrc/emulators/PC6001VX/work.earmv6hf/.buildlink/lib/libSDL2.a(SDL_rpimouse.o): In function `RPI_FreeCursor':
SDL_rpimouse.c:(.text+0x280): undefined reference to `vc_dispmanx_update_start'
SDL_rpimouse.c:(.text+0x28c): undefined reference to `vc_dispmanx_element_remove'
SDL_rpimouse.c:(.text+0x294): undefined reference to `vc_dispmanx_update_submit_sync'
SDL_rpimouse.c:(.text+0x2a4): undefined reference to `vc_dispmanx_resource_delete'
/usr/obj.earmv6hf/pkgsrc/emulators/PC6001VX/work.earmv6hf/.buildlink/lib/libSDL2.a(SDL_rpimouse.o): In function `RPI_ShowCursor':
SDL_rpimouse.c:(.text+0x350): undefined reference to `vc_dispmanx_rect_set'
SDL_rpimouse.c:(.text+0x36c): undefined reference to `vc_dispmanx_rect_set'
SDL_rpimouse.c:(.text+0x374): undefined reference to `vc_dispmanx_update_start'
SDL_rpimouse.c:(.text+0x3c4): undefined reference to `vc_dispmanx_element_add'
SDL_rpimouse.c:(.text+0x3d0): undefined reference to `vc_dispmanx_update_submit_sync'
SDL_rpimouse.c:(.text+0x408): undefined reference to `vc_dispmanx_update_start'
SDL_rpimouse.c:(.text+0x414): undefined reference to `vc_dispmanx_element_remove'
SDL_rpimouse.c:(.text+0x41c): undefined reference to `vc_dispmanx_update_submit_sync'
/usr/obj.earmv6hf/pkgsrc/emulators/PC6001VX/work.earmv6hf/.buildlink/lib/libSDL2.a(SDL_rpimouse.o): In function `RPI_CreateCursor':
SDL_rpimouse.c:(.text+0x4b4): undefined reference to `vc_dispmanx_resource_create'
SDL_rpimouse.c:(.text+0x4d8): undefined reference to `vc_dispmanx_rect_set'
SDL_rpimouse.c:(.text+0x4f0): undefined reference to `vc_dispmanx_resource_write_data'
*** [PC6001VX] Error code 1

make: stopped in /usr/obj.earmv6hf/pkgsrc/emulators/PC6001VX/work.earmv6hf/PC6001VX_3.0.0_src
1 error

make: stopped in /usr/obj.earmv6hf/pkgsrc/emulators/PC6001VX/work.earmv6hf/PC6001VX_3.0.0_src
*** Error code 2

Stop.
make[1]: stopped in /usr/pkgsrc/emulators/PC6001VX
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/emulators/PC6001VX

---

>How-To-Repeat:
% cd /usr/pkgsrc/emulator/PC6001VX
% make package
on RPI3

>Fix:
It looks these missing symbols are in /usr/pkg/lib/libvchostif.a
from raspberrypi-userland.

Needs to build shared libvchostif.so in raspberrypi-userland package,
or explicitly link these static libraries on SDL2 builds?



Home | Main Index | Thread Index | Old Index