pkgsrc-Bugs archive

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

Re: pkg/45433 (security/cyrus-sasl does not compile on Solaris with lang/gcc34)



On 8. 10. 2011, at 8:35, Joerg Sonnenberger wrote:

> The following reply was made to PR pkg/45433; it has been noted by GNATS.
> 
> From: Joerg Sonnenberger <joerg%britannica.bec.de@localhost>
> To: gnats-bugs%NetBSD.org@localhost
> Cc: 
> Subject: Re: pkg/45433 (security/cyrus-sasl does not compile on Solaris with
> lang/gcc34)
> Date: Sat, 8 Oct 2011 08:31:41 +0200
> 
> On Fri, Oct 07, 2011 at 11:50:04PM +0000, Hans Rosenfeld wrote:
>> It is unlikely that the libtool change was related to that, and if it
>> was, it would be the other way round. The libtool change was supposed to
>> allow working around similar bugs that cannot be easily fixed in the
>> source.
> 
> I agree. Does this package use symbol visibility by chance and is
> failing due to that? The real curious part is the missing sprintf.
> 

I was just getting something very similar on on pkgsrc-2011Q3, on SmartOS 
(Illumos-like) and GCC 4.5.2:

/usr/bin/bash ../libtool   --mode=link gcc  -Wall -W -O -O2 -module 
-export-dynamic -rpath /opt/local/lib/sasl2 -version-info 2:25:0 
-Wl,-R/opt/local/lib -o libsasldb.la  sasldb.lo sasldb_init.lo plugin_common.lo 
../sasldb/libsasldb.la   -lresolv  -lsocket
libtool: link: gcc -shared -Wl,-z -Wl,text -Wl,-h -Wl,libsasldb.so.2 -o 
.libs/libsasldb.so.2.0.25  .libs/sasldb.o .libs/sasldb_init.o 
.libs/plugin_common.o  -Wl,-z -Wl,allextract ../sasldb/.libs/libsasldb.a -Wl,-z 
-Wl,defaultextract  -L/tmp/pkgsrc/security/cyrus-sasl/work/.buildlink/lib 
-lresolv -lsocket -lc  -Wl,-R/opt/local/lib
Text relocation remains                         referenced
    against symbol                  offset      in file
.rodata.str1.1 (merged string section) 0xc              
../sasldb/.libs/libsasldb.a(allockey.o)
.LC2                                0x300       
../sasldb/.libs/libsasldb.a(allockey.o)
.rodata.str1.4 (section)            0x396       
../sasldb/.libs/libsasldb.a(allockey.o)
.rodata.str1.4 (section)            0x3bc       
../sasldb/.libs/libsasldb.a(allockey.o)
.LC2                                0x405       
../sasldb/.libs/libsasldb.a(allockey.o)
.rodata.str1.1 (merged string section) 0x4fa            
../sasldb/.libs/libsasldb.a(allockey.o)
.rodata.str1.4 (section)            0x59c       
../sasldb/.libs/libsasldb.a(allockey.o)
.rodata.str1.4 (section)            0x5ac       
../sasldb/.libs/libsasldb.a(allockey.o)
.rodata.str1.4 (section)            0x5e7       
../sasldb/.libs/libsasldb.a(allockey.o)
.rodata.str1.4 (section)            0x5f4       
../sasldb/.libs/libsasldb.a(allockey.o)
_sasldb_putdata                     0x422       
../sasldb/.libs/libsasldb.a(allockey.o)
_sasldb_getdata                     0x31a       
../sasldb/.libs/libsasldb.a(allockey.o)
__sasldb_internal_list              0x5da       
../sasldb/.libs/libsasldb.a(allockey.o)
_sasldb_parse_key                   0x4e5       
../sasldb/.libs/libsasldb.a(allockey.o)
_sasldb_getkeyhandle                0x455       
../sasldb/.libs/libsasldb.a(allockey.o)
_sasldb_getnextkey                  0x491       
../sasldb/.libs/libsasldb.a(allockey.o)
_sasldb_getnextkey                  0x55c       
../sasldb/.libs/libsasldb.a(allockey.o)
_sasldb_releasekeyhandle            0x583       
../sasldb/.libs/libsasldb.a(allockey.o)
memcpy                              0xed        
../sasldb/.libs/libsasldb.a(allockey.o)
memcpy                              0x114       
../sasldb/.libs/libsasldb.a(allockey.o)
memcpy                              0x136       
../sasldb/.libs/libsasldb.a(allockey.o)
memcpy                              0x364       
../sasldb/.libs/libsasldb.a(allockey.o)
strncpy                             0x258       
../sasldb/.libs/libsasldb.a(allockey.o)
strncpy                             0x28b       
../sasldb/.libs/libsasldb.a(allockey.o)
strncpy                             0x2b4       
../sasldb/.libs/libsasldb.a(allockey.o)
printf                              0x23        
../sasldb/.libs/libsasldb.a(allockey.o)
ld: fatal: relocations remain against allocatable but non-writable sections
collect2: ld returned 1 exit status
gmake[2]: *** [libsasldb.la] Error 1
gmake[2]: Leaving directory 
`/tmp/pkgsrc/security/cyrus-sasl/work/cyrus-sasl-2.1.25/plugins'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory 
`/tmp/pkgsrc/security/cyrus-sasl/work/cyrus-sasl-2.1.25'
gmake: *** [all] Error 2
*** Error code 2

I was able to work around using CFLAGS.SunOS+=-fPIC.

-F


Home | Main Index | Thread Index | Old Index