[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

--enable-shared error



Hiya,

I am trying to compile heimdal snapshot 20050725 with shared library
support.
i.e. configure --prefix=/tmp/blah --enable-shared

I'm compiling on Fedora 3 (i386 kern: 2.6.12).
gcc 3.4.3
libtool 1.5.6
automake 1.9.2

This error occurs:
------------------------------------------------------------------------------------------------------------------------
.libs/asn1_CMSAttributes.o(.text+0x0): In function `encode_CMSAttributes':
/home/jason/kerberos/heimdal-snapshot/20050725/heimdal-20050725/lib/asn1/asn1_CMSAttributes.c:19:
multiple definition of `encode_CMSAttributes'
.libs/asn1_CMSAttributes.o(.text+0x0):/home/jason/kerberos/heimdal-snapshot/20050725/heimdal-20050725/lib/asn1/asn1_CMSAttributes.c:19:
first defined here
.libs/asn1_CMSAttributes.o(.text+0x1e4): In function `free_CMSAttributes':
/home/jason/kerberos/heimdal-snapshot/20050725/heimdal-20050725/lib/asn1/asn1_CMSAttributes.c:115:
multiple definition of `free_CMSAttributes'
.libs/asn1_CMSAttributes.o(.text+0x1e4):/home/jason/kerberos/heimdal-snapshot/20050725/heimdal-20050725/lib/asn1/asn1_CMSAttributes.c:115:
first defined here
.libs/asn1_CMSAttributes.o(.text+0x238): In function
`decode_CMSAttributes':
/home/jason/kerberos/heimdal-snapshot/20050725/heimdal-20050725/lib/asn1/asn1_CMSAttributes.c:70:
multiple definition of `decode_CMSAttributes'
.libs/asn1_CMSAttributes.o(.text+0x238):/home/jason/kerberos/heimdal-snapshot/20050725/heimdal-20050725/lib/asn1/asn1_CMSAttributes.c:70:
first defined here
.libs/asn1_CMSAttributes.o(.text+0x35c): In function
`length_CMSAttributes':
/home/jason/kerberos/heimdal-snapshot/20050725/heimdal-20050725/lib/asn1/asn1_CMSAttributes.c:126:
multiple definition of `length_CMSAttributes'
.libs/asn1_CMSAttributes.o(.text+0x35c):/home/jason/kerberos/heimdal-snapshot/20050725/heimdal-20050725/lib/asn1/asn1_CMSAttributes.c:126:
first defined here
.libs/asn1_CMSAttributes.o(.text+0x3cc): In function `copy_CMSAttributes':
/home/jason/kerberos/heimdal-snapshot/20050725/heimdal-20050725/lib/asn1/asn1_CMSAttributes.c:146:
multiple definition of `copy_CMSAttributes'
.libs/asn1_CMSAttributes.o(.text+0x3cc):/home/jason/kerberos/heimdal-snapshot/20050725/heimdal-20050725/lib/asn1/asn1_CMSAttributes.c:146:
first defined here
collect2: ld returned 1 exit status
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------

I can't seem to locate any other defns for these CMSAttribute
functions other than those listed in the error..

If I don't configure with --enable-shared then it compiles fine.
It also compiles ok with --enable-pk-init. (without shared)

Any ideas?
Jason