[Issues] [mod_gnutls 0000090]: Building mod_gnutls on Mac OS X 10.5.4 fails : ld ; duplicate symbol

Mantis Bug Tracker issues at outoforder.cc
Mon Jul 18 19:01:45 EDT 2011


The following issue has been CLOSED 
====================================================================== 
http://issues.outoforder.cc/view.php?id=90 
====================================================================== 
Reported By:                pperegrina
Assigned To:                dashula
====================================================================== 
Project:                    mod_gnutls
Issue ID:                   90
Category:                   Compile or Build
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     closed
Apache Version:             apache2 @2.2.9_1+darwin_9 
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             2008-08-27 11:09 EEST
Last Modified:              2011-07-19 01:01 EET
====================================================================== 
Summary:                    Building mod_gnutls on Mac OS X 10.5.4 fails : ld ;
duplicate symbol
Description: 
bash-3.2# make
Making all in src
/bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
-I../include    -Wall -DENABLE_SRP=1   -O2 -I/opt/local/include -DDARWIN
-DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp  -I/opt/local/apache2/include 
-I/opt/local/include/apr-1   -I/opt/local/include/apr-1 -I/opt/local/include  -g
-O2 -MT libmod_gnutls_la-mod_gnutls.lo -MD -MP -MF
.deps/libmod_gnutls_la-mod_gnutls.Tpo -c -o libmod_gnutls_la-mod_gnutls.lo `test
-f 'mod_gnutls.c' || echo './'`mod_gnutls.c
 gcc -DHAVE_CONFIG_H -I. -I../include -Wall -DENABLE_SRP=1 -O2
-I/opt/local/include -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp
-I/opt/local/apache2/include -I/opt/local/include/apr-1
-I/opt/local/include/apr-1 -I/opt/local/include -g -O2 -MT
libmod_gnutls_la-mod_gnutls.lo -MD -MP -MF .deps/libmod_gnutls_la-mod_gnutls.Tpo
-c mod_gnutls.c  -fno-common -DPIC -o .libs/libmod_gnutls_la-mod_gnutls.o
 gcc -DHAVE_CONFIG_H -I. -I../include -Wall -DENABLE_SRP=1 -O2
-I/opt/local/include -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp
-I/opt/local/apache2/include -I/opt/local/include/apr-1
-I/opt/local/include/apr-1 -I/opt/local/include -g -O2 -MT
libmod_gnutls_la-mod_gnutls.lo -MD -MP -MF .deps/libmod_gnutls_la-mod_gnutls.Tpo
-c mod_gnutls.c -o libmod_gnutls_la-mod_gnutls.o >/dev/null 2>&1
mv -f .deps/libmod_gnutls_la-mod_gnutls.Tpo
.deps/libmod_gnutls_la-mod_gnutls.Plo
/bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
-I../include    -Wall -DENABLE_SRP=1   -O2 -I/opt/local/include -DDARWIN
-DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp  -I/opt/local/apache2/include 
-I/opt/local/include/apr-1   -I/opt/local/include/apr-1 -I/opt/local/include  -g
-O2 -MT libmod_gnutls_la-gnutls_io.lo -MD -MP -MF
.deps/libmod_gnutls_la-gnutls_io.Tpo -c -o libmod_gnutls_la-gnutls_io.lo `test
-f 'gnutls_io.c' || echo './'`gnutls_io.c
 gcc -DHAVE_CONFIG_H -I. -I../include -Wall -DENABLE_SRP=1 -O2
-I/opt/local/include -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp
-I/opt/local/apache2/include -I/opt/local/include/apr-1
-I/opt/local/include/apr-1 -I/opt/local/include -g -O2 -MT
libmod_gnutls_la-gnutls_io.lo -MD -MP -MF .deps/libmod_gnutls_la-gnutls_io.Tpo
-c gnutls_io.c  -fno-common -DPIC -o .libs/libmod_gnutls_la-gnutls_io.o
 gcc -DHAVE_CONFIG_H -I. -I../include -Wall -DENABLE_SRP=1 -O2
-I/opt/local/include -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp
-I/opt/local/apache2/include -I/opt/local/include/apr-1
-I/opt/local/include/apr-1 -I/opt/local/include -g -O2 -MT
libmod_gnutls_la-gnutls_io.lo -MD -MP -MF .deps/libmod_gnutls_la-gnutls_io.Tpo
-c gnutls_io.c -o libmod_gnutls_la-gnutls_io.o >/dev/null 2>&1
mv -f .deps/libmod_gnutls_la-gnutls_io.Tpo .deps/libmod_gnutls_la-gnutls_io.Plo
/bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
-I../include    -Wall -DENABLE_SRP=1   -O2 -I/opt/local/include -DDARWIN
-DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp  -I/opt/local/apache2/include 
-I/opt/local/include/apr-1   -I/opt/local/include/apr-1 -I/opt/local/include  -g
-O2 -MT libmod_gnutls_la-gnutls_cache.lo -MD -MP -MF
.deps/libmod_gnutls_la-gnutls_cache.Tpo -c -o libmod_gnutls_la-gnutls_cache.lo
`test -f 'gnutls_cache.c' || echo './'`gnutls_cache.c
 gcc -DHAVE_CONFIG_H -I. -I../include -Wall -DENABLE_SRP=1 -O2
-I/opt/local/include -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp
-I/opt/local/apache2/include -I/opt/local/include/apr-1
-I/opt/local/include/apr-1 -I/opt/local/include -g -O2 -MT
libmod_gnutls_la-gnutls_cache.lo -MD -MP -MF
.deps/libmod_gnutls_la-gnutls_cache.Tpo -c gnutls_cache.c  -fno-common -DPIC -o
.libs/libmod_gnutls_la-gnutls_cache.o
 gcc -DHAVE_CONFIG_H -I. -I../include -Wall -DENABLE_SRP=1 -O2
-I/opt/local/include -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp
-I/opt/local/apache2/include -I/opt/local/include/apr-1
-I/opt/local/include/apr-1 -I/opt/local/include -g -O2 -MT
libmod_gnutls_la-gnutls_cache.lo -MD -MP -MF
.deps/libmod_gnutls_la-gnutls_cache.Tpo -c gnutls_cache.c -o
libmod_gnutls_la-gnutls_cache.o >/dev/null 2>&1
mv -f .deps/libmod_gnutls_la-gnutls_cache.Tpo
.deps/libmod_gnutls_la-gnutls_cache.Plo
/bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
-I../include    -Wall -DENABLE_SRP=1   -O2 -I/opt/local/include -DDARWIN
-DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp  -I/opt/local/apache2/include 
-I/opt/local/include/apr-1   -I/opt/local/include/apr-1 -I/opt/local/include  -g
-O2 -MT libmod_gnutls_la-gnutls_config.lo -MD -MP -MF
.deps/libmod_gnutls_la-gnutls_config.Tpo -c -o libmod_gnutls_la-gnutls_config.lo
`test -f 'gnutls_config.c' || echo './'`gnutls_config.c
 gcc -DHAVE_CONFIG_H -I. -I../include -Wall -DENABLE_SRP=1 -O2
-I/opt/local/include -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp
-I/opt/local/apache2/include -I/opt/local/include/apr-1
-I/opt/local/include/apr-1 -I/opt/local/include -g -O2 -MT
libmod_gnutls_la-gnutls_config.lo -MD -MP -MF
.deps/libmod_gnutls_la-gnutls_config.Tpo -c gnutls_config.c  -fno-common -DPIC
-o .libs/libmod_gnutls_la-gnutls_config.o
 gcc -DHAVE_CONFIG_H -I. -I../include -Wall -DENABLE_SRP=1 -O2
-I/opt/local/include -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp
-I/opt/local/apache2/include -I/opt/local/include/apr-1
-I/opt/local/include/apr-1 -I/opt/local/include -g -O2 -MT
libmod_gnutls_la-gnutls_config.lo -MD -MP -MF
.deps/libmod_gnutls_la-gnutls_config.Tpo -c gnutls_config.c -o
libmod_gnutls_la-gnutls_config.o >/dev/null 2>&1
mv -f .deps/libmod_gnutls_la-gnutls_config.Tpo
.deps/libmod_gnutls_la-gnutls_config.Plo
/bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
-I../include    -Wall -DENABLE_SRP=1   -O2 -I/opt/local/include -DDARWIN
-DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp  -I/opt/local/apache2/include 
-I/opt/local/include/apr-1   -I/opt/local/include/apr-1 -I/opt/local/include  -g
-O2 -MT libmod_gnutls_la-gnutls_hooks.lo -MD -MP -MF
.deps/libmod_gnutls_la-gnutls_hooks.Tpo -c -o libmod_gnutls_la-gnutls_hooks.lo
`test -f 'gnutls_hooks.c' || echo './'`gnutls_hooks.c
 gcc -DHAVE_CONFIG_H -I. -I../include -Wall -DENABLE_SRP=1 -O2
-I/opt/local/include -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp
-I/opt/local/apache2/include -I/opt/local/include/apr-1
-I/opt/local/include/apr-1 -I/opt/local/include -g -O2 -MT
libmod_gnutls_la-gnutls_hooks.lo -MD -MP -MF
.deps/libmod_gnutls_la-gnutls_hooks.Tpo -c gnutls_hooks.c  -fno-common -DPIC -o
.libs/libmod_gnutls_la-gnutls_hooks.o
 gcc -DHAVE_CONFIG_H -I. -I../include -Wall -DENABLE_SRP=1 -O2
-I/opt/local/include -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp
-I/opt/local/apache2/include -I/opt/local/include/apr-1
-I/opt/local/include/apr-1 -I/opt/local/include -g -O2 -MT
libmod_gnutls_la-gnutls_hooks.lo -MD -MP -MF
.deps/libmod_gnutls_la-gnutls_hooks.Tpo -c gnutls_hooks.c -o
libmod_gnutls_la-gnutls_hooks.o >/dev/null 2>&1
mv -f .deps/libmod_gnutls_la-gnutls_hooks.Tpo
.deps/libmod_gnutls_la-gnutls_hooks.Plo
/bin/sh ../libtool --tag=CC   --mode=link gcc -Wall -DENABLE_SRP=1   -O2
-I/opt/local/include -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp 
-I/opt/local/apache2/include  -I/opt/local/include/apr-1  
-I/opt/local/include/apr-1 -I/opt/local/include  -g -O2 -rpath
/opt/local/apache2/modules -module -avoid-version    -o libmod_gnutls.la -rpath
/opt/local/apache2//lib libmod_gnutls_la-mod_gnutls.lo
libmod_gnutls_la-gnutls_io.lo libmod_gnutls_la-gnutls_cache.lo
libmod_gnutls_la-gnutls_config.lo libmod_gnutls_la-gnutls_hooks.lo  
libtool: link: warning: ignoring multiple `-rpath's for a libtool library
gcc ${wl}-flat_namespace ${wl}-undefined ${wl}suppress -o .libs/libmod_gnutls.so
-bundle  .libs/libmod_gnutls_la-mod_gnutls.o .libs/libmod_gnutls_la-gnutls_io.o
.libs/libmod_gnutls_la-gnutls_cache.o .libs/libmod_gnutls_la-gnutls_config.o
.libs/libmod_gnutls_la-gnutls_hooks.o  
ld: duplicate symbol _gnutls_module in .libs/libmod_gnutls_la-gnutls_io.o and
.libs/libmod_gnutls_la-mod_gnutls.o

collect2: ld returned 1 exit status
make[1]: *** [libmod_gnutls.la] Error 1
make: *** [all-recursive] Error 1

Additional Information: 
./configure --prefix=/opt/local/apache2/ --with-apxs=/opt/local/apache2/bin/apxs
configure: creating config.nice
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i386-apple-darwin9.4.0
checking host system type... i386-apple-darwin9.4.0
checking target system type... i386-apple-darwin9.4.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... config/install-sh -c -d
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ld used by gcc... /usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld
checking if the linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) is GNU
ld... no
checking for a BSD-compatible install... /usr/bin/install -c
checking for /usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld option to reload
object files... -r
checking for BSD-compatible nm... /usr/bin/nm -p
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 196608
checking command to parse /usr/bin/nm -p output from gcc object... rm:
conftest.dSYM: is a directory
ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
rm: conftest.dSYM: is a directory
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fno-common
checking if gcc PIC flag -fno-common works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld)
supports shared libraries... yes
checking dynamic linker characteristics... darwin9.4.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld
checking if the linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) is GNU
ld... no
checking whether the g++ linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld)
supports shared libraries... yes
checking for g++ option to produce PIC... -fno-common
checking if g++ PIC flag -fno-common works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld)
supports shared libraries... yes
checking dynamic linker characteristics... darwin9.4.0 dyld
(cached) (cached) checking how to hardcode library paths into programs...
immediate
appending configuration tag "F77" to libtool
checking for Apache 2.0 version >= 2.0.40... yes
checking whether DEFAULT_EXP_LIBEXECDIR is declared... no
checking for libgnutls-config... /opt/local/bin/libgnutls-config
checking for libgnutls - version >= 2.4.0... yes
checking whether to enable SRP functionality... yes
checking dynamic linker characteristics... darwin9.4.0 dyld
(cached) (cached) checking for apr_memcache_create in -lapr_memcache... no
configure: *** memcache library not found.
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating include/mod_gnutls.h
config.status: creating include/mod_gnutls_config.h
config.status: include/mod_gnutls_config.h is unchanged
config.status: executing depfiles commands
---
Configuration summary for mod_gnutls:

   * mod_gnutls version:        0.5.2
   * Apache Modules directory:  /opt/local/apache2/modules
   * GnuTLS Library version:    2.4.1
   * SRP Authentication:          yes

---
====================================================================== 

---------------------------------------------------------------------- 
 (0000124) nmav (manager) - 2008-10-16 20:28
 http://issues.outoforder.cc/view.php?id=90#c124 
---------------------------------------------------------------------- 
I think this might be a linker issue in your system. Otherwise I need more
feedback on this issue. 

---------------------------------------------------------------------- 
 (0000130) pperegrina (reporter) - 2008-10-18 23:07
 http://issues.outoforder.cc/view.php?id=90#c130 
---------------------------------------------------------------------- 
Please let me know which commands you want me to run in order to give you more
info. 

---------------------------------------------------------------------- 
 (0000131) nmav (manager) - 2008-10-19 09:11
 http://issues.outoforder.cc/view.php?id=90#c131 
---------------------------------------------------------------------- 
Can you download the attached file (extern.patch) apply it, run ./configure and
make? 

---------------------------------------------------------------------- 
 (0000274) dashula (manager) - 2011-07-08 16:51
 http://issues.outoforder.cc/view.php?id=90#c274 
---------------------------------------------------------------------- 
Can you confirm this bug with the latest versions of GnuTLS (2.12.7) and
mod_gnutls (0.5.9)?  
If so please reply, otherwise I will be closing this issue if I have no reply
from you by 11-07-2011 

---------------------------------------------------------------------- 
 (0000277) dashula (manager) - 2011-07-19 01:01
 http://issues.outoforder.cc/view.php?id=90#c277 
---------------------------------------------------------------------- 
No feedback from reporter, issue seems to be resolved. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-08-27 11:09 pperegrina     New Issue                                    
2008-08-27 11:09 pperegrina     Apache Version            => apache2
@2.2.9_1+darwin_9
2008-10-16 20:28 nmav           Note Added: 0000124                          
2008-10-16 20:28 nmav           Assigned To               => nmav            
2008-10-16 20:28 nmav           Status                   new => feedback     
2008-10-18 23:07 pperegrina     Note Added: 0000130                          
2008-10-19 09:10 nmav           File Added: extern.patch                     
2008-10-19 09:11 nmav           Note Added: 0000131                          
2011-07-08 16:51 dashula        Note Added: 0000274                          
2011-07-08 16:53 dashula        Assigned To              nmav => dashula     
2011-07-08 16:53 dashula        Status                   feedback => assigned
2011-07-19 01:01 dashula        Note Added: 0000277                          
2011-07-19 01:01 dashula        Status                   assigned => closed  
======================================================================




More information about the Issues mailing list