collect2: ld returned 1 exit status

L

learning_C++

Hi,
When i tried to compile my code, there is an error:
collect2: ld returned 1 exit status
what is the reason causing this error?

Thanks,,
 
V

Victor Bazarov

learning_C++ said:
When i tried to compile my code, there is an error:
collect2: ld returned 1 exit status
what is the reason causing this error?

Try 'man ld'.
 
K

Karthik Kumar

learning_C++ said:
Hi,
When i tried to compile my code, there is an error:
collect2: ld returned 1 exit status
what is the reason causing this error?

Thanks,,

If you can post the entire error message, we can help. It could be
that the library does not exist in the lookup path , you had given to
the linker or the library name could be misspelt. Post the entire log to
seek help.
 
R

Ron Samuel Klatchko

When i tried to compile my code, there is an error:
collect2: ld returned 1 exit status
what is the reason causing this error?

Are you sure that is the only output you got? Normally you should have also
gotten some other output that gives you the details of what went wrong.

samuel
 
Joined
Jul 11, 2007
Messages
1
Reaction score
0
Getting same error while compiling mod_perl lib

I am getting the same error while compliling the mod_perl lib
plz help me out

error trace is attached for the reference ::



mod_perl.lo modperl_interp.lo modperl_tipool.lo modperl_log.lo modperl_c
onfig.lo modperl_cmd.lo modperl_options.lo modperl_callback.lo modperl_handler.l
o modperl_gtop.lo modperl_util.lo modperl_io.lo modperl_io_apache.lo modperl_fil
ter.lo modperl_bucket.lo modperl_mgv.lo modperl_pcw.lo modperl_global.lo modperl
_env.lo modperl_cgi.lo modperl_perl.lo modperl_perl_global.lo modperl_perl_pp.lo
modperl_sys.lo modperl_module.lo modperl_svptr_table.lo modperl_const.lo modper
l_constants.lo modperl_apache_compat.lo modperl_error.lo modperl_debug.lo modper
l_common_util.lo modperl_common_log.lo modperl_hooks.lo modperl_directives.lo mo
dperl_flags.lo modperl_xsinit.lo modperl_exports.lo \
-s -L/usr/local/lib -s -s -L/usr/local/lib /usr/lib/perl5/5.8/cygwin/au
to/DynaLoader/DynaLoader.a /usr/lib/perl5/5.8/cygwin/auto/Win32CORE/Win32CORE.a
-L/usr/lib/perl5/5.8/cygwin/CORE -lperl -lcrypt -lgdbm_compat \
-L/cygdrive/e/Projects/mod_perl-2.0.3/src/modules/perl -lhttpd2core -L/
usr/lib -laprutil-1 -lgdbm -ldb-4.2 -lexpat -liconv -L/usr/lib -L/usr/lib -lapr
-1 -lcrypt
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: cannot find
-liconv
collect2: ld returned 1 exit status
make[1]: *** [mod_perl.so] Error 1
make[1]: Leaving directory `/cygdrive/e/Projects/mod_perl-2.0.3/src/modules/perl
'
make: *** [modperl_lib] Error 2
 
Joined
May 30, 2008
Messages
1
Reaction score
0
problems in compiling svn from source...

i am quite a beginner and so my query may sound quite trivial to u guys but plz help me out with this

the ./configure worked fine
but while make i get :

linux-awa5:~/Desktop/subversion-1.4.6 # make
cd subversion/libsvn_subr && /bin/sh /root/Desktop/subversion-1.4.6/libtool --tag=CC --silent --mode=link gcc -g -O2 -pthread -L/usr/lib -rpath /usr/local/lib -o libsvn_subr-1.la auth.lo cmdline.lo compat.lo config.lo config_auth.lo config_file.lo config_win.lo constructors.lo ctype.lo date.lo dso.lo error.lo hash.lo io.lo kitchensink.lo lock.lo md5.lo nls.lo opt.lo path.lo pool.lo prompt.lo quoprint.lo simple_providers.lo sorts.lo ssl_client_cert_providers.lo ssl_client_cert_pw_providers.lo ssl_server_trust_providers.lo stream.lo subst.lo svn_base64.lo svn_string.lo target.lo time.lo user.lo username_providers.lo utf.lo utf_validate.lo validate.lo version.lo xml.lo /usr/lib/libaprutil-1.la -lldap -llber -ldb-4.5 -lexpat /usr/lib/libapr-1.la -lrt -lcrypt -lpthread -ldl -lz
/usr/lib/gcc/i586-suse-linux/4.2.1/../../../../i586-suse-linux/bin/ld: cannot find -lldap
collect2: ld returned 1 exit status
make: *** [subversion/libsvn_subr/libsvn_subr-1.la] Error 1

tell me what is this -lldap cud nt find man !!!
 
Joined
Oct 13, 2008
Messages
2
Reaction score
0
Similar Problem as the first post

I'm getting a similar error as the first guy on the thread:

clpc129[/home/scratch/Insight-work]$ ccmake . ../Insight-binary/


clpc129[/home/scratch/Insight-work]$ make
Linking CXX executable HelloWorld
/usr/bin/ld: cannot find -lITKCommon
collect2: ld returned 1 exit status
make[2]: *** [HelloWorld] Error 1
make[1]: *** [CMakeFiles/HelloWorld.dir/all] Error 2
make: *** [all] Error 2

I'm having a bit of problems figuring out what the error could be. Is there anyone that could give me a hand with this?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,740
Latest member
JudsonFrie

Latest Threads

Top