Undefined reference to 'dlclose' Solution

Source: Internet
Author: User

Make [1]: Entering directory '/usr/local/sinasrv/PyCSF-1.0_Alpha_3@CSF-3.1.2 _ g2'
Gcc-I/usr/local/include-I. /confparser-I. /include-o csfd server. o protocol. o data. o mempool. o pipeline. o common. o main. o module. o monitor. o log. o-Wl-L/usr/local/lib-L. /confparser-lconfparser-levent-lpthread
Main. o: In function 'config _ exec ':
/Usr/local/sinasrv/PyCSF-1.0_Alpha_3@CSF-3.1.2 _ G2/main. c: 319: undefined reference to 'dlclose'
Module. o: In function 'Load _ protocol_mod ':
/Usr/local/sinasrv/PyCSF-1.0_Alpha_3@CSF-3.1.2 _ G2/module. c: 51: undefined reference to 'dlopen'
/Usr/local/sinasrv/PyCSF-1.0_Alpha_3@CSF-3.1.2 _ G2/module. c: 53: undefined reference to 'dlerror'
/Usr/local/sinasrv/PyCSF-1.0_Alpha_3@CSF-3.1.2 _ G2/module. c: 57: undefined reference to 'dlsym'
/Usr/local/sinasrv/PyCSF-1.0_Alpha_3@CSF-3.1.2 _ G2/module. c: 59: undefined reference to 'dlerror'
Module. o: In function 'init _ mod_config ':
/Usr/local/sinasrv/PyCSF-1.0_Alpha_3@CSF-3.1.2 _ G2/module. c: 113: undefined reference to 'dlopen'
/Usr/local/sinasrv/PyCSF-1.0_Alpha_3@CSF-3.1.2 _ G2/module. c: 115: undefined reference to 'dlerror'
/Usr/local/sinasrv/PyCSF-1.0_Alpha_3@CSF-3.1.2 _ G2/module. c: 120: undefined reference to 'dlsym'
/Usr/local/sinasrv/PyCSF-1.0_Alpha_3@CSF-3.1.2 _ G2/module. c: 123: undefined reference to 'dlerror'
/Usr/local/sinasrv/PyCSF-1.0_Alpha_3@CSF-3.1.2 _ G2/module. c: 127: undefined reference to 'dlclose'
/Usr/local/sinasrv/PyCSF-1.0_Alpha_3@CSF-3.1.2 _ G2/module. c: 136: undefined reference to 'dlclose'
/Usr/local/sinasrv/PyCSF-1.0_Alpha_3@CSF-3.1.2 _ G2/module. c: 144: undefined reference to 'dlclose'
Collect2: ld returned 1 exit status
Make [1]: *** [csfd] Error 1
Make [1]: Leaving directory '/usr/local/sinasrv/PyCSF-1.0_Alpha_3@CSF-3.1.2 _ g2'
Make: *** [update] Error 1
Cause:
Add-ldl to dlopen files during compilation
Add the following-ldl option to the LDFLAGS =-L/usr/local/lib-L./confparser-lconfparser-levent-lpthread-ldl column in Makefile. in

 

It cannot be added under lib/in the project.

Libmysql. so

Libmysql. so.16

Libmysql. so.16.0.0

Libmysqlclient.

Libmysqlclient. so

Libmysqlclient_r.so

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.