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

descriptor_database.cc:57] File already exists in database: EntityType.proto #1941

Closed
dominikacri opened this issue Aug 11, 2016 · 3 comments

Comments

@dominikacri
Copy link

dominikacri commented Aug 11, 2016

I'm using protobuf-3.0.0.-beta3 but on execute my executable I get descriptor_database.cc:57] File already exists in database: EntityType.proto

shared lib A used in executable B
both use protobuffer as shared lib

exe and shared lib A generate the same EntityType.proto object (from same file)

Seems here is discussed the same problem for linux (and an older version of proto) but i use vs2015.
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=721791

Maybe the patch from nobuhiro helps here. Not tested but seems to fix adding an already existing object.

https://bugs.debian.org/cgi-bin/bugreport.cgi?att=1;bug=721791;filename=protobuf-2.4.1-3.1.debdiff;msg=5

@xfxyjwf
Copy link
Contributor

xfxyjwf commented Mar 7, 2017

If A and B shares the same proto type, I believe you will need to make a separate shared lib C containing the shared proto and make it a dependency of A and B.

@clementruhm
Copy link

god bless nobuhiro. other suggestions about linkage are useless when it comes to pybind

@yurivict
Copy link

yurivict commented Dec 26, 2023

I am still getting the same failure in protobuf-24.4 used by PyTorch during the PyTorch initialization of onnx on FreeBSD 14.0

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

4 participants