> > /usr/lib/gcc-lib/alpha-linux/3.3.5/../../../crt1.o(.text+0x10):../sys > > deps /alpha/elf/start.S:37: undefined reference to `main' > I have a hard time seeing how that problem could be caused by libtool, > or by AFS. That error message sounds like a misinstalled or > malfunctioning compiler to me.
Got another example for you. This time it's your own package that fails!
=)
This happens on AFS with Debian libpam-krb5 1.2.0. It compiles fine on the
very same system with files on XFS.
~> dpkg-buildpackage -uc -b -rfakeroot
[blahblahblah]
make[1]: Entering directory libpam-krb5-1.2.0
gcc -c -Wall -g -fPIC -O2 pam_krb5_auth.c
[blahblahblah]
gcc -o pam_krb5.so -shared -Wl,-x -Wl,-z,defs pam_krb5_auth.o
pam_krb5_pass.o pam_krb5_acct.o pam_krb5_sess.o support.o credlist.o
context.o compat_heimdal.o -lpam -lresolv -lkrb5 -lasn1 -lcom_err -lroken
-lgssapi
pam_krb5_auth.o(.text+0xb20): In function `pam_sm_setcred':
/afs/tfy.utu.fi/admin/libpam-heimdal/libpam-krb5-1.2.0/pam_krb5_auth.c:28
1: multiple definition of `no symbol'
pam_krb5_auth.o(.text+0x320):/afs/tfy.utu.fi/admin/libpam-heimdal/libpam-
krb5-1.2.0/pam_krb5_auth.c:117: first defined here /usr/bin/ld: Warning:
size of symbol `' changed from 716 in pam_krb5_auth.o to 1256 in
pam_krb5_auth.o pam_krb5_auth.o(.text+0x1010): In function `Jokostat':
/afs/tfy.utu.fi/admin/libpam-heimdal/libpam-krb5-1.2.0/pam_krb5_auth.c:42
3: multiple definition of `no symbol'
pam_krb5_auth.o(.text+0x320):/afs/tfy.utu.fi/admin/libpam-heimdal/libpam-
krb5-1.2.0/pam_krb5_auth.c:117: first defined here /usr/bin/ld: Warning:
size of symbol `' changed from 1256 in pam_krb5_auth.o to 240 in
pam_krb5_auth.o pam_krb5_acct.o(.text+0x130): In function
`pam_sm_acct_mgmt':
/afs/tfy.utu.fi/admin/libpam-heimdal/libpam-krb5-1.2.0/pam_krb5_acct.c:22:
multiple definition of `no symbol'
pam_krb5_auth.o(.text+0x320):/afs/tfy.utu.fi/admin/libpam-heimdal/libpam-
krb5-1.2.0/pam_krb5_auth.c:117: first defined here /usr/bin/ld: Warning:
size of symbol `' changed from 240 in pam_krb5_auth.o to 280 in
pam_krb5_acct.o pam_krb5_sess.o(.text+0x130): In function
`pam_sm_open_session':
/afs/tfy.utu.fi/admin/libpam-heimdal/libpam-krb5-1.2.0/pam_krb5_sess.c:21:
multiple definition of `no symbol'
pam_krb5_auth.o(.text+0x320):/afs/tfy.utu.fi/admin/libpam-heimdal/libpam-
krb5-1.2.0/pam_krb5_auth.c:117: first defined here /usr/bin/ld: Warning:
size of symbol `' changed from 280 in pam_krb5_auth.o to 48 in
pam_krb5_sess.o pam_krb5_sess.o(.text+0x160): In function
`pam_sm_close_session':
/afs/tfy.utu.fi/admin/libpam-heimdal/libpam-krb5-1.2.0/pam_krb5_sess.c:29:
multiple definition of `no symbol'
pam_krb5_auth.o(.text+0x320):/afs/tfy.utu.fi/admin/libpam-heimdal/libpam-
krb5-1.2.0/pam_krb5_auth.c:117: first defined here /usr/bin/ld: Warning:
size of symbol `' changed from 48 in pam_krb5_auth.o to 60 in
pam_krb5_sess.o collect2: ld returned 1 exit status
make[1]: *** [pam_krb5.so] Error 1
I even found out the culprit in this case: omitting "-g" from gcc
invocation makes things work fine even on AFS. I'm beginning to feel like
you that this is a compiler bug. Agreed? If you do, I'll file a report
against gcc on alpha/sarge.
-Juha
--
-----------------------------------------------
| Juha Jäykkä, [EMAIL PROTECTED] |
| Laboratory of Theoretical Physics |
| Department of Physics, University of Turku |
| home: http://www.utu.fi/~juolja/ |
-----------------------------------------------
pgpBeQk7Kk3ep.pgp
Description: PGP signature
