Skip to content

Build fails on Window when TIRPC is YES #196

@hanak

Description

@hanak

Problem: We are building for both Linux and Windows. When TIRPC is YES, testGpibApp fails to build on Windows. When TIRPC is not set, asyn fails to build on Linux (due to missing rpc.h).

Cause: While "asyn" Makefile states:

ifeq ($(TIRPC),YES)
  USR_INCLUDES_Linux += -I/usr/include/tirpc
  asyn_SYS_LIBS_Linux += tirpc
endif

"testGpibApp" Makefile states:

ifeq ($(TIRPC),YES)
  USR_INCLUDES += -I/usr/include/tirpc
  testGpib_SYS_LIBS += tirpc
endif

Since the suffix _Linux is missing, the setting applies to all OS.

Workaround: Set USR_INCLUDES_Linux, asyn_SYS_LIBS_Linux , and testGpib_SYS_LIBS_Linux in CONFIG_SITE instead of TIRPC.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions