Compiling error with /usr/bin/ld: cannot find -l error
With the help of ToddLittle, I have solved a lot of problem with tuxedo as I am a freshman to it.Thank you ToddLittle!
However I meet a new problem with compiling my new program. I got this error:
/usr/bin/ld: cannot find -l/home/cjf/oracle/tuxedo12.1.1.0/include
where /home/cjf/oracle/tuxedo12.1.1.0 is my tuxedo installation path.
I build it under ubuntu 12.04 64 bit and my IDE is eclipse.
How to solve it? thanks!
Usually it is best to execute the script that is installed in the Tuxedo installation directory that sets up all the necessary environment variables. That script is $TUXDIR/tux.env. Source that script before trying to use buildclient or buildserver or any other Tuxedo command to solve most problems like this.
PS You might want to check out Solaris Studio if you want to use an IDE as there is a Tuxedo plug-in for it that really helps in developing Tuxedo applications.
Regards,
Todd Little
Oracle Tuxedo Chief Architect
Similar Messages
-
Patch 8557019 - /usr/bin/ld: cannot find -ldeb
Hi there,
I have upgraded an ebs system from 11-5-10-2-1 to r12 12.1.3 - I am in the process of patchiong reports and forms to latest version (10.1.2.3.1)
unfortunately one of the patches errors.
The system is on Linux x86-64
Here is what I did and what I experienced :-
cd /u03/oraupg/inst/apps/oraupg_findbupg/ora/10.1.2
sh oraupg_findbupg.env
linux32 bash
cd /u03/oraupg/apps/patches/10-1-2-patches/8557019
opatch apply
What I experienced :-
[applmgr@findbupg 8557019]$ opatch apply
Oracle Interim Patch Installer version 1.0.0.0.63
Copyright (c) 2009 Oracle Corporation. All Rights Reserved..
Oracle recommends you to use the latest OPatch version
and read the OPatch documentation available in the OPatch/docs
directory for usage. For information about the latest OPatch and
other support-related issues, refer to document ID 293369.1
available on My Oracle Support (https://myoraclesupport.oracle.com)
Oracle Home : /u03/oraupg/apps/tech_st/10.1.2
Oracle Home Inventory : /u03/oraupg/apps/tech_st/10.1.2/inventory
Central Inventory : /u01/oracle/product/oraInventory
from : /etc/oraInst.loc
OUI location : /u03/oraupg/apps/tech_st/10.1.2/oui
OUI shared library : /u03/oraupg/apps/tech_st/10.1.2/oui/lib/linux/liboraInstaller.so
Java location : /u03/oraupg/apps/tech_st/10.1.2/jre/1.4.2/bin/java
Log file location : /u03/oraupg/apps/tech_st/10.1.2/.patch_storage/<patch ID>/*.log
Creating log file "/u03/oraupg/apps/tech_st/10.1.2/.patch_storage/8557019/Apply_8557019_05-31-2011_16-29-40.log"
Invoking fuser to check for active processes.
Provide your email address to be informed of security issues, install and
initiate Oracle Configuration Manager. Easier for you if you use your My
Oracle Support Email address/User Name.
Visit http://www.oracle.com/support/policies.html for details.
Email address/User Name:
You have not provided an email address for notification of security issues.
Do you wish to remain uninformed of security issues ([Y]es, [N]o) [N]: Yes
Oracle Configuration Manager has been installed but not configured. OCM enables
Oracle to provide superior, proactive support for our customers. Oracle
strongly recommends customers configure OCM. To complete the configuration of
OCM, refer to the OCM Installation and Administration Guide
(http://www.oracle.com/technology/documentation/ocm.html).
Backing up comps.xml ...
OPatch detected non-cluster Oracle Home from the inventory and will patch the local system only.
Please shut down Oracle instances running out of this ORACLE_HOME
(Oracle Home = /u03/oraupg/apps/tech_st/10.1.2)
Is this system ready for updating?
Please respond Y|N >
Y
Applying patch 8557019...
Patching archive files...
Running make for target install.
OPatch found the word "error" in stderr, please look into it.
You may have to run the make again.
Stderr Output (from /u03/oraupg/apps/tech_st/10.1.2/.patch_storage/8557019/make_local.stderr):
/usr/bin/ld: skipping incompatible /u03/oraupg/apps/tech_st/10.1.2/lib//libdeb.so when searching for -ldeb
/usr/bin/ld: skipping incompatible /u03/oraupg/apps/tech_st/10.1.2/lib//libdeb.a when searching for -ldeb
/usr/bin/ld: skipping incompatible /u03/oraupg/apps/tech_st/10.1.2/lib//libdeb.so when searching for -ldeb
/usr/bin/ld: skipping incompatible /u03/oraupg/apps/tech_st/10.1.2/lib//libdeb.a when searching for -ldeb
/usr/bin/ld: skipping incompatible /u03/oraupg/apps/tech_st/10.1.2/lib/libdeb.so when searching for -ldeb
/usr/bin/ld: skipping incompatible /u03/oraupg/apps/tech_st/10.1.2/lib/libdeb.a when searching for -ldeb
/usr/bin/ld: cannot find -ldeb
collect2: ld returned 1 exit status
make: *** [dejvm] Error 1
[email protected] - June 1, 2011 9:57:54 AM GMT+12:00 [Update from Customer]
OPatch encounters the following issues during Make:
There were problems running make commands. The errors encounted were:
Error for command: cd /u03/oraupg/apps/tech_st/10.1.2//procbuilder/lib
/usr/bin/make -f ins_procbuilder.mk install ORACLE_HOME="/u03/oraupg/apps/tech_st/10.1.2" 2>/u03/oraupg/apps/tech_st/10.1.2/.patch_storage/8557019/make_local.stderr
Replying 'Y' will terminate the patch installation immediately.It WILL NOT restore any updates that have been performed to this point. It WILL NOT update the inventory.
Replying 'N' will continue with updating the inventory showing the patch has been applied.
NOTE: After replying either 'Y' or 'N' it is critical to review:
My Oracle Support Note 312767.1 How to rollback a failed Interim patch installation.
Do you want to STOP?
Please respond Y|N >
Y
Make Error!
ERROR: OPatch failed during patching, possibly due to missing files.
[applmgr@findbupg 8557019]$
Welcome advice re how to fix this problem - thanks to all who have helped me in the past.
cheers, RobHello Diesel,
As per Note 1266729.1 : "Applying Patch 8557019 and encounter /usr/bin/ld: cannot find -ldeb error running make -f ins_procbuilder.mk install" this can be fixed by appying patch 8551790 first.
Regards, Carlo. -
SeLinux Checkpolicy install error ( /usr/bin/ld: cannot find -lfl)
I am trying to setup selinux per the arch wiki, but I ran into an error when trying to install the checkpolicy package from the AUR. I keep getting the following error:
==> Starting build()...
cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -I. -I/usr/include -o checkpolicy.o -c checkpolicy.c
bison -y -d policy_parse.y
cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -I. -I/usr/include -o y.tab.o -c y.tab.c
lex policy_scan.l
cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -I. -I/usr/include -o lex.yy.o -c lex.yy.c
cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -I. -I/usr/include -o queue.o -c queue.c
cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -I. -I/usr/include -o module_compiler.o -c module_compiler.c
cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -I. -I/usr/include -o parse_util.o -c parse_util.c
cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -I. -I/usr/include -o policy_define.o -c policy_define.c
cc -Wl,-O1,--sort-common,--as-needed,-z,relro checkpolicy.o y.tab.o lex.yy.o queue.o module_compiler.o parse_util.o policy_define.o /usr/lib/libsepol.a -lfl -o checkpolicy
/usr/bin/ld: cannot find -lfl
collect2: error: ld returned 1 exit status
<builtin>: recipe for target 'checkpolicy' failed
make: *** [checkpolicy] Error 1
any ideas? I have been googling for a few hours trying to find out about the -lfl and to see if i am missing it , but cannot figure this out. I downloaded the tar for checkpolicy and have the same issue.
Should I be altering the makefile in anyway so that /usr/bin/ld can find -lfl ?
Last edited by johnnyboy (2014-11-12 06:43:49)@Allan: The selinux-flex package is needed as part of the installation process.
Something tells me that this AUR package needs to be updated.
But yes, a solution appears to be to remove selinux-flex and install flex and then compile checkpolicy.
Last edited by clfarron4 (2014-11-12 12:36:42) -
Error : /usr/bin/ld: cannot find -lmvec
Hi All,
I am trying to build an application where compiler flag "-xvector=lib" is used.
An i get error "/usr/bin/ld: cannot find -lmvec"
If i remove this flag then this error disappears.
Can anybody explain the changes i should make to use this flag "-xvector=lib".
Can anybody identify the solution to this problem because i must use this falg.
Thanks and Regards
GaneshWith -xvector=lib, compiler may generate calls to vectorized routines which reside in libmvec.so (on solaris),
hence -lmvec passed to linker. I think that libmvec.so wasn't ported to Linux, so -xvector=lib does not work
(not supported) on Linux -
"/usr/bin/ld: cannot find -luu" - can't compile kl
I'm trying to make a package for klibido ( http://klibido.sourceforge.net/ ).
I keep having this error when I try to compile it :
/usr/bin/ld: cannot find -luu
Does anyone know this problem ?
Thanks !I made a package for uudeview and I installed it.
It's in /usr.
Here is the full error message :
/bin/sh ../libtool --silent --tag=CXX --mode=link g++ -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -O2 -march=i686 -O2 -pipe -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -L/lib -luu -o klibido -R /opt/kde/lib -R /opt/qt/lib -R /usr/X11R6/lib -L/usr/X11R6/lib -L/opt/qt/lib -L/opt/kde/lib main.o klibido.o grouplist.o serverslist.o newsgroup.o addform.o headerlist.o binheader.o header.o hlistviewitem.o nntpthreadsocket.o queueparts.o qmgr.o addserver.o prefgeneral.o prefdialog.o globals.o availablegroups.o updatedb.o fileviewer.o progress.o prefdecode.o downloadselect.o catman.o prefview.o prefheader.o decoder.o uudecoder.o yydecoder.o updopt.o nzbform.o groupWidget.o serversWidget.o NewsGroupForm.o qmgrform.o serverdlg.o prefgenerallayout.o progressdlg.o prefdecodelauyout.o downloadselectdlg.o catmandlg.o prefviewlayout.o prefheaderlayout.o updoptdlg.o addformdlg.o nzbformdlg.o availablegroups.moc.o queueparts.moc.o -ldb_cxx -lkmdi -lkdeui -ldb
/usr/bin/ld: cannot find -luu
collect2: ld returned 1 exit status
make[2]: *** [klibido] Erreur 1
make[2]: Leaving directory `/var/abs/local/klibido/src/klibido-0.2.2.2/src'
make[1]: *** [all-recursive] Erreur 1
make[1]: Leaving directory `/var/abs/local/klibido/src/klibido-0.2.2.2'
make: *** [all] Erreur 2
==> ERROR: Build Failed. Aborting... -
Relinking error /usr/bin/ld: cannot find -ljava
Hello everyone, has anyone seen this error while relinking? I am hitting this error while performing a clone.
/apps/itccrmR12/apps/tech_st/10.1.2/sysman/lib
gcc -m32 -o /apps/itccrmR12/apps/tech_st/10.1.2/sysman/lib/libnmeoci.so `cat /apps/itccrmR12/apps/tech_st/10.1.2/sysman/lib/libnmeoci.def | perl /apps/itccrmR12/apps/tech_st/10.1.2/bin/processDef.pl | grep -E "[a-zA-Z]+[;]" | awk -F ";" '{printf(" -u "$1);}'` -shared -L/apps/itccrmR12/apps/tech_st/10.1.2/lib/ -L/apps/itccrmR12/apps/tech_st/10.1.2/sysman/lib/ -L/apps/itccrmR12/apps/tech_st/10.1.2/lib/stubs/ /apps/itccrmR12/apps/tech_st/10.1.2/sysman/lib/libnmeoci.a -L/apps/itccrmR12/apps/tech_st/10.1.2/lib -L/apps/itccrmR12/apps/tech_st/10.1.2/sysman/lib/ -lnmemso -lcore10 -Wl,-rpath,/apps/itccrmR12/apps/tech_st/10.1.2/lib/:/apps/itccrmR12/apps/tech_st/10.1.2/sysman/lib/:/nfs/bld/d29/VRIV204/apps/tech_st/10.1.2/jdk/jre/lib/i386/client:/nfs/bld/d29/VRIV204/apps/tech_st/10.1.2/jdk/jre/lib/i386 -L/nfs/bld/d29/VRIV204/apps/tech_st/10.1.2/jdk/jre/lib/i386/client -L/nfs/bld/d29/VRIV204/apps/tech_st/10.1.2/jdk/jre/lib/i386 -z lazyload -ljava -ljvm -lverify -z nolazyload -Wl,-rpath,/apps/itccrmR12/apps/tech_st/10.1.2/lib/:/apps/itccrmR12/apps/tech_st/10.1.2/sysman/lib/:/nfs/bld/d29/VRIV204/apps/tech_st/10.1.2/jdk/jre/lib/i386/client:/nfs/bld/d29/VRIV204/apps/tech_st/10.1.2/jdk/jre/lib/i386 -Wl,--allow-shlib-undefined `cat /apps/itccrmR12/apps/tech_st/10.1.2/lib/sysliblist` -ldl -lm
*/usr/bin/ld: cannot find -ljava*
collect2: ld returned 1 exit status
make: *** [apps/itccrmR12/apps/tech_st/10.1.2/sysman/lib/libnmeoci.so] Error 1
Failed linking target libnmeoci on Fri Jan 7 11:04:51 EST 2011...Please see these docs.
'/usr/bin/ld: cannot find -ljava' occurs while applying one off patch [ID 418557.1]
Getting Error "Java.Lang.Exception: Exception In Sending Request :: Null" After Cloning Database Using Rapid Clone [ID 849772.1]
Rapid Clone & Em Dbconsole [ID 743833.1]
Thanks,
Hussein -
Libx32-glibc fails to build - /usr/bin/ld: cannot find -lgcc
I am trying to run steam using my own runtime libraries, however I'm missing libcrypt.so.11
After trawling through a chain of dependencies, I'm stuck on libx32-glibc.
When attmpting to build libx32-glibc I encounter an error while gcc is trying to compile elf/librtld.mapT
[myusername@hostname libx32-glibc]$ makepkg -R
==> Making package: libx32-glibc 2.18_12-1 (Sun Feb 9 18:12:22 NZDT 2014)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Removing existing pkg/ directory...
==> Entering fakeroot environment...
==> Starting package()...
LANGUAGE=C LC_ALL=C; export LANGUAGE LC_ALL; \
make -r PARALLELMFLAGS="" -C /home/myusername/aur/libx32-glibc/src/glibc-2.18 objdir=`pwd` install
make[1]: Entering directory '/home/myusername/aur/libx32-glibc/src/glibc-2.18'
make subdir=csu -C csu ..=../ subdir_lib
make subdir=iconv -C iconv ..=../ subdir_lib
make[2]: Entering directory '/home/myusername/aur/libx32-glibc/src/glibc-2.18/iconv'
make[2]: Nothing to be done for 'subdir_lib'.
make[2]: Leaving directory '/home/myusername/aur/libx32-glibc/src/glibc-2.18/iconv'
make[2]: Entering directory '/home/myusername/aur/libx32-glibc/src/glibc-2.18/login'
make[2]: Nothing to be done for 'subdir_lib'.
make[2]: Leaving directory '/home/myusername/aur/libx32-glibc/src/glibc-2.18/login'
make subdir=elf -C elf ..=../ subdir_lib
make[2]: Entering directory '/home/myusername/aur/libx32-glibc/src/glibc-2.18/elf'
/opt/gcc-x32-seed/bin/gcc -mx32 -B/opt/gcc-x32-seed/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/ -Wl,-O1,--sort-common,--as-needed,-z,relro -nostdlib -nostartfiles -r -o /home/myusername/aur/libx32-glibc/src/glibc-build/elf/librtld.map.o '-Wl,-(' /home/myusername/aur/libx32-glibc/src/glibc-build/elf/dl-allobjs.os /home/myusername/aur/libx32-glibc/src/glibc-build/libc_pic.a -lgcc '-Wl,-)' -Wl,-Map,/home/myusername/aur/libx32-glibc/src/glibc-build/elf/librtld.mapT
/usr/bin/ld: cannot find -lgcc
collect2: error: ld returned 1 exit status
Makefile:285: recipe for target '/home/myusername/aur/libx32-glibc/src/glibc-build/elf/librtld.map' failed
make[2]: *** [/home/myusername/aur/libx32-glibc/src/glibc-build/elf/librtld.map] Error 1
make[2]: Leaving directory '/home/myusername/aur/libx32-glibc/src/glibc-2.18/elf'
Makefile:236: recipe for target 'elf/subdir_lib' failed
make[1]: *** [elf/subdir_lib] Error 2
make[1]: Leaving directory '/home/myusername/aur/libx32-glibc/src/glibc-2.18'
Makefile:12: recipe for target 'install' failed
make: *** [install] Error 2
==> ERROR: A failure occurred in package().
Aborting...
In accordance with this solved topic for a similar issue, I have ensured that options=('staticlibs') is present in PKGBUILD:
options=('!strip' '!emptydirs' 'staticlibs')
I have tried re downloading and compiling all the src but the same issue occurs.
Here is a list of gcc/glibc/multilib packages that I have installed:
[mephage@tws01 exercise1]$ pacman -Q | grep -E -e 'multilib|gcc|glibc'
binutils-multilib 2.24-1
gcc-libs-multilib 4.8.2-7
gcc-multilib 4.8.2-7
gcc-x32-seed 4.8.2_7-1
glibc 2.18-12
glibc-x32-seed 0.1.0-1
lib32-gcc-libs 4.8.2-7
lib32-glibc 2.18-12
libtool-multilib 2.4.2-12
Here is a list of aur packages that I have installed:
[mephage@tws01 exercise1]$ pacman -Qm
gcc-x32-seed 4.8.2_7-1
glibc-x32-seed 0.1.0-1
linux-ck 3.12.9-3
linux-ck-headers 3.12.9-3
nvidia-ck 331.38-2
xdm-arch-theme 2.3.1-3Still haven't resolved this. However, I did see that there is more information in /home/myusername/dir-where-i-extract-aur-tarballs/libx32-glibc/src/glibc-build/config.log:
/usr/bin/ld: cannot find -lgcc
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
/usr/bin/ld: cannot find -lc
/usr/bin/ld: cannot find -lgcc
collect2: error: ld returned 1 exit status
My guess is that I need a compatible libc.so so that /usr/bin/ld can create the links using gcc.
Edit: Removed a line that was incorrect
Last edited by mephage (2014-02-23 04:54:07) -
Hello,
I got this problem while trying to install "uswsusp" from AUR with yaourt, when it comes to compile :
gcc -DS2RAM -D_GNU_SOURCE -march=i686 -mtune=generic -O2 -pipe -static -o resume resume-resume.o libsuspend-common.a -llzo2 -lgcrypt -lgpg-error
/usr/bin/ld: cannot find -lgcrypt
But libgcrypt is already installed and the programs seems to find it :
checking for libgcrypt... found
I didn't managed to find anything across the web... Thanks in advance for any help !ankan has a solution in the AUR comments: http://aur.archlinux.org/packages.php?ID=14093
ankan wrote:
"-static" disables linkning with dynamic libraries. So you have the package - but not the static libraries.
Try rebuilding libgcrypt from abs and remove "--disable-static".
It looks like you guys are new users, so you might not know how ABS works yet. Take a look here for a quick walkthrough on ABS and makepkg. You'll need to edit libgcrypt's stock PKGBUILD file and take out "--disable-static" before you run makepkg.
Last edited by creslin (2008-10-15 23:09:05) -
Can't build jade package, /usr/bin/ld: cannot find -lsp
Hello everyone (my first post here )
I installed Archlinux because of it's ease of use when compiling the whole system (compared to Gentoo and others), I have my first install of Archlinux, and began to compile all packages in the system using the pacbuilder community script (note I havn't use the testing repositories when installing packages).
Some packages compiles well but when it comes to the jade package it fails, I got the following error:
/usr/bin/ld: cannot find -lsp
collect2: ld returned 1 exit status
make[2]: *** [libspgrove.la] Error 1
make[2]: Leaving directory `/tmp/pacbuilder/build/jade/src/jade-1.2.1/spgrove'
make[1]: *** [spgrove] Error 2
make[1]: *** Waiting for unfinished jobs....
/usr/bin/ld: cannot find -lsp
collect2: ld returned 1 exit status
make[2]: *** [libstyle.la] Error 1
make[2]: Leaving directory `/tmp/pacbuilder/build/jade/src/jade-1.2.1/style'
make[1]: *** [style] Error 2
make[2]: Leaving directory `/tmp/pacbuilder/build/jade/src/jade-1.2.1/lib'
make[1]: Leaving directory `/tmp/pacbuilder/build/jade/src/jade-1.2.1'
make: *** [all] Error 2
I think I'm missing some devlopment library that comtains the lsp command, right?
Please help me to solve the problem
thanksThank you Allan,
It worked when changing the PKGBUILD within the jade folder in /tmp/pacbuilder/build, but I must change this file after that pacbuilder made the folder and before the building process begin (you have a shore time to edit, and it is not practical when building the whole system) is it any better ide like editing another file in ABS..? -
[solved] build failing: /usr/bin/ld: cannot find -lgd
I'm trying to satisfy crossover dependencies and recommendations. Found lib32-libgphoto2 on AUR with a few dependencies of its own, all of which I installed succesfully.
When doing a makepkg for lib32-libgphoto2 I get the following error:
libtool: link: gcc -m32 -shared -fPIC -DPIC ax203/.libs/ax203_la-library.o ax203/.libs/ax203_la-ax203.o ax203/.libs/ax203_la-ax203_decode_yuv.o ax203/.libs/ax203_la-ax203_decode_yuv_delta.o ax203/.libs/ax203_la-ax203_compress_jpeg.o ax203/.libs/ax203_la-jpeg_memsrcdest.o ax203/.libs/ax203_la-tinyjpeg.o ax203/.libs/ax203_la-jidctflt.o -Wl,-rpath -Wl,/home/someuser/Downloads/aur/lib32-libgphoto2/src/build/libgphoto2/.libs -Wl,-rpath -Wl,/home/someuser/Downloads/aur/lib32-libgphoto2/src/build/libgphoto2_port/libgphoto2_port/.libs -L/home/someuser/Downloads/aur/lib32-libgphoto2/src/build/libgphoto2_port/libgphoto2_port/.libs ../libgphoto2/.libs/libgphoto2.so -L/usr/lib32 /home/someuser/Downloads/aur/lib32-libgphoto2/src/build/libgphoto2_port/libgphoto2_port/.libs/libgphoto2_port.so -lexif ../libgphoto2_port/libgphoto2_port/.libs/libgphoto2_port.so -lltdl -lpthread -lgd -lz -lm -lpng16 -lfreetype -lfontconfig -ljpeg -m32 -march=x86-64 -mtune=generic -O2 -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z -Wl,relro -Wl,-soname -Wl,ax203.so -Wl,-version-script -Wl,.libs/ax203.ver -o .libs/ax203.so
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/../../../libgd.so when searching for -lgd
/usr/bin/ld: skipping incompatible /usr/lib/libgd.so when searching for -lgd
/usr/bin/ld: cannot find -lgd
collect2: error: ld returned 1 exit status
Makefile:1659: recipe for target 'ax203.la' failed
make[3]: *** [ax203.la] Error 1
make[3]: Leaving directory '/home/someuser/Downloads/aur/lib32-libgphoto2/src/build/camlibs'
Makefile:3347: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/someuser/Downloads/aur/lib32-libgphoto2/src/build/camlibs'
Makefile:622: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/someuser/Downloads/aur/lib32-libgphoto2/src/build'
Makefile:444: recipe for target 'all' failed
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
In that blob of text it says 'skipping incompatible' so it found something but I don't know to fix that or find out what it needs. A search on the internet I found that the message (in title) means I'm missing 32-bit library for gd, so I pulled that from AUR and installed it, but its still giving me this message.
Any ideas what I need to do to get this to build?
Thanks in advance.
Last edited by mouseman (2014-05-05 05:24:27)The linker tries to find libgd. so. If you build lib32-libgphoto2, I guess from the name that you are building a 32 bit package on a 64 bits installation. You should have the 32 bit version of libgd. so and you only have the 64 bit version (hence skipping incompatible /usr/lib/libgd.so). Note that I have not found this version in the multilib repository (nor on AUR), I think you will have to build it yourself.
-
/usr/bin/ld: cannot find -lR
I can not compile rkward (http://rkward.sf.net).
Error infomation here:
source='helpdlg.cpp' object='helpdlg.o' libtool=no
depfile='.deps/helpdlg.Po' tmpdepfile='.deps/helpdlg.TPo'
depmode=gcc3 /bin/sh ../admin/depcomp
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/kde/include -I/opt/qt/include -I/usr/X11R6/include -I/usr/lib/R/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -O2 -march=i686 -O2 -pipe -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -c -o helpdlg.o `test -f 'helpdlg.cpp' || echo './'`helpdlg.cpp
/bin/sh ../libtool --silent --mode=link --tag=CXX g++ -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -O2 -march=i686 -O2 -pipe -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -o rkward -L/usr/X11R6/lib -L/opt/qt/lib -L/opt/kde/lib -L/usr/lib/R/lib/ rkwatch.o rkward.o main.o rkoutputwindow.o rkcommandeditor.o rkglobals.o robjectbrowser.o rkeditormanager.o robjectviewer.o khelpdlg.o rkhelpdock.o rkconsole.o rkkonsole.o helpdlg.o rkward.moc.o rkkonsole.moc.o rkwatch.moc.o ../rkward/windows/libwindows.a ../rkward/agents/libagents.a ../rkward/dialogs/libdialogs.a ../rkward/plugin/libplugin.a ../rkward/settings/libsettings.a ../rkward/dataeditor/libdataeditor.a ../rkward/core/libcore.a ../rkward/rbackend/librbackend.a ../rkward/scriptbackends/libscriptbackends.a ../rkward/misc/libmisc.a -lkhtml -lkmdi -lkio -lkdeui -lkdecore -lqt-mt -lz -lpng -lz -lm -lXext -lX11 -lSM -lICE -lpthread -lR -lkatepartinterfaces
/usr/bin/ld: cannot find -lR
collect2: ld returned 1 exit status
make[3]: *** [rkward] Error 1
make[3]: Leaving directory `/home/kevin/tmp/rkward/src/rkward-0.3.2/rkward'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/kevin/tmp/rkward/src/rkward-0.3.2/rkward'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/kevin/tmp/rkward/src/rkward-0.3.2'
make: *** [all] Error 2
==> ERROR: Build Failed. Aborting...I checked the rkward's INSTALL file, it seems to need libR.so, which is absolutely not in arch's r package!
-
Need help with class info and cannot find symbol error.
I having problems with a cannot find symbol error. I cant seem to figure it out.
I have about 12 of them in a program I am trying to do. I was wondering if anyone could help me out?
Here is some code I am working on:
// This will test the invoice class application.
// This program involves a hardware store's invoice.
//import java.util.*;
public class InvoiceTest
public static void main( String args[] )
Invoice invoice1 = new Invoice( "1234", "Hammer", 2, 14.95 );
// display invoice1
System.out.println("Original invoice information" );
System.out.println("Part number: ", invoice1.getPartNumber() );
System.out.println("Description: ", invoice1.getPartDescription() );
System.out.println("Quantity: ", invoice1.getQuantity() );
System.out.println("Price: ", invoice1.getPricePerItem() );
System.out.println("Invoice amount: ", invoice1.getInvoiceAmount() );
// change invoice1's data
invoice1.setPartNumber( "001234" );
invoice1.setPartDescription( "Yellow Hammer" );
invoice1.setQuantity( 3 );
invoice1.setPricePerItem( 19.49 );
// display invoice1 with new data
System.out.println("Updated invoice information" );
System.out.println("Part number: ", invoice1.getPartNumber() );
System.out.println("Description: ", invoice1.getPartDescription() );
System.out.println("Quantity: ", invoice1.getQuantity() );
System.out.println("Price: ", invoice1.getPricePerItem() );
System.out.println("Invoice amount: ", invoice1.getInvoiceAmount() );
and that uses this class file:
public class Invoice
private String partNumber;
private String partDescription;
private int quantityPurchased;
private double pricePerItem;
public Invoice( String ID, String desc, int purchased, double price )
partNumber = ID;
partDescription = desc;
if ( purchased >= 0 )
quantityPurchased = purchased;
if ( price > 0 )
pricePerItem = price;
public double getInvoiceAmount()
return quantityPurchased * pricePerItem;
public void setPartNumber( String newNumber )
partNumber = newNumber;
System.out.println(partDescription+" has changed to part "+newNumber);
public String getPartNumber()
return partNumber;
public void setDescription( String newDescription )
System.out.printf("%s now refers to %s, not %s.\n",
partNumber, newDescription, partDescription);
partDescription = newDescription;
public String getDescription()
return partDescription;
public void setPricePerItem( double newPrice )
if ( newPrice > 0 )
pricePerItem = newPrice;
public double getPricePerItem()
return pricePerItem;
Any tips for helping me out?System.out.println("Part number:
"+invoice1.getPartNumber;
The + sign will concatenate invoice1.getPartNumber()
after "Part number: " forming only one String.I added the plus sign and it gives me more errors:
C:\>javac InvoiceTest.java
InvoiceTest.java:16: operator + cannot be applied to java.lang.String
System.out.println("Part number: ", + invoice1.getPartNumber() );
^
InvoiceTest.java:17: cannot find symbol
symbol : method getPartDescription()
location: class Invoice
System.out.println("Description: ", + invoice1.getPartDescription() );
^
InvoiceTest.java:17: cannot find symbol
symbol : method println(java.lang.String,int)
location: class java.io.PrintStream
System.out.println("Description: ", + invoice1.getPartDescription() );
^
InvoiceTest.java:18: cannot find symbol
symbol : method getQuantity()
location: class Invoice
System.out.println("Quantity: ", + invoice1.getQuantity() );
^
InvoiceTest.java:18: cannot find symbol
symbol : method println(java.lang.String,int)
location: class java.io.PrintStream
System.out.println("Quantity: ", + invoice1.getQuantity() );
^
InvoiceTest.java:19: cannot find symbol
symbol : method println(java.lang.String,double)
location: class java.io.PrintStream
System.out.println("Price: ", + invoice1.getPricePerItem() );
^
InvoiceTest.java:20: cannot find symbol
symbol : method println(java.lang.String,double)
location: class java.io.PrintStream
System.out.println("Invoice amount: ", + invoice1.getInvoiceAmount() );
^
InvoiceTest.java:24: cannot find symbol
symbol : method setPartDescription(java.lang.String)
location: class Invoice
invoice1.setPartDescription( "Yellow Hammer" );
^
InvoiceTest.java:25: cannot find symbol
symbol : method setQuantity(int)
location: class Invoice
invoice1.setQuantity( 3 );
^
InvoiceTest.java:30: operator + cannot be applied to java.lang.String
System.out.println("Part number: ", + invoice1.getPartNumber() );
^
InvoiceTest.java:31: cannot find symbol
symbol : method getPartDescription()
location: class Invoice
System.out.println("Description: ", + invoice1.getPartDescription() );
^
InvoiceTest.java:31: cannot find symbol
symbol : method println(java.lang.String,int)
location: class java.io.PrintStream
System.out.println("Description: ", + invoice1.getPartDescription() );
^
InvoiceTest.java:32: cannot find symbol
symbol : method getQuantity()
location: class Invoice
System.out.println("Quantity: ", + invoice1.getQuantity() );
^
InvoiceTest.java:32: cannot find symbol
symbol : method println(java.lang.String,int)
location: class java.io.PrintStream
System.out.println("Quantity: ", + invoice1.getQuantity() );
^
InvoiceTest.java:33: cannot find symbol
symbol : method println(java.lang.String,double)
location: class java.io.PrintStream
System.out.println("Price: ", + invoice1.getPricePerItem() );
^
InvoiceTest.java:34: cannot find symbol
symbol : method println(java.lang.String,double)
location: class java.io.PrintStream
System.out.println("Invoice amount: ", + invoice1.getInvoiceAmount() );
^
16 errors -
/usr/bin/ld: cannot find -lgomp
Trying to compile wine-multimedia-git from AUR with a few custom flags.
ld insists it cannot find -lgomp, although it's never complained about that while compiling any other packages.
libgomp is installed and available at /usr/lib/libgomp.so, /usr/lib32/libgomp.so, and /usr/lib64/libgomp.so
How can I convince ld that it is wrong?quequotion wrote:First there were the memset errors, so I asked google what they mean; after comparing various results it seemed to tell me this has something to do with openmp, and that the errors go away when linking with -lgomp.
And now that I consult google again, I find nothing at all like the search results I found before. In fact, where hours and hours of searching previously yielded nothing similar to my problem, I now find dozens of reports of this issue (with llvm and gcc 4.8, neither of which I am using) and a possible workaround (-fno-builtins, but wine should specify that for itself).
WTF?
::EDIT::
hrm... not working... back to square one, without -lgomp:
preloader.o: In function `map_so_lib':
preloader.c:(.text+0xf64): undefined reference to `memset'
preloader.c:(.text+0x1239): undefined reference to `memset'
preloader.o: In function `wld_start':
preloader.c:(.text+0x26df): undefined reference to `memset'
collect2: error: ld returned 1 exit status
Makefile:174: recipe for target 'wine64-preloader' failed
make[1]: *** [wine64-preloader] Error 1
Makefile:17605: recipe for target 'loader' failed
make: *** [loader] Error 2
make: *** Waiting for unfinished jobs....
../../../wine-multimedia/tools/wrc/parser.y: warning: 5 shift/reduce conflicts [-Wconflicts-sr]
../../../wine-multimedia/tools/wrc/parser.y: warning: 5 shift/reduce conflicts [-Wconflicts-sr]
change.o: In function `req_read_directory_changes._loopfn.0':
change.c:(.text+0x2c1a): undefined reference to `omp_get_num_threads'
change.c:(.text+0x2c21): undefined reference to `omp_get_thread_num'
change.o: In function `req_read_directory_changes._loopfn.1':
change.c:(.text+0x2e2a): undefined reference to `omp_get_num_threads'
change.c:(.text+0x2e31): undefined reference to `omp_get_thread_num'
console.o: In function `req_read_console_output':
console.c:(.text+0x43e0): undefined reference to `GOMP_parallel'
console.c:(.text+0x4483): undefined reference to `GOMP_parallel'
console.c:(.text+0x4520): undefined reference to `GOMP_parallel'
console.o: In function `req_fill_console_output':
console.c:(.text+0x57b8): undefined reference to `GOMP_parallel'
console.c:(.text+0x588e): undefined reference to `GOMP_parallel'
console.o:console.c:(.text+0x590a): more undefined references to `GOMP_parallel' follow
console.o: In function `req_read_console_output._loopfn.0':
console.c:(.text+0x69ec): undefined reference to `omp_get_num_threads'
console.c:(.text+0x69f8): undefined reference to `omp_get_thread_num'
console.o: In function `req_read_console_output._loopfn.1':
console.c:(.text+0x6ebc): undefined reference to `omp_get_num_threads'
console.c:(.text+0x6ec8): undefined reference to `omp_get_thread_num'
console.o: In function `req_read_console_output._loopfn.2':
console.c:(.text+0x73be): undefined reference to `omp_get_num_threads'
console.c:(.text+0x73ca): undefined reference to `omp_get_thread_num'
console.o: In function `req_fill_console_output._loopfn.3':
console.c:(.text+0x753e): undefined reference to `omp_get_num_threads'
console.c:(.text+0x754a): undefined reference to `omp_get_thread_num'
console.o: In function `req_fill_console_output._loopfn.4':
console.c:(.text+0x767e): undefined reference to `omp_get_num_threads'
console.c:(.text+0x768b): undefined reference to `omp_get_thread_num'
console.o: In function `req_fill_console_output._loopfn.5':
console.c:(.text+0x77be): undefined reference to `omp_get_num_threads'
console.c:(.text+0x77cb): undefined reference to `omp_get_thread_num'
console.o: In function `req_fill_console_output._loopfn.6':
console.c:(.text+0x78fe): undefined reference to `omp_get_num_threads'
console.c:(.text+0x790b): undefined reference to `omp_get_thread_num'
console.o: In function `req_fill_console_output._loopfn.7':
console.c:(.text+0x7a3c): undefined reference to `omp_get_num_threads'
console.c:(.text+0x7a49): undefined reference to `omp_get_thread_num'
hook.o: In function `req_set_hook._loopfn.0':
hook.c:(.text+0x1dd2): undefined reference to `omp_get_num_threads'
hook.c:(.text+0x1dd9): undefined reference to `omp_get_thread_num'
thread.o: In function `create_thread._loopfn.0':
thread.c:(.text+0x569a): undefined reference to `omp_get_num_threads'
thread.c:(.text+0x56a1): undefined reference to `omp_get_thread_num'
collect2: error: ld returned 1 exit status
Makefile:203: recipe for target 'wineserver' failed
make[1]: *** [wineserver] Error 1
make[1]: *** Waiting for unfinished jobs....
change.o: In function `req_read_directory_changes._loopfn.0':
change.c:(.text+0x2c1a): undefined reference to `omp_get_num_threads'
change.c:(.text+0x2c21): undefined reference to `omp_get_thread_num'
change.o: In function `req_read_directory_changes._loopfn.1':
change.c:(.text+0x2e2a): undefined reference to `omp_get_num_threads'
change.c:(.text+0x2e31): undefined reference to `omp_get_thread_num'
console.o: In function `req_read_console_output':
console.c:(.text+0x43e0): undefined reference to `GOMP_parallel'
console.c:(.text+0x4483): undefined reference to `GOMP_parallel'
console.c:(.text+0x4520): undefined reference to `GOMP_parallel'
console.o: In function `req_fill_console_output':
console.c:(.text+0x57b8): undefined reference to `GOMP_parallel'
console.c:(.text+0x588e): undefined reference to `GOMP_parallel'
console.o:console.c:(.text+0x590a): more undefined references to `GOMP_parallel' follow
console.o: In function `req_read_console_output._loopfn.0':
console.c:(.text+0x69ec): undefined reference to `omp_get_num_threads'
console.c:(.text+0x69f8): undefined reference to `omp_get_thread_num'
console.o: In function `req_read_console_output._loopfn.1':
console.c:(.text+0x6ebc): undefined reference to `omp_get_num_threads'
console.c:(.text+0x6ec8): undefined reference to `omp_get_thread_num'
console.o: In function `req_read_console_output._loopfn.2':
console.c:(.text+0x73be): undefined reference to `omp_get_num_threads'
console.c:(.text+0x73ca): undefined reference to `omp_get_thread_num'
console.o: In function `req_fill_console_output._loopfn.3':
console.c:(.text+0x753e): undefined reference to `omp_get_num_threads'
console.c:(.text+0x754a): undefined reference to `omp_get_thread_num'
console.o: In function `req_fill_console_output._loopfn.4':
console.c:(.text+0x767e): undefined reference to `omp_get_num_threads'
console.c:(.text+0x768b): undefined reference to `omp_get_thread_num'
console.o: In function `req_fill_console_output._loopfn.5':
console.c:(.text+0x77be): undefined reference to `omp_get_num_threads'
console.c:(.text+0x77cb): undefined reference to `omp_get_thread_num'
console.o: In function `req_fill_console_output._loopfn.6':
console.c:(.text+0x78fe): undefined reference to `omp_get_num_threads'
console.c:(.text+0x790b): undefined reference to `omp_get_thread_num'
console.o: In function `req_fill_console_output._loopfn.7':
console.c:(.text+0x7a3c): undefined reference to `omp_get_num_threads'
console.c:(.text+0x7a49): undefined reference to `omp_get_thread_num'
hook.o: In function `req_set_hook._loopfn.0':
hook.c:(.text+0x1dd2): undefined reference to `omp_get_num_threads'
hook.c:(.text+0x1dd9): undefined reference to `omp_get_thread_num'
thread.o: In function `create_thread._loopfn.0':
thread.c:(.text+0x569a): undefined reference to `omp_get_num_threads'
thread.c:(.text+0x56a1): undefined reference to `omp_get_thread_num'
collect2: error: ld returned 1 exit status
::UPDATE::
Wine does compile now, but I never found a solution to this problem. My theories at the moment are either that an undeclared lib32- dependency is now satisfied (a side benefit of mmug-qq), wine itself was updated to fix the problem (haven't checked the rather extensive git commit log), or some configuration file somewhere has been updated into a working state...
Last edited by quequotion (2014-09-07 14:02:32) -
Error with /usr/bin/cyrus/tools/mkimap
I get the following error on a /mkimap after setting /var/imap to /var/imap.old
server:~ root# /usr/bin/cyrus/tools/mkimap
reading configure file...
i will configure directory /var/imap.
i saw partition /var/spool/imap.
done
configuring /var/imap...
couldn't change to /var/imap at (eval 1) line 59.Are your permissions OK?
Yup, A ok.
Did you stop mail services before moving your
database?
Yes, not that much of a UNIX noob.
Is your /etc/imapd.conf file OK?
Well on this one I'd have to ask what would not be OK? I was porting from a PowerPC to the Intel and I used Server Admin to copy mail config via "Mail Config.plist" exported from old to new. Is the some differance between the PowerPC /etc/imapd.conf and the Intel UB install of MacOSX Server 10.4.7 /etc/imapd.conf? -
Cannot find symbol error -- array fill from text file
When I compile my program I receive a cannot find symbol error for the variable ayears. I thought this snippet would fill the array ayears that could be accessed later in the program but I am getting the error message from my buildGUI() class. What could I have done wrong?
(my file options.txt contains data separated by a comma and a space)
public void getOption(){
InputStream istream;
File options = new File("options.txt");
istream = new FileInputStream(options);
try {
StringBuffer sbuff = new StringBuffer();
BufferedReader inbuff = new
BufferedReader(new FileReader(options));
String line = "";
while((line = inbuff.readLine()) != null) {
System.out.println(line);
sbuff.append(line);
inbuff.close();
String fileData = sbuff.toString();
String[] splitData = fileData.split(", ");
String[] ayears = new String[splitData.length];
catch(Exception e){
JOptionPane.showMessageDialog(null,
"Could not find specified file", "Error Message",
JOptionPane.ERROR_MESSAGE);
}Okay -- that helped. I've avoided that error -- now on to the next one, why won't my array fill? It's going to be a long night.
Thanks for the help.
Maybe you are looking for
-
Can't receive MS Outlook Calendar Messages on my BB Curve
Hello, My boss schedules my appointments for me everyday in MS Outlook and sends the update to me via email. In the past, I would receive the message on my 8330 and select "accept" to update the calendar in my BB. This was working fine until about 3
-
I downloaded the Creative Suite trial and at 99% download that took seemingly forever, I got the error 101 message. I then Signed-in Adobe and restarted the download. I also tried to directly download After Effects and after downloading both parts I
-
Pulling text from a .txt to a scroll pane or text area
Hi- I'm sure there's a way to do this, but I'm not exactly fluent in ActionScript. Basically, my whole website's going to be in Flash, but I want to be able to update one page (sort of a news/blog page) without having to edit the Flash file every tim
-
Swapping the charactersitcs in query
Hi, I've a query in the following format Company Code Material Group Ker Figure1 KeyFigure 2 1000 AB 3000 40000 2000 AB 5000 60000 3000
-
I need help convert a 32 bit hex number to the following form
is there a java class in the API that help me to do this? 3e900000 ==> 2^-2(1 + 2^-3)