View previous topic :: View next topic |
Author |
Message |
ramsesii n00b
Joined: 07 Dec 2004 Posts: 28 Location: vienna
|
Posted: Sat Jan 08, 2005 9:00 pm Post subject: ERROR emerging courier-authlibs - needed for vpopmail/qmail! |
|
|
hello ng!
to install qmail i need vpopmail AND courier-imap. on courier-imap depends courier-authlibs (V. 0.52-r1). vpopmail compiles perfectly but on emerging the authlibs the error occurs.
--snip--
Linking libauthvchkpw.la
Linking authdaemontest
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld:
/var/vpopmail/lib/libvpopmail.a(cdb_seek.o): relocation R_X86_64_PC32 against
`read@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
comment: i recompiled vpopmail with CFLAGS="...... -fPIC" - didnt change anything.
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld:
final link failed: Bad value
collect2: ld returned 1 exit status
make[2]: *** [libauthvchkpw.la] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory
`/var/tmp/portage/courier-authlib-0.52-r1/work/courier-authlib-0.52'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/courier-authlib-0.52-r1/work/courier-authlib-0.52'
make: *** [all] Error 2
!!! ERROR: net-libs/courier-authlib-0.52-r1 failed.
!!! Function src_compile, Line 95, Exitcode 2
!!! Compile problem
--snap--
thanx very much for helping - hope sb can solve that!
a bug has already opend: 77160
best regards
mario |
|
Back to top |
|
|
ramsesii n00b
Joined: 07 Dec 2004 Posts: 28 Location: vienna
|
Posted: Mon Jan 10, 2005 3:14 am Post subject: |
|
|
...going up.... |
|
Back to top |
|
|
ramsesii n00b
Joined: 07 Dec 2004 Posts: 28 Location: vienna
|
Posted: Mon Jan 17, 2005 11:48 am Post subject: |
|
|
--pumping up-- |
|
Back to top |
|
|
gdave44 n00b
Joined: 26 Aug 2003 Posts: 9 Location: New Mexico, USA
|
Posted: Sat Feb 05, 2005 4:49 pm Post subject: authdaemontest |
|
|
If it makes you feel any better, I've got the same problem...
no solution yet |
|
Back to top |
|
|
ballyn n00b
Joined: 14 Aug 2003 Posts: 73
|
Posted: Sat Feb 05, 2005 7:51 pm Post subject: |
|
|
It looks like courier-authlib-0.53 has been marked stable for amd64... compiles cleanly on my box. |
|
Back to top |
|
|
gdave44 n00b
Joined: 26 Aug 2003 Posts: 9 Location: New Mexico, USA
|
Posted: Sun Feb 06, 2005 3:48 am Post subject: |
|
|
don't know what I'm missing. Did a fresh install with 2004.3 and have the error. Tried recompiling glibc gcc and vpopmail to no avail. There's probably a missing package or maybe a bad use flag. |
|
Back to top |
|
|
decay n00b
Joined: 09 Jul 2003 Posts: 36
|
Posted: Fri Feb 11, 2005 2:19 pm Post subject: |
|
|
i've found the solution
go put -fPIC option in your CFLAGS
then emerge --unmerge vpopmail
then emerge =sys-devel/binutils-2.15.90.0.1.1-r3
then emerge vpopmail
then emerge net-mail/courier-imap or net-libs/courier-authlib
or whatever you'd like ))
Have phun ! |
|
Back to top |
|
|
odioworks_com Tux's lil' helper
Joined: 23 Jan 2005 Posts: 82 Location: Charlottesville, Virginia
|
Posted: Wed May 11, 2005 5:35 am Post subject: |
|
|
decay wrote: | i've found the solution
go put -fPIC option in your CFLAGS
then emerge --unmerge vpopmail
then emerge =sys-devel/binutils-2.15.90.0.1.1-r3
then emerge vpopmail
then emerge net-mail/courier-imap or net-libs/courier-authlib
or whatever you'd like ))
Have phun ! |
Does this work for you guys?
I have a very similar problem... whenever I do an emerge -u world:
Linking authdaemontest
/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/bin/ld: unrecognized option '-Wl'
/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
distcc[16924] ERROR: compile (null) on localhost failed
make[2]: *** [libauthmysql.la] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/courier-authlib-0.55/work/courier-authlib-0.55'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/courier-authlib-0.55/work/courier-authlib-0.55'
make: *** [all] Error 2
!!! ERROR: net-libs/courier-authlib-0.55 failed.
!!! Function src_compile, Line 100, Exitcode 2
!!! Compile problem
!!! If you need support, post the topmost build error, NOT this status message. |
|
Back to top |
|
|
isolationism Tux's lil' helper
Joined: 01 Nov 2004 Posts: 127
|
Posted: Wed May 11, 2005 7:29 pm Post subject: |
|
|
Okay, I think I've got my courier-imap issues resolved now. Here is what I learned.
First, you need to update your portage tree -- A new ebuild for vpopmail (vpopmail-5.5.0) has been created as of 2005-May-09.
Next, you will need to edit the portage package.mask file to remove the hard mask on vpopmail versions above 5.4.9. Note there is probably a "better" way to do unmask this ebuild but I don't know what that is. Corrections are welcomed. Code: | nano -w /usr/portage/profiles/package.mask |
Change this line: Code: | >=net-mail/vpopmail-5.4.9-r1 |
To this: Code: | # >=net-mail/vpopmail-5.4.9-r1 |
Now add the net-mail/vpopmail-5.5.0 package to your package.keywords file: Code: | echo =net-mail/vpopmail-5.5.0 ~amd64 >> /etc/portage/package.keywords |
Confirm that the right package is going to be built: Code: | emerge -pv vpopmail |
If it comes back with "net-mail/vpopmail-5.5.0" you're good to go.
Once it's done emerging the new ebuild of vpopmail, you should now be able to emerge courier-authlib: Code: | emerge courier-authlib |
But you're not out of the woods, yet. When you try to emerge courier-imap, it will likely fail due to a problem with fam.h. Another ticket, bug 89478, includes the solution: Code: | nano -w /usr/include/fam.h |
Now go to line 44 (CTRL-W, CTRL-T, 44). Change from the following: Code: | #include "limits.h" |
to Code: | #include <limits.h> |
... and save the file. Now you can install courier-imap: Code: | emerge courier-imap |
and voila. Worked like a charm for me.
** Update **: I am doing the same thing all over again on a new server and ran into the same problem. The 5.5.0 ebuild was obviously a mistake (as it doesn't exist yet); you should check the portage tree to see what the latest "testing" version available is and use that instead. I used the latest version but otherwise followed my own instructions above and everything compiled cleanly.
Last edited by isolationism on Tue Nov 22, 2005 5:24 am; edited 1 time in total |
|
Back to top |
|
|
tradenet n00b
Joined: 31 Jan 2004 Posts: 49
|
Posted: Thu Jul 07, 2005 1:36 pm Post subject: |
|
|
isolationism wrote: | Okay, I think I've got my courier-imap issues resolved now. Here is what I learned.
First, you need to update your portage tree -- A new ebuild for vpopmail (vpopmail-5.5.0) has been created as of |
I don't see this ebuild in the portage tree at all. I have the same issue with building courier-imap against the stage 3 install.
Tried all the other things above too. Has anyone else got any ideas? |
|
Back to top |
|
|
tradenet n00b
Joined: 31 Jan 2004 Posts: 49
|
Posted: Thu Jul 07, 2005 2:21 pm Post subject: Finally! -SOLVED- |
|
|
For me any way.
What I did was emerge the latest masked packages (at this date; 5.4.10 & 4.0.1-r2) both vpopmail and courier-imapd.
I left the -fPIC cflag in place. I don't know if that makes any difference. |
|
Back to top |
|
|
|