This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Compilation problems on Ubuntu 64-bit
- From: Marcus Clyne <maccaday at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Sun, 05 Jul 2009 17:58:32 +0300
- Subject: Re: Compilation problems on Ubuntu 64-bit
- References: <4A4C71FE.2070305@gmail.com>
Hi,
Thanks for the previous responses. I'm now getting some different
errors, which are only displayed when using execv:
../lib/gcc/x86_64-linux-gnu/4.3.3/../../../../lib/crt1.o: In function
`_start':
/build/buildd/glibc-2.9/csu/../sysdeps/x86_64/elf/start.S:109: undefined
reference to `main'
/usr/local/lib/libsimpl.so: undefined reference to `ngx_http_core_module'
/usr/local/lib/libsimpl.so: undefined reference to `ngx_http_script_compile'
/usr/local/lib/libsimpl.so: undefined reference to `pcre_free'
/usr/local/lib/libsimpl.so: undefined reference to `ngx_palloc'
/usr/local/lib/libsimpl.so: undefined reference to `ngx_http_add_variable'
/usr/local/lib/libsimpl.so: undefined reference to `ngx_parse_size'
/usr/local/lib/libsimpl.so: undefined reference to `ngx_pcalloc'
/usr/local/lib/libsimpl.so: undefined reference to `simpl_request_handler'
/usr/local/lib/libsimpl.so: undefined reference to `ngx_array_create'
/usr/local/lib/libsimpl.so: undefined reference to `ngx_http_script_run'
/usr/local/lib/libsimpl.so: undefined reference to `ngx_parse_time'
/usr/local/lib/libsimpl.so: undefined reference to `pcre_malloc'
/usr/local/lib/libsimpl.so: undefined reference to `ngx_parse_offset'
/usr/local/lib/libsimpl.so: undefined reference to `ngx_http_output_filter'
/usr/local/lib/libsimpl.so: undefined reference to
`ngx_http_variable_null_value'
/usr/local/lib/libsimpl.so: undefined reference to `ngx_core_module'
/usr/local/lib/libsimpl.so: undefined reference to `ngx_conf_log_error'
/usr/local/lib/libsimpl.so: undefined reference to `ngx_strcasecmp'
/usr/local/lib/libsimpl.so: undefined reference to
`ngx_http_get_variable_index'
/usr/local/lib/libsimpl.so: undefined reference to `ngx_http_send_header'
/usr/local/lib/libsimpl.so: undefined reference to `ngx_log_error_core'
collect2: ld returned 1 exit status
I have tried compiling on the same system/setup using the shell, and it
works without displaying any errors or undefined references.
I have set the cwd to /usr/bin before calling execvp (I've also tried
with execv with the same results).
There are two things that are puzzling to me. First the first two
lines, and secondly that undefined symbol references would appear, since
they aren't actually being used and the .so isn't being loaded.
Thanks in advance for any responses that can help me solve these.
Marcus.