VirtualBox

Ignore:
Timestamp:
Jan 30, 2013 4:37:38 PM (12 years ago)
Author:
vboxsync
Message:

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

Location:
trunk/src/VBox/Additions/x11/vboxmouse
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.

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