Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Squid: "Undefined symbol "_ZTVNSt3__117bad_function_callE" after upgrade to 2.8

    Scheduled Pinned Locked Moved Cache/Proxy
    21 Posts 10 Posters 5.9k Views 9 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D Offline
      DC_Sh0X
      last edited by

      I "manually" fixed this issue easily, without moving any library anywhere, because that could break other executables that depend on libc++.so.

      Simply:
      scp the squid binary to your FreeBSD/Linux Desktop.
      if you do:

      patchelf --print-rpath squid
      

      You will see:

      /usr/local/lib:/usr/lib:/usr/local/lib
      

      This is the default RPATH of the executable.
      We can change this by doing:

      patchelf --set-rpath   /lib:/usr/local/lib:/usr/lib:/usr/local/lib squid
      

      This will force squid to look into the /lib folder first. There lives a version of libc++.so.1 that is compatible with squid.
      After this, just copy back the squid executable to /usr/local/sbin/ .

      Problem solved 😳 👍

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.