solaris,apache,mod_perl,php: Make bombs symbol `Error' is multiply defined

solaris,apache,mod_perl,php: Make bombs symbol `Error' is multiply defined

Post by Andreas Steffa » Sat, 26 Apr 1997 04:00:00



Hi,

When trying to build apache with these modules, make bombs:

gcc  -L.  -o httpd alloc.o http_main.o http_core.o http_config.o
http_request.o http_log.o http_protocol.o rfc1413.o util.o util_script.o
modules.o buff.o md5c.o util_md5.o explain.o http_bprintf.o util_date.o
util_snprintf.o mod_mime.o mod_access.o mod_auth.o mod_negotiation.o
mod_include.o mod_dir.o mod_cgi.o mod_userdir.o mod_alias.o mod_env.o
mod_log_config.o mod_asis.o mod_imap.o mod_actions.o mod_browser.o
apapi-zmod.o mod_php.o modules/perl/libmodperl.a regex/libregex.a `perl
/local/tools/apache_1.2b8/src/mod_perl-0.96/src/modules/perl/ldopts`
-lphp -lsocket -lnsl
ld: fatal: symbol `Error' is multiply defined:
        (file
/tools/perl-5.003/lib/sun4-solaris/5.003/CORE/libperl.a(globals.o)
type=OBJT; file ./libphp.a(error.o) type=FUNC);
ld: fatal: File processing errors.  No output written to httpd

Any ideas ?
--

                           Tschoee Andreas

PS: solaris-2.5.1,apache-1.2b8,php-2.0b10,mod_perl-0.96
PPS: Please also reply via email.

+-------------------------------------------------------------------+

+-------------------------------------------------------------------+

 
 
 

1. ld: fatal error : symbols multiply-defined

Hello,

I am using ld's -r option to build combine several object files into a
single relocatable object file. This works fine but when I then
include this new relocatable object file into another ld command to
create an executable I get the following errors:

ra: /export/home/greg/code/prog >cc -dn -o invoker invoker.c testies.o
ld: fatal: symbol `_start' is multiply-defined:
(file /opt/SUNWspro/WS6U2/lib/crt1.o and file testies.o);
ld: fatal: symbol `_environ' is multiply-defined:
(file /opt/SUNWspro/WS6U2/lib/crt1.o and file testies.o);
ld: fatal: symbol `_init' is multiply-defined:
(file /opt/SUNWspro/WS6U2/lib/crti.o and file testies.o);
ld: fatal: symbol `___Argv' is multiply-defined:
(file /opt/SUNWspro/WS6U2/lib/crt1.o and file testies.o);
ld: fatal: symbol `__cg92_used' is multiply-defined:
(file /opt/SUNWspro/WS6U2/lib/crt1.o and file testies.o);
ld: fatal: symbol `_lib_version' is multiply-defined:
(file /opt/SUNWspro/WS6U2/lib/values-xa.o and file testies.o);
ld: fatal: symbol `__environ_lock' is multiply-defined:
(file /opt/SUNWspro/WS6U2/lib/crt1.o and file testies.o);
ld: fatal: symbol `_fini' is multiply-defined:
(file /opt/SUNWspro/WS6U2/lib/crti.o and file testies.o);
ld: fatal: File processing errors. No output written to invoker

I am running Solaris8.

Any ideas on how to fix this?

It appears the objects crt1.o, crti.o and values-xa.o are being
linked-in twice...each time ld is invoked. Is there any way to stop
this?

Thanks,
Greg

2. How do I enable root login via telnet

3. Problem: ld (linker) giving multiply defined symbol fatal errors

4. Tripwire release

5. ld: fatal: symbol `_init' is multiply defined???

6. stuborn desktop

7. Problem with Apache/PHP on Solaris only : "symbol __muldi3: referenced symbol not found"

8. NFS Problems under 1.3.54

9. Apache+PHP+mod_perl configures ok, but Apache won't build

10. How do I check a .a file for multiply defined symbols?

11. Multiply defined symbols while linking with Workshop 6 ...

12. multiply defined symbols with -Bstatic, not with -Bdynamic

13. How do I check a .a file for multiply defined symbols?