VirtualBox

vbox的更動 44473 路徑 trunk


忽略:
時間撮記:
2013-1-30 下午04:37:38 (12 年 以前)
作者:
vboxsync
訊息:

Additions/x11: rework checking missing symbols in the X server drivers and do not accept libc etc. symbols in the XFree86 ones.

位置:
trunk/src
檔案:
新增 2 筆資料
修改 5 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Additions/x11/vboxmouse/Makefile.kmk

    r43588 r44473  
    250250# Check the undefined symbols in the X.Org modules against lists of allowed
    251251# symbols.  Not very elegant, but it will catch problems early.
     252
    252253ifdef VBOX_WITH_TESTCASES
    253254# ifndef VBOX_ONLY_ADDITIONS
     
    264265        $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
    265266        $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_HOST) \
    266             "$(vboxmouse_drv_1_STAGE_TARGET)" "$(VBOXMOUSE_SRC_PATH)/undefined" --static
     267            "$(vboxmouse_drv_1_STAGE_TARGET)" --static "$(VBOXMOUSE_SRC_PATH)/undefined"
    267268        $(QUIET)$(APPEND) -t "$@" "done"
    268269     endif
    269270
    270      TESTING += $(vboxmouse_drv_70_0_OUTDIR)/tstvboxmouse70.run
    271      OTHERS += $(vboxmouse_drv_70_0_OUTDIR)/tstvboxmouse70.run
    272 $$(vboxmouse_drv_70_0_OUTDIR)/tstvboxmouse70.run: $$(vboxmouse_drv_70_1_STAGE_TARGET)
    273         $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
    274         $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_HOST) \
    275             $(vboxmouse_drv_70_1_STAGE_TARGET) $(VBOXMOUSE_SRC_PATH)/undefined
    276         $(QUIET)$(APPEND) -t "$@" "done"
    277 
    278      TESTING += $(vboxmouse_drv_71_0_OUTDIR)/tstvboxmouse71.run
    279      OTHERS += $(vboxmouse_drv_71_0_OUTDIR)/tstvboxmouse71.run
    280 $$(vboxmouse_drv_71_0_OUTDIR)/tstvboxmouse71.run: $$(vboxmouse_drv_71_1_STAGE_TARGET)
    281         $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
    282         $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_HOST)  \
    283             $(vboxmouse_drv_71_1_STAGE_TARGET) $(VBOXMOUSE_SRC_PATH)/undefined
    284         $(QUIET)$(APPEND) -t "$@" "done"
    285 
    286      TESTING += $(vboxmouse_drv_13_0_OUTDIR)/tstvboxmouse13.run
    287      OTHERS += $(vboxmouse_drv_13_0_OUTDIR)/tstvboxmouse13.run
    288 $$(vboxmouse_drv_13_0_OUTDIR)/tstvboxmouse13.run: $$(vboxmouse_drv_13_1_STAGE_TARGET)
    289         $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
    290         $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_HOST) \
    291             $(vboxmouse_drv_13_1_STAGE_TARGET) $(VBOXMOUSE_SRC_PATH)/undefined
    292         $(QUIET)$(APPEND) -t "$@" "done"
    293 
    294      TESTING += $(vboxmouse_drv_14_0_OUTDIR)/tstvboxmouse14.run
    295      OTHERS += $(vboxmouse_drv_14_0_OUTDIR)/tstvboxmouse14.run
    296 $$(vboxmouse_drv_14_0_OUTDIR)/tstvboxmouse14.run: $$(vboxmouse_drv_14_1_STAGE_TARGET)
    297         $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
    298         $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_HOST) \
    299             $(vboxmouse_drv_14_1_STAGE_TARGET) $(VBOXMOUSE_SRC_PATH)/undefined
    300         $(QUIET)$(APPEND) -t "$@" "done"
    301 
    302      TESTING += $(vboxmouse_drv_15_0_OUTDIR)/tstvboxmouse15.run
    303      OTHERS += $(vboxmouse_drv_15_0_OUTDIR)/tstvboxmouse15.run
    304 $$(vboxmouse_drv_15_0_OUTDIR)/tstvboxmouse15.run: $$(vboxmouse_drv_15_1_STAGE_TARGET)
    305         $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
    306         $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_HOST)  \
    307             $(vboxmouse_drv_15_1_STAGE_TARGET) $(VBOXMOUSE_SRC_PATH)/undefined
    308         $(QUIET)$(APPEND) -t "$@" "done"
    309 
    310      TESTING += $(vboxmouse_drv_16_0_OUTDIR)/tstvboxmouse16.run
    311      OTHERS += $(vboxmouse_drv_16_0_OUTDIR)/tstvboxmouse16.run
    312 $$(vboxmouse_drv_16_0_OUTDIR)/tstvboxmouse16.run: $$(vboxmouse_drv_16_1_STAGE_TARGET)
    313         $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
    314         $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_HOST)  \
    315             $(vboxmouse_drv_16_1_STAGE_TARGET) $(VBOXMOUSE_SRC_PATH)/undefined
    316         $(QUIET)$(APPEND) -t "$@" "done"
    317 
    318 ifneq ($(KBUILD_TARGET), linux)
    319 
    320      TESTING += $(vboxmouse_drv_17_0_OUTDIR)/tstvboxmouse17.run
    321      OTHERS += $(vboxmouse_drv_17_0_OUTDIR)/tstvboxmouse17.run
    322 $$(vboxmouse_drv_17_0_OUTDIR)/tstvboxmouse17.run: $$(vboxmouse_drv_17_1_STAGE_TARGET)
    323         $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
    324         $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_HOST)  \
    325             $(vboxmouse_drv_17_1_STAGE_TARGET) $(VBOXMOUSE_SRC_PATH)/undefined
    326         $(QUIET)$(APPEND) -t "$@" "done"
    327 
    328      TESTING += $(vboxmouse_drv_18_0_OUTDIR)/tstvboxmouse18.run
    329      OTHERS += $(vboxmouse_drv_18_0_OUTDIR)/tstvboxmouse18.run
    330 $$(vboxmouse_drv_18_0_OUTDIR)/tstvboxmouse18.run: $$(vboxmouse_drv_18_1_STAGE_TARGET)
    331         $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
    332         $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_HOST)  \
    333             $(vboxmouse_drv_18_1_STAGE_TARGET) $(VBOXMOUSE_SRC_PATH)/undefined
    334         $(QUIET)$(APPEND) -t "$@" "done"
    335 
    336      TESTING += $(vboxmouse_drv_19_0_OUTDIR)/tstvboxmouse19.run
    337      OTHERS += $(vboxmouse_drv_19_0_OUTDIR)/tstvboxmouse19.run
    338 $$(vboxmouse_drv_19_0_OUTDIR)/tstvboxmouse19.run: $$(vboxmouse_drv_19_1_STAGE_TARGET)
    339         $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
    340         $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_HOST)  \
    341             $(vboxmouse_drv_19_1_STAGE_TARGET) $(VBOXMOUSE_SRC_PATH)/undefined
    342         $(QUIET)$(APPEND) -t "$@" "done"
    343 
    344      TESTING += $(vboxmouse_drv_110_0_OUTDIR)/tstvboxmouse110.run
    345      OTHERS += $(vboxmouse_drv_110_0_OUTDIR)/tstvboxmouse110.run
    346 $$(vboxmouse_drv_110_0_OUTDIR)/tstvboxmouse110.run: $$(vboxmouse_drv_110_1_STAGE_TARGET)
    347         $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
    348         $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_HOST)  \
    349             $(vboxmouse_drv_110_1_STAGE_TARGET) $(VBOXMOUSE_SRC_PATH)/undefined
    350         $(QUIET)$(APPEND) -t "$@" "done"
    351 
    352      TESTING += $(vboxmouse_drv_111_0_OUTDIR)/tstvboxmouse111.run
    353      OTHERS += $(vboxmouse_drv_111_0_OUTDIR)/tstvboxmouse111.run
    354 $$(vboxmouse_drv_111_0_OUTDIR)/tstvboxmouse111.run: $$(vboxmouse_drv_111_1_STAGE_TARGET)
    355         $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
    356         $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_HOST)  \
    357             $(vboxmouse_drv_111_1_STAGE_TARGET) $(VBOXMOUSE_SRC_PATH)/undefined
    358         $(QUIET)$(APPEND) -t "$@" "done"
    359 
    360      TESTING += $(vboxmouse_drv_112_0_OUTDIR)/tstvboxmouse112.run
    361      OTHERS += $(vboxmouse_drv_112_0_OUTDIR)/tstvboxmouse112.run
    362 $$(vboxmouse_drv_112_0_OUTDIR)/tstvboxmouse112.run: $$(vboxmouse_drv_112_1_STAGE_TARGET)
    363         $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
    364         $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_HOST)  \
    365             $(vboxmouse_drv_112_1_STAGE_TARGET) $(VBOXMOUSE_SRC_PATH)/undefined
    366         $(QUIET)$(APPEND) -t "$@" "done"
    367 
    368 endif # neq ($(KBUILD_TARGET),linux)
     271##
     272# Using the extra expansion to replace $(ver) before eval, thus everything
     273# else needs escaped dollars.
     274     define def_vboxmouse_test
     275      TESTING += $$(vboxmouse_drv$(ver)_0_OUTDIR)/tstvboxmouse$(ver).run
     276      OTHERS  += $$(vboxmouse_drv$(ver)_0_OUTDIR)/tstvboxmouse$(ver).run
     277      $$$$(vboxmouse_drv$(ver)_0_OUTDIR)/tstvboxmouse$(ver).run: $$$$(vboxmouse_drv$(ver)_1_STAGE_TARGET)
     278        $$(QUIET)$$(call MSG_L1,Checking for unresolved symbols in $$<)
     279        $$(QUIET)$$(ASH) $$(PATH_ROOT)/src/bldprogs/checkUndefined.sh $$(KBUILD_HOST)  \
     280                $$(vboxmouse_drv$(ver)_1_STAGE_TARGET) $$(VBOXMOUSE_SRC_PATH)/undefined $$(VBOXMOUSE_SRC_PATH)/undefined_extra
     281        $$(QUIET)$$(APPEND) -t "$$@" "done"
     282    endef
     283
     284     $(foreach ver, _70 _71 _13 _14 _15 _16, $(eval $(def_vboxmouse_test)))
     285
     286     ifneq ($(KBUILD_TARGET), linux)
     287      $(foreach ver, _17 _18 _19 _110 _111 _112 _113, $(eval $(def_vboxmouse_test)))
     288
     289     endif # neq ($(KBUILD_TARGET),linux)
    369290
    370291    endif # ! VBOX_ONLY_SDK
  • trunk/src/VBox/Additions/x11/vboxmouse/undefined

    r40342 r44473  
    88VErrorF
    99Xalloc
    10 _ITM_registerTMCloneTable
    11 _ITM_deregisterTMCloneTable
    12 _Jv_RegisterClasses
    13 ___errno
    14 __cxa_finalize
    15 __deregister_frame_info_bases
    16 __divdi3
    17 __errno_location
    18 __fxstat64
    19 __gmon_start__
    20 __iob
    21 __moddi3
    22 __register_frame_info_bases
    23 __stack_chk_fail
    24 __udivdi3
    25 __umoddi3
    26 __xstat64
    2710calloc
    2811chdir
  • trunk/src/VBox/Additions/x11/vboxvideo/Makefile.kmk

    r44471 r44473  
    344344# Check the undefined symbols in the X.Org modules against lists of allowed
    345345# symbols.  Not very elegant, but it will catch problems early.
     346
    346347ifdef VBOX_WITH_TESTCASES
    347348# ifndef VBOX_ONLY_ADDITIONS
     
    352353     VBOXVIDEO_SRC_PATH := $(PATH_SUB_CURRENT)
    353354
    354 if 0
    355 ##
    356 # Using the extra expansion to replace $(ver) before eval, thus everything
    357 # else needs escaped dollars.
    358 define def_vboxvideo_test
    359 TESTING += $$(vboxvideo_drv$(ver)_0_OUTDIR)/tstvboxvideo$(ver).run
    360 OTHERS  += $$(vboxvideo_drv$(ver)_0_OUTDIR)/tstvboxvideo$(ver).run
    361 $$$$(vboxvideo_drv_$(ver)_0_OUTDIR)/tstvboxvideo$(ver).run: $$$$(vboxvideo_drv$(ver)_1_STAGE_TARGET)
    362         $$(QUIET)$$(call MSG_L1,Checking for unresolved symbols in $$<)
    363         $$(QUIET)$$(ASH) $$(PATH_ROOT)/src/bldprogs/checkUndefined.sh $$(KBUILD_HOST)  \
    364             $$(vboxvideo_drv$(ver)_1_STAGE_TARGET) $$(VBOXVIDEO_SRC_PATH)/undefined --static
    365         $$(QUIET)$$(APPEND) -t "$$@" "done"
    366 endef
    367 ver :=
    368 $(eval $(def_vboxvideo_test))
    369 $(foreach ver, _70 _71 _13 _14 _15 _16 _17 _18 _19 _110 _111 _112 _113, $(eval $(def_vboxvideo_test)))
    370 
    371 else  # old
    372 
    373355     ifeq ($(KBUILD_TARGET),linux)
    374356      TESTING += $(vboxvideo_drv_0_OUTDIR)/tstvboxvideo68.run
     
    376358$$(vboxvideo_drv_0_OUTDIR)/tstvboxvideo68.run: $$(vboxvideo_drv_1_STAGE_TARGET)
    377359        $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
    378         $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_HOST)  \
    379             $(vboxvideo_drv_1_STAGE_TARGET) $(VBOXVIDEO_SRC_PATH)/undefined --static
     360        $(QUIET)$(ASH) $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_HOST)  \
     361            $(vboxvideo_drv_1_STAGE_TARGET) --static $(VBOXVIDEO_SRC_PATH)/undefined
    380362        $(QUIET)$(APPEND) -t "$@" "done"
    381363     endif
    382364
    383      TESTING += $(vboxvideo_drv_70_0_OUTDIR)/tstvboxvideo70.run
    384      OTHERS += $(vboxvideo_drv_70_0_OUTDIR)/tstvboxvideo70.run
    385 $$(vboxvideo_drv_70_0_OUTDIR)/tstvboxvideo70.run: $$(vboxvideo_drv_70_1_STAGE_TARGET)
    386         $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
    387         $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_HOST)  \
    388             $(vboxvideo_drv_70_1_STAGE_TARGET) $(VBOXVIDEO_SRC_PATH)/undefined
    389         $(QUIET)$(APPEND) -t "$@" "done"
    390 
    391      TESTING += $(vboxvideo_drv_71_0_OUTDIR)/tstvboxvideo71.run
    392      OTHERS += $(vboxvideo_drv_71_0_OUTDIR)/tstvboxvideo71.run
    393 $$(vboxvideo_drv_71_0_OUTDIR)/tstvboxvideo71.run: $$(vboxvideo_drv_71_1_STAGE_TARGET)
    394         $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
    395         $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_HOST)  \
    396             $(vboxvideo_drv_71_1_STAGE_TARGET) $(VBOXVIDEO_SRC_PATH)/undefined
    397         $(QUIET)$(APPEND) -t "$@" "done"
    398 
    399      TESTING += $(vboxvideo_drv_13_0_OUTDIR)/tstvboxvideo13.run
    400      OTHERS += $(vboxvideo_drv_13_0_OUTDIR)/tstvboxvideo13.run
    401 $$(vboxvideo_drv_13_0_OUTDIR)/tstvboxvideo13.run: $$(vboxvideo_drv_13_1_STAGE_TARGET)
    402         $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
    403         $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_HOST)  \
    404             $(vboxvideo_drv_13_1_STAGE_TARGET) $(VBOXVIDEO_SRC_PATH)/undefined
    405         $(QUIET)$(APPEND) -t "$@" "done"
    406 
    407      TESTING += $(vboxvideo_drv_14_0_OUTDIR)/tstvboxvideo14.run
    408      OTHERS += $(vboxvideo_drv_14_0_OUTDIR)/tstvboxvideo14.run
    409 $$(vboxvideo_drv_14_0_OUTDIR)/tstvboxvideo14.run: $$(vboxvideo_drv_14_1_STAGE_TARGET)
    410         $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
    411         $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_HOST)  \
    412             $(vboxvideo_drv_14_1_STAGE_TARGET) $(VBOXVIDEO_SRC_PATH)/undefined
    413         $(QUIET)$(APPEND) -t "$@" "done"
    414 
    415      TESTING += $(vboxvideo_drv_15_0_OUTDIR)/tstvboxvideo15.run
    416      OTHERS += $(vboxvideo_drv_15_0_OUTDIR)/tstvboxvideo15.run
    417 $$(vboxvideo_drv_15_0_OUTDIR)/tstvboxvideo15.run: $$(vboxvideo_drv_15_1_STAGE_TARGET)
    418         $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
    419         $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_HOST)  \
    420             $(vboxvideo_drv_15_1_STAGE_TARGET) $(VBOXVIDEO_SRC_PATH)/undefined
    421         $(QUIET)$(APPEND) -t "$@" "done"
    422 
    423      TESTING += $(vboxvideo_drv_16_0_OUTDIR)/tstvboxvideo16.run
    424      OTHERS += $(vboxvideo_drv_16_0_OUTDIR)/tstvboxvideo16.run
    425 $$(vboxvideo_drv_16_0_OUTDIR)/tstvboxvideo16.run: $$(vboxvideo_drv_16_1_STAGE_TARGET)
    426         $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
    427         $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_HOST)  \
    428             $(vboxvideo_drv_16_1_STAGE_TARGET) $(VBOXVIDEO_SRC_PATH)/undefined
    429         $(QUIET)$(APPEND) -t "$@" "done"
    430 
    431      TESTING += $(vboxvideo_drv_17_0_OUTDIR)/tstvboxvideo17.run
    432      OTHERS += $(vboxvideo_drv_17_0_OUTDIR)/tstvboxvideo17.run
    433 $$(vboxvideo_drv_17_0_OUTDIR)/tstvboxvideo17.run: $$(vboxvideo_drv_17_1_STAGE_TARGET)
    434         $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
    435         $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_HOST)  \
    436             $(vboxvideo_drv_17_1_STAGE_TARGET) $(VBOXVIDEO_SRC_PATH)/undefined
    437         $(QUIET)$(APPEND) -t "$@" "done"
    438 
    439      TESTING += $(vboxvideo_drv_18_0_OUTDIR)/tstvboxvideo18.run
    440      OTHERS += $(vboxvideo_drv_18_0_OUTDIR)/tstvboxvideo18.run
    441 $$(vboxvideo_drv_18_0_OUTDIR)/tstvboxvideo18.run: $$(vboxvideo_drv_18_1_STAGE_TARGET)
    442         $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
    443         $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_HOST)  \
    444             $(vboxvideo_drv_18_1_STAGE_TARGET) $(VBOXVIDEO_SRC_PATH)/undefined
    445         $(QUIET)$(APPEND) -t "$@" "done"
    446 
    447      TESTING += $(vboxvideo_drv_19_0_OUTDIR)/tstvboxvideo19.run
    448      OTHERS += $(vboxvideo_drv_19_0_OUTDIR)/tstvboxvideo19.run
    449 $$(vboxvideo_drv_19_0_OUTDIR)/tstvboxvideo19.run: $$(vboxvideo_drv_19_1_STAGE_TARGET)
    450         $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
    451         $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_HOST)  \
    452             $(vboxvideo_drv_19_1_STAGE_TARGET) $(VBOXVIDEO_SRC_PATH)/undefined
    453         $(QUIET)$(APPEND) -t "$@" "done"
    454 
    455      TESTING += $(vboxvideo_drv_110_0_OUTDIR)/tstvboxvideo110.run
    456      OTHERS += $(vboxvideo_drv_110_0_OUTDIR)/tstvboxvideo110.run
    457 $$(vboxvideo_drv_110_0_OUTDIR)/tstvboxvideo110.run: $$(vboxvideo_drv_110_1_STAGE_TARGET)
    458         $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
    459         $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_HOST)  \
    460             $(vboxvideo_drv_110_1_STAGE_TARGET) $(VBOXVIDEO_SRC_PATH)/undefined
    461         $(QUIET)$(APPEND) -t "$@" "done"
    462 
    463      TESTING += $(vboxvideo_drv_111_0_OUTDIR)/tstvboxvideo111.run
    464      OTHERS += $(vboxvideo_drv_111_0_OUTDIR)/tstvboxvideo111.run
    465 $$(vboxvideo_drv_111_0_OUTDIR)/tstvboxvideo111.run: $$(vboxvideo_drv_111_1_STAGE_TARGET)
    466         $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
    467         $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_HOST)  \
    468             $(vboxvideo_drv_111_1_STAGE_TARGET) $(VBOXVIDEO_SRC_PATH)/undefined
    469         $(QUIET)$(APPEND) -t "$@" "done"
    470 
    471      TESTING += $(vboxvideo_drv_112_0_OUTDIR)/tstvboxvideo112.run
    472      OTHERS += $(vboxvideo_drv_112_0_OUTDIR)/tstvboxvideo112.run
    473 $$(vboxvideo_drv_112_0_OUTDIR)/tstvboxvideo112.run: $$(vboxvideo_drv_112_1_STAGE_TARGET)
    474         $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
    475         $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_HOST)  \
    476             $(vboxvideo_drv_112_1_STAGE_TARGET) $(VBOXVIDEO_SRC_PATH)/undefined
    477         $(QUIET)$(APPEND) -t "$@" "done"
    478 
    479      TESTING += $(vboxvideo_drv_113_0_OUTDIR)/tstvboxvideo113.run
    480      OTHERS += $(vboxvideo_drv_113_0_OUTDIR)/tstvboxvideo113.run
    481 $$(vboxvideo_drv_113_0_OUTDIR)/tstvboxvideo113.run: $$(vboxvideo_drv_113_1_STAGE_TARGET)
    482         $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
    483         $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_HOST)  \
    484             $(vboxvideo_drv_113_1_STAGE_TARGET) $(VBOXVIDEO_SRC_PATH)/undefined
    485         $(QUIET)$(APPEND) -t "$@" "done"
    486 endif # old
     365##
     366# Using the extra expansion to replace $(ver) before eval, thus everything
     367# else needs escaped dollars.
     368     define def_vboxvideo_test
     369      TESTING += $$(vboxvideo_drv$(ver)_0_OUTDIR)/tstvboxvideo$(ver).run
     370      OTHERS  += $$(vboxvideo_drv$(ver)_0_OUTDIR)/tstvboxvideo$(ver).run
     371      $$$$(vboxvideo_drv$(ver)_0_OUTDIR)/tstvboxvideo$(ver).run: $$$$(vboxvideo_drv$(ver)_1_STAGE_TARGET)
     372        $$(QUIET)$$(call MSG_L1,Checking for unresolved symbols in $$<)
     373        $$(QUIET)$$(ASH) $$(PATH_ROOT)/src/bldprogs/checkUndefined.sh $$(KBUILD_HOST)  \
     374                $$(vboxvideo_drv$(ver)_1_STAGE_TARGET) $$(VBOXVIDEO_SRC_PATH)/undefined $$(VBOXVIDEO_SRC_PATH)/undefined_extra
     375        $$(QUIET)$$(APPEND) -t "$$@" "done"
     376    endef
     377
     378    $(foreach ver, _70 _71 _13 _14 _15 _16 _17 _18 _19 _110 _111 _112 _113, $(eval $(def_vboxvideo_test)))
    487379
    488380    endif # ! VBOX_ONLY_SDK
    489381   endif # eq ($(KBUILD_HOST_ARCH),$(KBUILD_TARGET_ARCH))
    490   endif # eq ($(KBUILD_TARGET),linux)
     382  endif # 1of ($(KBUILD_TARGET),linux solaris)
    491383 endif # ! VBOX_USE_SYSTEM_XORG_HEADERS
    492384# endif # ! VBOX_ONLY_ADDITIONS
  • trunk/src/VBox/Additions/x11/vboxvideo/undefined

    r43253 r44473  
    1919XNFstrdup
    2020Xalloc
    21 _ITM_registerTMCloneTable
    22 _ITM_deregisterTMCloneTable
    23 _Jv_RegisterClasses
    24 ___errno
    25 __cxa_finalize
    26 __deregister_frame_info_bases
    27 __divdi3
    28 __errno_location
    29 __fxstat64
    30 __gmon_start__
    31 __iob
    32 __isoc99_sscanf
    33 __moddi3
    34 __register_frame_info_bases
    35 __stack_chk_fail
    36 __udivdi3
    37 __umoddi3
    38 __xstat64
    3921calloc
    4022chdir
  • trunk/src/bldprogs/checkUndefined.sh

    r43257 r44473  
    1515#
    1616# Compare undefined symbols in a shared or static object against a new-line
    17 # separated list of grep patterns in a text file.
     17# separated list of grep patterns in a set of text files and complain if
     18# symbols are found which aren't in the files.
    1819#
    19 # Usage: /bin/sh <script name> <object> <allowed undefined symbols> [--static]
     20# Usage: /bin/sh <script name> <object> [--static] <undefined symbol file...>
    2021#
    21 # Currently only works for native objects on Linux platforms
     22# Currently only works for native objects on Linux (and Solaris?) platforms.
    2223#
    2324
     
    2728}
    2829
    29 hostos=$1
    30 target=$2
    31 symbols=$3
    32 static=$4
    33 
    34 if test $# -lt 3 || test $# -gt 4 || test ! -r "$target" || test ! -r "$symbols"; then
    35   if test ! -r "$target"; then
    36     echoerr "$0: '$target' not readable"
    37   elif test ! -r "$symbols"; then
    38     echoerr "$0: '$symbols' not readable"
    39   else
    40     echoerr "$0: Wrong number of arguments"
    41   fi
    42   args_ok="no"
     30hostos="${1}"
     31target="${2}"
     32shift 2
     33if test "${1}" = "--static"; then
     34    static="${1}"
     35    shift
    4336fi
    4437
    45 if test $# -eq 4 && test "$static" != "--static"; then
    46   args_ok="no"
     38if test $# -lt 1; then
     39    echoerr "${0}: Wrong number of arguments"
     40    args_ok="no"
    4741fi
     42if test ! -r "${target}"; then
     43    echoerr "${0}: '${target}' not readable"
     44    args_ok="no"
     45fi
     46for i in "${@}"; do
     47    if test ! -r "${i}"; then
     48        echoerr "${0}: '${i}' not readable"
     49        args_ok="no"
     50    fi
     51done
    4852
    4953if test "$args_ok" = "no"; then
    50   echoerr "Usage: $0 <object> <allowed undefined symbols> [--static]"
     54  echoerr "Usage: $0 <object> [--static] <undefined symbol file...>"
    5155  exit 1
    5256fi
     
    6872fi
    6973
    70 if test ! -x "$objdumpbin"; then
    71     echoerr "$0: '$objdumpbin' not found or not executable."
     74if test ! -x "${objdumpbin}"; then
     75    echoerr "${0}: '${objdumpbin}' not found or not executable."
    7276    exit 1
    7377fi
    7478
    75 undefined=`$objdumpbin $command $target | $grepbin '*UND*' | $grepbin -v -f $symbols | kmk_sed -e 's/^.*[[:blank:]]\(.*\)/\1/'`
     79undefined=`"${objdumpbin}" ${command} "${target}" | kmk_sed -n 's/.*\*UND\*.*\s\([:graph:]*\)/\1/p'`
     80for i in "${@}"; do
     81    undefined=`echo "${undefined}" | "${grepbin}" -v -f "${i}"`
     82done
    7683num_undef=`echo $undefined | wc -w`
    7784
    7885if test $num_undef -ne 0; then
    79   echoerr "$0: following symbols not defined in $symbols:"
    80   echoerr "$undefined"
     86  echoerr "${0}: following symbols not defined in the files ${@}:"
     87  echoerr "${undefined}"
    8188  exit 1
    8289fi
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette