Friday, May 27, 2016

Return of the static

While working on some go code recently, I hit a problem which was a bit perplexing:

# command-line-arguments
/usr/bin/ld: cannot find -lpthread
/usr/bin/ld: cannot find -lc
collect2: error: ld returned 1 exit status
/usr/lib/golang/pkg/tool/linux_amd64/6l: running gcc failed: unsuccessful exit status 0x100

After some consideration, and examination of the go command
go build -v -ldflags '-extldflags '\''-static'\'' -X github.com/xxxx/xxxx.buildVersion=1' -o pkg/xxxx-linux-amd64 main.go
I remembered a change to do with the packaging of static libraries, that is, they are not installed by default on RHEL/CentOS.
A simple
yum install glibc-static
was all that was required

135 comments:

  1. The article is interesting and useful. I tried it and found it really useful. Thank you very much. gmail login

    ReplyDelete
    Replies
    1. IEEE Final Year Project centers make amazing deep learning final year projects ideas for final year students Final Year Projects for CSE to training and develop their deep learning experience and talents.

      IEEE Final Year projects Project Centers in India are consistently sought after. Final Year Students Projects take a shot at them to improve their aptitudes, while specialists like the enjoyment in interfering with innovation.

      corporate training in chennai corporate training in chennai

      corporate training companies in india corporate training companies in india

      corporate training companies in chennai corporate training companies in chennai

      I have read your blog its very attractive and impressive. I like it your blog. Digital Marketing Company in Chennai

      Delete
    2. Osm! This post is very informative and effective. I got what I was looking for. Here to say thank you. Thanks for sharing WhatsApp Plus valuable content.

      Delete
  2. Interesting facts and points cover in this blog post, these coding styles will help any software developer. Kanye West Jacket

    ReplyDelete
  3. Thank you for sharing information. Its very nice
    driversin.com

    ReplyDelete
  4. I wish I saw this information sooner
    - roll the ball -

    ReplyDelete
  5. get the new Apk version free download Read More

    ReplyDelete

  6. It's surprising you aren't more popular given that you definitely possess the gift.
    youcam makeup

    ReplyDelete
  7. Thanks for sharing this lovely happy article helix jump

    ReplyDelete
  8. I have a vast collection of funny wifi names see if i able to make you smile.

    kinemaster mod apk

    ReplyDelete
  9. Your topic is very great and useful for us…thank you
    five nights at freddy's

    ReplyDelete
  10. Just upload your media and click the "Add Text" button to insert your text overlay. You can use our straightforward drag and drop editor to place text exactly where you want to on top of your video. Perfect for watermarking video or adding the right captions!

    Kinemaster mod apk
    kinemaster for windows

    ReplyDelete
  11. A fun way of entertainment may be quite suitable for office workers or those who prefer simplicity. Bomb It or Bomberman like bomber friends mod apk

    ReplyDelete
  12. It’s great because of the knowledge you share with us, I will always follow your blog and will share your blog with my friends
    2 player games

    ReplyDelete
  13. Thanks for the article, but can I get free netflix acc with pass in a easy way? Like this site: netflix tricks free

    ReplyDelete
  14. Thanks a lot for the post. It has helped me get some nice ideas. I hope I will see some really good result soon.

    gmail sign up
    hotmail email login


    ReplyDelete
  15. If you wan to download Powerdirector Pro Mod Apk then just follow the link you will get the premium apk for free

    ReplyDelete
  16. download Gsm aladdin latest version follow the link

    ReplyDelete
  17. If you are looking for best video editor for android then today i will share with you 100% working inshot pro apk just click here to download paid version

    ReplyDelete
  18. Sociology Coursework Writing Services has become a significant challenge owing to the complexity of Sociology Assignment Writing Services and in other cases lack of time and knowledge needed to prepare Sociology Research Paper Writing Services.

    ReplyDelete
  19. Wow!! Thanks for sharing such a informative post, it is really helpful for me. If you have many any type of printer issues or printer setup problem then visit our official website or call our toll free number we are their for you at anytime.
    hp 123 com

    ReplyDelete
  20. It is important for biology coursework writing service students to seek Biology Essay Writing Services from a reputable biology research paper service provider for their biology assignment writing services.

    ReplyDelete
  21. Assignment Help UAE is one where the pool of knowledge is spread all through the world. in this each and every piece of topics are discussed by our experts in full attention.
    mba essay help

    ReplyDelete
  22. VivaVideo PRO is one of the best professional video editor & photo slideshow maker apps to make awesome videos!
    read more read more

    ReplyDelete
  23. Thank you for sharing valuable information. Nice post. I enjoyed reading this post.
    someone still unable to resolve their problem may prefer that site too.
    Can I Fix HP Color LaserJet Pro mfp m281fdw Printer is not Printing
    Connect Brother Printer to Wifi

    ReplyDelete
  24. Among other courses, tourism writing services has become popular since students seek Tourism & Leisure Writing Services and tourism assignment writing services.

    ReplyDelete
  25. Great Post !! Thanks for sharing this information.
    Reaching Email Support expert is easy now.

    At&t Email Helpline Number
    Email Helpline Number
    At&t mail Helpline Number

    ReplyDelete
  26. hello recently i find a pro version of kinemaster that has all premium feature are unlocked for free download click here

    ReplyDelete
  27. Open apk file

    https://openapkfile.xyz

    ReplyDelete
  28. Get the best Economics Assignment Help online at Fullassignment.com . We have the best writers for 100% plagiarism free Assignment Help .
    For more info please visit our website: https://www.fullassignment.com/
    WhatsApp : +1-6692714848

    ReplyDelete
  29. I understand what you were feeling. Putting so much effort into something you did, only to realize it was messed up and made to appear a failure by A SINGLE LINE OF CODE. This was also an issue when we were setting up https://www.towtruckipswich.com/

    ReplyDelete
  30. Seeking psychology research writing services are very common nowadays since there are very many students in need of Psychology Coursework Writing Services and psychology assignment writing services.

    ReplyDelete
  31. It is important for business management assignment help seekers to find the best Business Management Writing Services from a reputable business management paper writing service provider for their custom business management essay services.

    ReplyDelete
  32. This comment has been removed by the author.

    ReplyDelete
  33. Thank you so much for ding the impressive job here, everyone will surely like your post.sarms vs legal steroids

    ReplyDelete
  34. Are you looking for latest viva video pro apk?
    Then visit the Vivavideo pro apk now and Download vivavideo pro apk. Thanks

    ReplyDelete
  35. Good to read your blog again, it's been months for me. I need this article to finish my college assignment. Thank you. HP Error Code B0605

    ReplyDelete
  36. Norton is one of the trendiest antiviruses everywhere throughout the world.Best

    solution for saving your time.Go to norton.
    www.norton.com/setup
    norton.com/setup
    norton setup

    ReplyDelete
  37. Hello this site is very good and responsive,for hosting for the purpose of getting

    informative stuff.thank you.
    www.Webroot.com/safe
    Webroot.com/safe
    webroot/safe

    ReplyDelete
  38. Norton is one of the trendiest antiviruses everywhere throughout the world.Best

    solution for saving your time.Go to norton.
    www.Webroot.com/safe
    Webroot.com/safe
    webroot/safe

    ReplyDelete
  39. This is a really useful blog. I really enjoyed reading this blog. It was explained and structured with perfection.www.webroot.com/safe

    ReplyDelete
  40. Yep, a simple yum install glibc-static is all that's needed. I've encountered issues similar to this when I was still offering lawn mowing service in Toowoomba and I learned to look with my eyes instead of my mouth because of them.

    ReplyDelete
  41. African American Studies research writing services are essential for African American research writing service learners and African American Writing Services seekers.

    ReplyDelete
  42. very nice post thanks for sharing with us
    technocare tricks

    ReplyDelete
  43. Hey, thank you a lot for sharing this article with us. I can’t say, how grateful we are to read this. Also, I would love to share it with my friends and family, who are interested. I hope you will publish such articles in the future as well. It’s so helpful. Goodbye! Take a look at this wonderful article and download clash of clans MOD APK 2021 for free And visit netflix premium apk.

    ReplyDelete
  44. Canon.com/ijsetup offers the Printer Setup download link where you can install the printer setup further.

    ReplyDelete

  45. The best thing about Escorts Service in Mahipalpur, Delhi agency is that we have not just a few college girls for you to choose from but a whole collection of erotic girls simply waiting to have sex with their clients and it would not be courteous to not fulfill a girl’s wishes, right? If you are concerned about how you the whole booking will be carried out and other questions about the mode of payment then you can call us at Call Girls in Jaipur, Delhi agency and one of our receptionists will be glad to help you out.
    Escorts Service in Vasant Vihar
    Escorts Service in Aerocity
    Housewife Escorts in Gurgaon
    Call Girls in Paharganj

    ReplyDelete
  46. Whatsapp mod most utility address 2021 and always updated by heymods.net, free download safe reputation quality.

    ReplyDelete
  47. Are you looking for someone who can solve assignments quickly? if yes, then UAE Assignment Help provides assignment help online. we have a great team nerd who provides high-quality assignments at a low cost.We Bring Assignment Help To Life

    ReplyDelete
  48. If you want to find the most caring wife in the world, I confidently say that you should look for your love in Ukraine. The Ukrainian girl has children wearing two hats, her husband always has a sandwich in his work briefcase. She has time to get medicine for her sick grandfather and an hour to talk to Aunt Sonya, who has no one else to discuss the nature of the cat, the weather and the quality of the yarn. So I want to recommend you the easiest way to find love in Ukraine this site-ukrainian mail order wives.This is the fastest and easiest way to find your love.

    ReplyDelete
  49. This is really too useful and have more ideas from yours. keep sharing many techniques. eagerly waiting for your new blog and useful information. Aapki Nazron Ne Samjha

    ReplyDelete
  50. I wondered for a long time where a respectable girl could be found. This issue was supported by one website. They soon discovered the best service to locate bulgarian women, with whom my life was taken on a new level. The Bulgarian brides have the carefree charm of sea womanes, but much more fascinating is their character and beauty. To those looking for their love, I suggest the blog. If you understood that my new girlfriend was Bulgarian, and I absolutely do not regret that my bride services were being used. Anyone looking for love I suggest the website.

    ReplyDelete
  51. My assignment help Now, who help students globally at all academic level. We work 24*7 so that you don’t need to wait for any certain time, you can reach us any time. For our assignment help you can directly get into touch with our expert.

    ReplyDelete
  52. When you are tired, visit my website to relax!
    sudoku 247

    ReplyDelete
  53. here you can Download GBWhatsapp APK for your device.
    Visit official Site quickapks.com Free APK Download For Android

    ReplyDelete
  54. This comment has been removed by the author.

    ReplyDelete
  55. Really good blog, especially i like it sharing your topic. kinemaster diamond apk

    ReplyDelete
  56. fantasy cricket app, If you have good knowledge of cricket you can win huge amount by using of skill at top 10 fantasy cricket
    apps or new fantasy cricket app many and more people are earn amount at this new fantasy app.
    To play in it, first of all download its application, sign and select your team and you can play.
    When selecting a team, you should have a good knowledge about the player, that is, how was the performance of the
    selected player in the last match Select the captain by looking at the same record.
    top 10 fantasy cricket apps

    ReplyDelete
  57. Hey, thank you a lot for sharing this article with us.I hope you will publish such articles in the future as well. It’s so helpful. Goodbye! Take a look at this wonderful article. Kinemaster Mod Apk

    ReplyDelete
  58. Great Post !! Thanks for sharing this information.
    Reaching Email Support expert is easy now.

    Best Baltimore Electricians

    ReplyDelete
  59. It’s great because of the knowledge you share with us, I will always follow your blog and will share your blog with my friends
    Paypal Login

    ReplyDelete
  60. Good News received from the ( COC MOD and GBWhatsapp ) ... This are the only sites that offers us all the latest updated WhatsApp Alternatives.. We can use this WhatsApp on our phone for our primary and secondary WhatsApp numbers...I thought it will be useful for us..That's why I shared it with all of us...Thank you

    ReplyDelete
  61. Thanks for some other informative website. Where else could I get that kind of info written in such a perfect way? I’ve a challenge that I am simply now running on, and I have been on the glance out for such information. ufabet168

    ReplyDelete
  62. Hi! this is nice article you shared with great information. Thanks for giving such a wonderful informative information. Do check
    Paypal Login
    gemini login

    ReplyDelete
  63. Nice Blog. Thanks for sharing with us. Such amazing information.

    Should We Apply Henna for Healthy Hair Growth?

    ReplyDelete
  64. Your blog provided us with valuable information to work with. Each & every tips of your post are awesome. Thanks a lot for sharing. Keep blogging,
    skazkaplus

    ReplyDelete
  65. If your carrier allows it, you can view your APN settings in one of the following locations: Settings > Cellular > Cellular Data Options > Cellular Network. Settings > Mobile Data > Mobile Data Options > Mobile Data Network



    jio 4g apn settings
    jio 4g apn settings
    vi vodafone idea apn settings
    apn settings for airtel
    Bsnl Apn Settings
    bsnl balance check number tamilnadu
    jio 4g apn settings

    ReplyDelete
  66. Nice post! This is a very nice blog that I will definitively come back to more times this year! Thanks for informative post.keto advanced 1500 review

    ReplyDelete
  67. It read your article every thing is clear , Thanks for sharing.
    Do check
    Telstra email login

    ReplyDelete
  68. I was more than happy to discover this website. I need to to thank you for ones time for this particularly fantastic read!! I definitely liked every bit of it and i also have you saved to fav to see new information in your website. ufabet1688

    ReplyDelete
  69. Priya Chaudhary Label is online designer clothing store to buy Kurti/Kurta, tops, shirts, dresses, pants, palazzos, dupattas, pajama, kaftans & mask for Women .
    Dupatta for women
    Kurta sets for women
    palazzo for women
    dresses for women
    pants for women

    ReplyDelete
  70. Allied Paralegal Services is a licensed paralegal with the Law Society of Ontario, offering a wide range of legal assistance to our clients. Backed by years of experience and exhaustive knowledge, we provide the favorable results you come looking for.
    Paralegal Near me
    paralegal advisors
    court near me
    court near me
    Expert Paralegal Service
    lawyer licensing process

    ReplyDelete
  71. Thanks for the detailed info on this topic. It’s very hard to find nowadays to know about the basics but you did it so much well and I loved it . I would love to see more about FMWhatsApp

    ReplyDelete
  72. Composing with style and getting great compliments on the article is very hard, to be honest.But you've done it so serenely and with so cool feeling and you've nailed the activity. This article is had with style and I am giving great compliment. Best! ufabet168

    ReplyDelete
  73. Students may find the assignment problem and supervisors' expectations difficult to understand, or they may lack the time or writing skills to work on the assignments due to a lack of time or strong writing qualities. We look after your abilities and help you reach good scores in all subjects. Get Pay someone to do my homework online that is focused on the pleasure and immediate satisfaction of students.

    ReplyDelete
  74. Thanks for the detailed info on this topic. It’s very hard to find nowadays to know about the basics but you did it so much well and I loved it . I would love to see more about fouadmods.com

    ReplyDelete
  75. If you are looking for expert tree services in the Pittsburgh, PA area.

    We are certified and trustworthy tree pruning pittsburgh

    ReplyDelete
  76. Your music is amazing. You have some very talented artists. I wish you the best of success.
    www.activilla.com

    ReplyDelete
  77. Admiring the time and effort you put into your blog and detailed information you offer!..
    купить айфон спб

    ReplyDelete
  78. Your music is amazing. You have some very talented artists. I wish you the best of success.
    геодезическая фирма

    ReplyDelete
  79. Great article, I love your write up and your page arrangement. It really interesting. Not many people can write like you. I will surely bookmark this site to visit often. Teaching Job Vacancies in Abuja 2021

    ReplyDelete
  80. Your blog provided us with valuable information to work with. Thanks for sharing your ideas. Phd Teaching Jobs

    ReplyDelete
  81. Thanks for your valuable post. Please post some more related topics. We are on your page only to read your blog because, as you know, there is no other as educative as yours. Like you, we also share some information on our site! So if any of you need any type of help on Nigerian law school admission letter

    ReplyDelete
  82. Thanks for this awesome post. Please upload content that are related to tree trimming service If you have experience about that. If none, no problem. We understand.

    ReplyDelete
  83. I am here now and just want to say thank you for a tremendous post and an all-around entertaining website. It is an extraordinary site you have here…I sincerely acknowledge BLOGGERS like you! MMPI test online reddit

    ReplyDelete
  84. Looking for Low Prices on Tree Services In Tampa, FL? Tampa Tree Service here for you.
    Check out our website - tampa-tree.com

    ReplyDelete
  85. You are doing a tremendous job. It is very enlightening and achieves what it desires. I will make sure that I read all of your blogs in future. It will definitively enhance my knowledge.
    Do check
    Paypal Login
    gemini login

    ReplyDelete
  86. There is no way to get this useful info your way. Its very fabulous and easy for me to get it from FMWhatsApp. I am very thankful and I appreciate your intelligent work. Awesome!!

    ReplyDelete
  87. We do not underestimate the knowledge and skills of students by offering our assignment services but present ourselves with a guide for writing high-quality assignments that help you achieve significant-good scores. Get Free reference generator help online from us and ensure you achieve a high level of accomplishment in assignments, essays, term research papers and research work.

    ReplyDelete
  88. Good website with useful info. Thanks for sharing. See this Eid Mubarak Wishes SMS

    ReplyDelete
  89. You have shared amazing information for students. Thanks for sharing. Read: Happy Ugadi 2021 Images

    ReplyDelete