Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem of error message in Unixbench installation

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces how to solve the problem of Unixbench installation error information, the article is very detailed, has a certain reference value, interested friends must read it!

Operating environment:

Ubuntu 16.04.3 x86_64

When you install and run Unixbench under Ubuntu, the error message is as follows

Gcc-o. / pgms/ubgears-DTIME-Wall-pedantic-ansi-O2-fomit-frame-pointer-fforce-addr-ffast-math-Wall. / src/ubgears.c-lGL-lXext-lX11 / usr/bin/ld: / tmp/ccnTgDEZ.o: undefined reference to symbol 'sincos@@GLIBC_2.2.5' / / lib/x86_64-linux-gnu/libm.so.6: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status Makefile:240: recipe For target 'pgms/ubgears' failed make: * * [pgms/ubgears] Error 1

By consulting the data, because mathematical functions are used in ubgears.c, and the corresponding mathematical functions can not be found in the actual run time, you only need to display the library of calling function functions, and add-lm after GL_LIBS in Makefile.

Use ld-v to view the ld tool version

Starting with binutils2.22, ld turns on-no-copy-dt-needed-entries by default, so that ld no longer automatically parses the linked lib recursively, but needs to be specified by the user one by one.

The above is all the contents of this article entitled "how to solve the problem of error messages in Unixbench installation". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report