<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Rex,<br>
<br>
thanks for this!<br>
<br>
Rex Dieter wrote:
<blockquote cite="mid:h30q4f$jo5$1@ger.gmane.org" type="cite">
  <pre wrap="">Rex Dieter wrote:

  </pre>
  <blockquote type="cite">
    <pre wrap="">Howard Wilkinson wrote:

    </pre>
    <blockquote type="cite">
      <pre wrap="">I am building a version of Asterisk for use on Fedora 9 derived systems.
The environment is patched up to the latest updates. The Asterisk
Voicemail does not work unless linked against the static library for
c-client. This worked fine on the i386 platform but is failing with the
following message on the x86_64 platform.

/usr/bin/ld: /usr/lib64/c-client.a(osdep.o): relocation R_X86_64_32
against `a local symbol' can not be used when making a shared object;
recompile with -fPIC


Can anybody point me to what I need to change (presumably in the uw-imap
build) to get this to work?
      </pre>
    </blockquote>
    <pre wrap="">It needs (re)building with -fPIC compiler flag.  I can help fix that, but
F-9 has reached EOL, and no further updates are allowed.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
</blockquote>
I should have said, I have backported the F11 package to F9 and still
get the problem!<br>
<blockquote cite="mid:h30q4f$jo5$1@ger.gmane.org" type="cite">
  <pre wrap="">In the meantime, try this build:
<a class="moz-txt-link-freetext" href="http://koji.fedoraproject.org/koji/taskinfo?taskID=1460664">http://koji.fedoraproject.org/koji/taskinfo?taskID=1460664</a>
  </pre>
</blockquote>
Looked at this and not sure what to do! Have downloaded the binary
packages from the x86_64 subtask and will try them, but I would
normally rebuild here first and use the resulting packages.<br>
<blockquote cite="mid:h30q4f$jo5$1@ger.gmane.org" type="cite">
  <pre wrap="">
-- Rex

  </pre>
</blockquote>
To answer the question in your other response! Asterisk loads the
voicemail modules dynamically, with the imap version this fails as the
c-client library tries to bind back into entry points provided by the
voicemail module and the dynamic loader barfs - I suspect that symbols
are getting stripped to early somewhere but cannot pin it down. The
advice from the uw-imap mailing lists is "link with the static library"
so thats what I have done. The reasons I do not use the Fedora release
version of asterisk are: I am making changes to the voicemail code and
need to rebuild; I am still using the 1.4.x series of asterisk server
and have ported that latest release onto the Fedora build; I tend to
rebuild most things here as we have made some mods to core libraries
for various bug fixes. (nss_ldap being one in particular)<br>
<br>
Will let you know how I get one.<br>
<br>
Howard.<br>
<br>
</body>
</html>