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

Linking fails #2597

Open
meerfrau opened this issue Jun 15, 2023 · 1 comment
Open

Linking fails #2597

meerfrau opened this issue Jun 15, 2023 · 1 comment

Comments

@meerfrau
Copy link

meerfrau commented Jun 15, 2023

Environment Information

Open Babel version: git master
Operating system and version: linux-mainline

Expected Behavior

successfull linking

Actual Behavior

/usr/bin/ld: CMakeFiles/xtcformat.dir/xtcformat.cpp.o: in function `OpenBabel::XTCFormat::xdropen(__rpc_xdr*, char const*, char const*)':
xtcformat.cpp:(.text+0x123): undefined reference to `xdrstdio_create'
/usr/bin/ld: xtcformat.cpp:(.text+0x179): undefined reference to `xdrstdio_create'
/usr/bin/ld: CMakeFiles/xtcformat.dir/xtcformat.cpp.o: in function `OpenBabel::XTCFormat::xdr3dfcoord(__rpc_xdr*, float*, int*, float*)':
xtcformat.cpp:(.text+0x9ca): undefined reference to `xdr_int'
/usr/bin/ld: xtcformat.cpp:(.text+0xa37): undefined reference to `xdr_float'
/usr/bin/ld: xtcformat.cpp:(.text+0xab7): undefined reference to `xdr_int'
/usr/bin/ld: xtcformat.cpp:(.text+0xaca): undefined reference to `xdr_int'
/usr/bin/ld: xtcformat.cpp:(.text+0xadd): undefined reference to `xdr_int'
/usr/bin/ld: xtcformat.cpp:(.text+0xaf0): undefined reference to `xdr_int'
/usr/bin/ld: xtcformat.cpp:(.text+0xb03): undefined reference to `xdr_int'
/usr/bin/ld: CMakeFiles/xtcformat.dir/xtcformat.cpp.o:xtcformat.cpp:(.text+0xb16): more undefined references to `xdr_int' follow
/usr/bin/ld: CMakeFiles/xtcformat.dir/xtcformat.cpp.o: in function `OpenBabel::XTCFormat::xdr3dfcoord(__rpc_xdr*, float*, int*, float*)':
xtcformat.cpp:(.text+0xc4c): undefined reference to `xdr_opaque'
/usr/bin/ld: xtcformat.cpp:(.text+0xed2): undefined reference to `xdr_int'
/usr/bin/ld: xtcformat.cpp:(.text+0xf05): undefined reference to `xdr_float'
/usr/bin/ld: xtcformat.cpp:(.text+0xf2a): undefined reference to `xdr_vector'
/usr/bin/ld: xtcformat.cpp:(.text+0xf33): undefined reference to `xdr_float'
/usr/bin/ld: xtcformat.cpp:(.text+0xf47): undefined reference to `xdr_vector'
/usr/bin/ld: xtcformat.cpp:(.text+0xf60): undefined reference to `xdr_float'
/usr/bin/ld: xtcformat.cpp:(.text+0x1325): undefined reference to `xdr_int'
/usr/bin/ld: xtcformat.cpp:(.text+0x1338): undefined reference to `xdr_int'
/usr/bin/ld: xtcformat.cpp:(.text+0x134b): undefined reference to `xdr_int'
/usr/bin/ld: xtcformat.cpp:(.text+0x135e): undefined reference to `xdr_int'
/usr/bin/ld: xtcformat.cpp:(.text+0x1371): undefined reference to `xdr_int'
/usr/bin/ld: CMakeFiles/xtcformat.dir/xtcformat.cpp.o:xtcformat.cpp:(.text+0x1384): more undefined references to `xdr_int' follow
/usr/bin/ld: CMakeFiles/xtcformat.dir/xtcformat.cpp.o: in function `OpenBabel::XTCFormat::xdr3dfcoord(__rpc_xdr*, float*, int*, float*)':
xtcformat.cpp:(.text+0x21aa): undefined reference to `xdr_opaque'
/usr/bin/ld: CMakeFiles/xtcformat.dir/xtcformat.cpp.o: in function `OpenBabel::XTCFormat::ReadMolecule(OpenBabel::OBBase*, OpenBabel::OBConversion*)':
xtcformat.cpp:(.text+0x24b6): undefined reference to `xdr_int'
/usr/bin/ld: xtcformat.cpp:(.text+0x24d3): undefined reference to `xdr_int'
/usr/bin/ld: xtcformat.cpp:(.text+0x24f4): undefined reference to `xdr_int'
/usr/bin/ld: xtcformat.cpp:(.text+0x2505): undefined reference to `xdr_float'
/usr/bin/ld: xtcformat.cpp:(.text+0x2516): undefined reference to `xdr_float'
/usr/bin/ld: xtcformat.cpp:(.text+0x2527): undefined reference to `xdr_float'
/usr/bin/ld: xtcformat.cpp:(.text+0x2538): undefined reference to `xdr_float'
/usr/bin/ld: xtcformat.cpp:(.text+0x2549): undefined reference to `xdr_float'
/usr/bin/ld: CMakeFiles/xtcformat.dir/xtcformat.cpp.o:xtcformat.cpp:(.text+0x255a): more undefined references to `xdr_float' follow

Steps to Reproduce

cmake --install build

The result happens with either gcc 11 or gcc 13.

probable duplicate of #1996

@welcome
Copy link

welcome bot commented Jun 15, 2023

Thanks for opening your first issue here! Be sure to follow the issue template!

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

No branches or pull requests

1 participant