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

Undefined reference to curl #71

Open
PradnyaP02 opened this issue Nov 18, 2023 · 1 comment
Open

Undefined reference to curl #71

PradnyaP02 opened this issue Nov 18, 2023 · 1 comment

Comments

@PradnyaP02
Copy link

Hello everyone,
I am new to this tool. Can anyone help me with following issue -

make: Entering directory '/home/pradnya/Desktop/pradnya_local/shapeit5_git/shapeit5/phase_common'
g++ -std=c++17 -O3 obj/main.o obj/genotype_set.o obj/bitvector.o obj/conditioning_set_selection.o obj/conditioning_set_managment.o obj/conditioning_set_solve.o obj/ibd2_tracks.o obj/haplotype_set.o obj/bitmatrix.o obj/window_set.o obj/variant_map.o obj/genotype_builder.o obj/hmm_parameters.o obj/genotype_managment.o obj/genotype_build.o obj/genotype_mendel.o obj/genotype_prune.o obj/genotype_sweep.o obj/variant.o obj/compute_job.o obj/phaser_parameters.o obj/phaser_finalise.o obj/phaser_management.o obj/phaser_initialise.o obj/phaser_algorithm.o obj/genotype_reader_managment.o obj/genotype_reader_scaning.o obj/genotype_reader_reading.o obj/haplotype_writer.o obj/haploid_reader.o obj/gmap_reader.o obj/graph_writer.o obj/pedigree_reader.o obj/haplotype_segment_double.o obj/haplotype_segment_single.o /usr/local/lib/libhts.a /usr/lib/x86_64-linux-gnu/libboost_iostreams.a /usr/lib/x86_64-linux-gnu/libboost_program_options.a -o bin/phase_common -lz -lpthread -lbz2 -llzma
/bin/ld: /usr/local/lib/libhts.a(hfile_libcurl.o): in function easy_errno': /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:224: undefined reference to curl_easy_strerror'
/bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:175: undefined reference to curl_easy_getinfo' /bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:189: undefined reference to curl_easy_getinfo'
/bin/ld: /usr/local/lib/libhts.a(hfile_libcurl.o): in function multi_errno': /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:246: undefined reference to curl_multi_strerror'
/bin/ld: /usr/local/lib/libhts.a(hfile_libcurl.o): in function wait_perform': /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:701: undefined reference to curl_multi_fdset'
/bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:733: undefined reference to curl_multi_perform' /bin/ld: /usr/local/lib/libhts.a(hfile_libcurl.o): in function process_messages':
/home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:677: undefined reference to curl_multi_info_read' /bin/ld: /usr/local/lib/libhts.a(hfile_libcurl.o): in function wait_perform':
/home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:704: undefined reference to curl_multi_timeout' /bin/ld: /usr/local/lib/libhts.a(hfile_libcurl.o): in function libcurl_close':
/home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1144: undefined reference to curl_multi_remove_handle' /bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1144: undefined reference to curl_multi_remove_handle'
/bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1148: undefined reference to curl_easy_cleanup' /bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1149: undefined reference to curl_multi_cleanup'
/bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1134: undefined reference to curl_easy_pause' /bin/ld: /usr/local/lib/libhts.a(hfile_libcurl.o): in function libcurl_write':
/home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:889: undefined reference to curl_easy_pause' /bin/ld: /usr/local/lib/libhts.a(hfile_libcurl.o): in function libcurl_exit':
/home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:282: undefined reference to curl_share_cleanup' /bin/ld: /usr/local/lib/libhts.a(hfile_libcurl.o): in function restart_from_position':
/home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1016: undefined reference to curl_easy_setopt' /bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1035: undefined reference to curl_easy_duphandle'
/bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1039: undefined reference to curl_easy_setopt' /bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1040: undefined reference to curl_easy_setopt'
/bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1041: undefined reference to curl_easy_setopt' /bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1051: undefined reference to curl_multi_add_handle'
/bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1072: undefined reference to curl_multi_remove_handle' /bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1085: undefined reference to curl_easy_cleanup'
/bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1087: undefined reference to curl_easy_setopt' /bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1088: undefined reference to curl_easy_setopt'
/bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1112: undefined reference to curl_easy_cleanup' /bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1104: undefined reference to curl_easy_reset'
/bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1105: undefined reference to curl_multi_remove_handle' /bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1075: undefined reference to curl_easy_reset'
/bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1076: undefined reference to curl_multi_remove_handle' /bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1078: undefined reference to curl_easy_cleanup'
/bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1091: undefined reference to curl_easy_reset' /bin/ld: /usr/local/lib/libhts.a(hfile_libcurl.o): in function libcurl_read':
/home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:826: undefined reference to curl_easy_pause' /bin/ld: /usr/local/lib/libhts.a(hfile_libcurl.o): in function libcurl_open':
/home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1214: undefined reference to curl_multi_init' /bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1217: undefined reference to curl_easy_init'
/bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1221: undefined reference to curl_easy_setopt' /bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1225: undefined reference to curl_easy_setopt'
/bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1233: undefined reference to curl_easy_setopt' /bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1234: undefined reference to curl_easy_setopt'
/bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1235: undefined reference to curl_easy_setopt' /bin/ld: /usr/local/lib/libhts.a(hfile_libcurl.o):/home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1242: more undefined references to curl_easy_setopt' follow
/bin/ld: /usr/local/lib/libhts.a(hfile_libcurl.o): in function libcurl_open': /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1352: undefined reference to curl_easy_cleanup'
/bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1353: undefined reference to curl_multi_cleanup' /bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1257: undefined reference to curl_easy_setopt'
/bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1265: undefined reference to curl_easy_setopt' /bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1266: undefined reference to curl_easy_setopt'
/bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1273: undefined reference to curl_multi_add_handle' /bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1281: undefined reference to curl_easy_getinfo'
/bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1301: undefined reference to curl_easy_setopt' /bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1302: undefined reference to curl_easy_setopt'
/bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1303: undefined reference to curl_easy_setopt' /bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1314: undefined reference to curl_easy_getinfo'
/bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1345: undefined reference to curl_multi_remove_handle' /bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1262: undefined reference to curl_easy_setopt'
/bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1228: undefined reference to curl_easy_setopt' /bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1229: undefined reference to curl_easy_setopt'
/bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1324: undefined reference to curl_easy_setopt' /bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1325: undefined reference to curl_easy_setopt'
/bin/ld: /usr/local/lib/libhts.a(hfile_libcurl.o):/home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1268: more undefined references to curl_easy_setopt' follow /bin/ld: /usr/local/lib/libhts.a(hfile_libcurl.o): in function libcurl_open':
/home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1335: undefined reference to curl_easy_getinfo' /bin/ld: /usr/local/lib/libhts.a(hfile_libcurl.o): in function hfile_plugin_init_libcurl':
/home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1514: undefined reference to curl_global_init' /bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1517: undefined reference to curl_share_init'
/bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1519: undefined reference to curl_share_setopt' /bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1520: undefined reference to curl_share_setopt'
/bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1521: undefined reference to curl_share_setopt' /bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1547: undefined reference to curl_version_info'
/bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1523: undefined reference to curl_share_cleanup' /bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1524: undefined reference to curl_global_cleanup'
/bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1536: undefined reference to curl_share_cleanup' /bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:1537: undefined reference to curl_global_cleanup'
/bin/ld: /usr/local/lib/libhts.a(hfile_libcurl.o): in function libcurl_exit': /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_libcurl.c:304: undefined reference to curl_global_cleanup'
/bin/ld: /usr/local/lib/libhts.a(hfile_s3.o): in function s3_sha256': /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3.c:117: undefined reference to SHA256'
/bin/ld: /usr/local/lib/libhts.a(hfile_s3.o): in function s3_sign_sha256': /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3.c:122: undefined reference to EVP_sha256'
/bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3.c:122: undefined reference to HMAC' /bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3.c:122: undefined reference to EVP_sha256'
/bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3.c:122: undefined reference to HMAC' /bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3.c:122: undefined reference to EVP_sha256'
/bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3.c:122: undefined reference to HMAC' /bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3.c:122: undefined reference to EVP_sha256'
/bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3.c:122: undefined reference to HMAC' /bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3.c:122: undefined reference to EVP_sha256'
/bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3.c:122: undefined reference to HMAC' /bin/ld: /usr/local/lib/libhts.a(hfile_s3.o): in function s3_sign':
/home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3.c:110: undefined reference to EVP_sha1' /bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3.c:110: undefined reference to HMAC'
/bin/ld: /usr/local/lib/libhts.a(hfile_s3_write.o): in function s3_write_exit': /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3_write.c:826: undefined reference to curl_share_cleanup'
/bin/ld: /usr/local/lib/libhts.a(hfile_s3_write.o): in function cleanup_local': /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3_write.c:190: undefined reference to curl_easy_cleanup'
/bin/ld: /usr/local/lib/libhts.a(hfile_s3_write.o): in function set_html_headers': /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3_write.c:206: undefined reference to curl_slist_append'
/bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3_write.c:207: undefined reference to curl_slist_append' /bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3_write.c:208: undefined reference to curl_slist_append'
/bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3_write.c:209: undefined reference to curl_slist_append' /bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3_write.c:210: undefined reference to curl_slist_append'
/bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3_write.c:216: undefined reference to curl_easy_setopt' /bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3_write.c:213: undefined reference to curl_slist_append'
/bin/ld: /usr/local/lib/libhts.a(hfile_s3_write.o): in function upload_part': /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3_write.c:430: undefined reference to curl_slist_free_all'
/bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3_write.c:402: undefined reference to curl_easy_reset' /bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3_write.c:404: undefined reference to curl_easy_setopt'
/bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3_write.c:405: undefined reference to curl_easy_setopt' /bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3_write.c:406: undefined reference to curl_easy_setopt'
/bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3_write.c:407: undefined reference to curl_easy_setopt' /bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3_write.c:408: undefined reference to curl_easy_setopt'
/bin/ld: /usr/local/lib/libhts.a(hfile_s3_write.o):/home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3_write.c:409: more undefined references to curl_easy_setopt' follow /bin/ld: /usr/local/lib/libhts.a(hfile_s3_write.o): in function upload_part':
/home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3_write.c:416: undefined reference to curl_easy_perform' /bin/ld: /usr/local/lib/libhts.a(hfile_s3_write.o): in function initialise_upload':
/home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3_write.c:613: undefined reference to curl_easy_setopt' /bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3_write.c:614: undefined reference to curl_easy_setopt'
/bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3_write.c:615: undefined reference to curl_easy_setopt' /bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3_write.c:616: undefined reference to curl_easy_setopt'
/bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3_write.c:617: undefined reference to curl_easy_setopt' /bin/ld: /usr/local/lib/libhts.a(hfile_s3_write.o):/home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3_write.c:618: more undefined references to curl_easy_setopt' follow
/bin/ld: /usr/local/lib/libhts.a(hfile_s3_write.o): in function initialise_upload': /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3_write.c:625: undefined reference to curl_easy_perform'
/bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3_write.c:638: undefined reference to curl_slist_free_all' /bin/ld: /usr/local/lib/libhts.a(hfile_s3_write.o): in function abort_upload':
/home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3_write.c:255: undefined reference to curl_easy_reset' /bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3_write.c:256: undefined reference to curl_easy_setopt'
/bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3_write.c:257: undefined reference to curl_easy_setopt' /bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3_write.c:258: undefined reference to curl_easy_setopt'
/bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3_write.c:260: undefined reference to curl_easy_setopt' /bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3_write.c:263: undefined reference to curl_easy_perform'
/bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3_write.c:277: undefined reference to curl_slist_free_all' /bin/ld: /usr/local/lib/libhts.a(hfile_s3_write.o): in function s3_write':
/home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3_write.c:455: undefined reference to curl_easy_getinfo' /bin/ld: /usr/local/lib/libhts.a(hfile_s3_write.o): in function complete_upload':
/home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3_write.c:347: undefined reference to curl_slist_free_all' /bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3_write.c:321: undefined reference to curl_easy_reset'
/bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3_write.c:322: undefined reference to curl_easy_setopt' /bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3_write.c:323: undefined reference to curl_easy_setopt'
/bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3_write.c:324: undefined reference to curl_easy_setopt' /bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3_write.c:325: undefined reference to curl_easy_setopt'
/bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3_write.c:326: undefined reference to curl_easy_setopt' /bin/ld: /usr/local/lib/libhts.a(hfile_s3_write.o):/home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3_write.c:327: more undefined references to curl_easy_setopt' follow
/bin/ld: /usr/local/lib/libhts.a(hfile_s3_write.o): in function complete_upload': /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3_write.c:333: undefined reference to curl_easy_perform'
/bin/ld: /usr/local/lib/libhts.a(hfile_s3_write.o): in function s3_close': /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3_write.c:506: undefined reference to curl_easy_getinfo'
/bin/ld: /usr/local/lib/libhts.a(hfile_s3_write.o): in function s3_write_open': /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3_write.c:681: undefined reference to curl_easy_init'
/bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3_write.c:726: undefined reference to curl_easy_getinfo' /bin/ld: /usr/local/lib/libhts.a(hfile_s3_write.o): in function hfile_plugin_init_s3_write':
/home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3_write.c:859: undefined reference to curl_global_init' /bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3_write.c:866: undefined reference to curl_share_init'
/bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3_write.c:874: undefined reference to curl_share_setopt' /bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3_write.c:875: undefined reference to curl_share_setopt'
/bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3_write.c:876: undefined reference to curl_share_setopt' /bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3_write.c:885: undefined reference to curl_version_info'
/bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3_write.c:879: undefined reference to curl_share_cleanup' /bin/ld: /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3_write.c:880: undefined reference to curl_global_cleanup'
/bin/ld: /usr/local/lib/libhts.a(hfile_s3_write.o): in function s3_write_exit': /home/pradnya/Desktop/pradnya_local/htslib-1.16/hfile_s3_write.c:831: undefined reference to curl_global_cleanup'
collect2: error: ld returned 1 exit status
make: *** [makefile:129: bin/phase_common] Error 1

All the required libraries are installed. What is the issue in libcurl linking?? how to resolve this ??

Thanks in advance!

@dtaliun
Copy link

dtaliun commented Dec 7, 2023

Check if you have added -lcurl in the makefile:
system: DYN_LIBS=-lz -lpthread -lbz2 -llzma => system: DYN_LIBS=-lz -lpthread -lbz2 -llzma -lcurl
You may want also to add: -ldeflate -lcrypto

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

2 participants