Re: AIX: Ignore duplicate symbols in multiple headers?

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

 



Here's yet another similar type of error I'm getting on AIX.  I
basically compiled and installed nlopt in a custom location via
--prefix.  Now, when I go to R to compile a package (nloptR) that
links to nlopt, the linking works, but when R tries to load the shared
object, it gets 'symbol not found'.  Again, this doesn't error out in
other platforms.  Is there anything I can do with GCC on AIX to fix
this?  Thanks.

checking for nlopt.h... yes
configure: Suitable NLopt library found.
configure: creating ./config.status
config.status: creating src/Makevars
** libs
g++ -I/sas/outmva/opt/lib/R/include -DNDEBUG  -I/usr/local/include
 -g -O2  -c dummy.cpp -o dummy.o
gcc -std=gnu99 -I/sas/outmva/opt/lib/R/include -DNDEBUG
-I/usr/local/include  -mno-fp-in-toc    -g -O2  -c nloptr.c -o
nloptr.o
g++ -shared -Wl,-brtl -Wl,-G -Wl,-bexpall -Wl,-bnoentry -lc
-L/usr/local/lib -o nloptr.so dummy.o nloptr.o -lm -lintl
installing to /sas/outmva/opt/lib/R/library/nloptr/libs
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
Error in dyn.load(file, DLLpath = DLLpath, ...) :
  unable to load shared object
'/sas/outmva/opt/lib/R/library/nloptr/libs/nloptr.so':
  rtld: 0712-001 Symbol nlopt_create was referenced
      from module
/sas/outmva/opt/lib/R/library/nloptr/libs/nloptr.so(), but a runtime
definition
            of the symbol was not found.
rtld: 0712-001 Symbol nlopt_set_stopval was referenced
      from module
/sas/outmva/opt/lib/R/library/nloptr/libs/nloptr.so(), but a runtime
definition
            of the symbol was not found.
rtld: 0712-001 Symbol nlopt_set_ftol_rel was referenced
      from module
/sas/outmva/opt/lib/R/library/nloptr/libs/nloptr.so(), but a runtime
definition
            of the symbol was not found.
rtld: 0712-001 Symbol nlopt_set_ftol_abs was referenced
      from module
/sas/outmva/opt/lib/R/library/nloptr/libs/nloptr.so(), but a runtime
definition
            of the symbol was not found.
rtld: 0712-001 Symbol nlopt_set_xtol_rel was referenced
      from module
/sas/outmva/opt/lib/R/library/nloptr/libs/nloptr.so(), but a runtime
definition
            of the sy
Error: loading failed
Execution halted
ERROR: loading failed
* removing '/sas/outmva/opt/lib/R/library/nloptr'



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux