[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bacula-bugs
Subject:    [Bacula-bugs] [Bacula Bug Reports 0002201]: 7.4.0 does not compile cleanly
From:       Mantis Bug Tracker <nobody () bugs ! bacula ! org>
Date:       2016-01-31 18:52:15
Message-ID: 2f46c3bfa8ee44052a288275fb2d139a () bugs ! bacula ! org
[Download RAW message or body]


The following issue has been ASSIGNED. 
====================================================================== 
http://bugs.bacula.org/view.php?id=2201 
====================================================================== 
Reported By:                grs1961
Assigned To:                kern
====================================================================== 
Project:                    Bacula Bug Reports
Issue ID:                   2201
Category:                   configure/build process
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     closed
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2016-01-29 02:32 GMT
Last Modified:              2016-01-31 18:52 GMT
====================================================================== 
Summary:                    7.4.0 does not compile cleanly
Description: 
bacula-7.4.0/src/tools $ make
/bin/CC -L/opt/webstack/mysql/lib/mysql -R/opt/webstack/mysql/lib/mysql
-L/opt/csw/lib -R/opt/csw/lib -L../lib -L../findlib -o fstype fstype.o -lbacfind
-lbac -lm \
   -lpthread -lresolv -lnsl -lsocket -lxnet  -lintl -lresolv -lrt
/opt/csw/lib/libintl.so -R/opt/csw/lib -lssl -lcrypto
ld: fatal: symbol `void add_mtab_item(void*,stat*,const char*,const char*,const
char*,const char*)' is multiply-defined:
        (file fstype.o type=FUNC; file ../findlib/libbacfind.a(fstype.o)
type=FUNC);
ld: warning: file /opt/csw/lib/libintl.so: attempted multiple inclusion of file
ld: fatal: File processing errors. No output written to fstype
*** Error code 2
make: Fatal error: Command failed for target `fstype'



Additional Information: 
Work-around:
After line 70, apply these changes:
#if 0
extern void add_mtab_item(void *user_ctx, struct stat *st, const char *fstype,
                      const char *mountpoint, const char *mntopts,
                      const char *fsname);
#endif
static void add_mtab_item(void *user_ctx, struct stat *st, const char *fstype,
                      const char *mountpoint, const char *mntopts,
                      const char *fsname)
{

====================================================================== 

---------------------------------------------------------------------- 
 (0007295) kern (administrator) - 2016-01-31 18:52
 http://bugs.bacula.org/view.php?id=2201#c7295 
---------------------------------------------------------------------- 
It appears that one of the libraries that you are using (libintl) exports the
same symbol (add_mtab_item) as Bacula does.  This causes a conflict and it only
seems to happen on your build or perhaps in general on Solaris systems.  In any
case, Bacula did not need to export the symbol, so I have made it static, and as
you indicated in your report this should fix your build problems.

It will be in the public git repo shortly and in release 7.4.1 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2016-01-29 02:32 grs1961        New Issue                                    
2016-01-31 18:52 kern           Note Added: 0007295                          
2016-01-31 18:52 kern           Assigned To               => kern            
2016-01-31 18:52 kern           Status                   new => closed       
2016-01-31 18:52 kern           Resolution               open => fixed       
======================================================================



------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Bacula-bugs mailing list
Bacula-bugs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic