Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Build fails: error: type alias redefinition with different types ('OBSRef<obs_source_t *, ___source_dummy_addref, obs_source_release>' #954

Closed
yurivict opened this issue Jun 23, 2022 · 4 comments

Comments

@yurivict
Copy link

Operating System Info

Other

Other OS

FreeBSD

OBS Studio Version

27.2.4

OBS Studio Version (Other)

No response

obs-websocket Version

4.9.1

OBS Studio Log URL

n/a

OBS Studio Crash Log URL

No response

Expected Behavior

successful build

Current Behavior

In file included from /disk-samsung/freebsd-ports/multimedia/obs-websocket/work/obs-websocket-4.9.1/src/WSRequestHandler.cpp:27:
In file included from /disk-samsung/freebsd-ports/multimedia/obs-websocket/work/obs-websocket-4.9.1/src/WSRequestHandler.h:31:
In file included from /disk-samsung/freebsd-ports/multimedia/obs-websocket/work/obs-websocket-4.9.1/src/rpc/RpcRequest.h:23:
/disk-samsung/freebsd-ports/multimedia/obs-websocket/work/obs-websocket-4.9.1/src/rpc/../obs-websocket.h:30:7: error: type alias redefinition with different types ('OBSRef<obs_source_t *, ___source_dummy_addref, obs_source_release>' (aka 'OBSRef<obs_source *, ___source_dummy_addref, obs_source_release>') vs 'OBSRefAutoRelease<obs_source_t *, obs_source_release>' (aka 'OBSRefAutoRelease<obs_source *, obs_source_release>'))
using OBSSourceAutoRelease =
      ^
/usr/local/include/obs/obs.hpp:62:7: note: previous definition is here
using OBSSourceAutoRelease =
      ^
In file included from /disk-samsung/freebsd-ports/multimedia/obs-websocket/work/obs-websocket-4.9.1/src/WSRequestHandler.cpp:27:
In file included from /disk-samsung/freebsd-ports/multimedia/obs-websocket/work/obs-websocket-4.9.1/src/WSRequestHandler.h:31:
In file included from /disk-samsung/freebsd-ports/multimedia/obs-websocket/work/obs-websocket-4.9.1/src/rpc/RpcRequest.h:23:
/disk-samsung/freebsd-ports/multimedia/obs-websocket/work/obs-websocket-4.9.1/src/rpc/../obs-websocket.h:32:7: error: type alias redefinition with different types ('OBSRef<obs_sceneitem_t *, ___sceneitem_dummy_addref, obs_sceneitem_release>' (aka 'OBSRef<obs_scene_item *, ___sceneitem_dummy_addref, obs_sceneitem_release>') vs 'OBSRefAutoRelease<obs_sceneitem_t *, obs_sceneitem_release>' (aka 'OBSRefAutoRelease<obs_scene_item *, obs_sceneitem_release>'))
using OBSSceneItemAutoRelease =
      ^
/usr/local/include/obs/obs.hpp:65:7: note: previous definition is here
using OBSSceneItemAutoRelease =
      ^

Steps to Reproduce

normal build with clang-13 on FreeBSD 13.1

Anything else we should know?

No response

@tt2468
Copy link
Member

tt2468 commented Jun 23, 2022

You must build all 4.x branches against OBS 27.1.3.

@tt2468 tt2468 closed this as completed Jun 23, 2022
@yurivict
Copy link
Author

yurivict commented Aug 3, 2022

@tt2468 5.0.1 still breaks the same way with obs-studio-27.2.4

@tt2468
Copy link
Member

tt2468 commented Aug 3, 2022

5.0.1 does not define OBSSceneItemAutoRelease, so I don't see how that is possible.

@yurivict
Copy link
Author

yurivict commented Aug 3, 2022

Sorry, my bad. I confused the version when I was trying.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants