From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10349 invoked by alias); 14 Jan 2002 19:30:35 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 10242 invoked from network); 14 Jan 2002 19:30:30 -0000 Received: from unknown (HELO mtiwmhc25.worldnet.att.net) (204.127.131.50) by sources.redhat.com with SMTP; 14 Jan 2002 19:30:30 -0000 Received: from att.net ([12.89.78.84]) by mtiwmhc25.worldnet.att.net (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020114193029.EWKJ28721.mtiwmhc25.worldnet.att.net@att.net> for ; Mon, 14 Jan 2002 19:30:29 +0000 Message-ID: <3C43311A.B168402C@att.net> Date: Mon, 14 Jan 2002 11:30:00 -0000 From: Frank Geck Organization: KeyWay Security X-Mailer: Mozilla 4.76 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: GNU GCC help list Subject: Problem compiling on Linux Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2002-01/txt/msg00140.txt.bz2 > I have a makefile and C/C++ code that compiled fine under Solaris and I > wanted to put it on linux but got the following error's using the gcc > compiler. Any thoughts? > > Thanks, > > Frank > > $ make -f Makefile_atd.linux > g++ -g -o -DLINUX /home/atd/output/atd_sign_envlp > /home/atd/src/add_recips.o /h > ome/atd/src/get_current_ip_str.o /home/atd/src/pkcs7_enc.o > /home/atd/src/save_da > ta.o /home/atd/src/sign_enveloped.o /home/atd/src/get_msg.o > /home/atd/src/pkcs7_ > error.o /home/atd/src/save_pid.o /home/atd/src/verify_callback.o > /home/atd/src/d > isplay_data.o /home/atd/src/pkcs7_dec.o /home/atd/src/ProcessMsg.o > /home/atd/src > /saveMsg.o /home/atd/src/sign_data.o /home/atd/src/verify_sign.o > /home/atd/src/a > td_sign_envlp.o /home/atd/src/retrieve_file.o /home/atd/src/save_file.o > /home/at > d/src/pkcs7_sign.o /home/atd/src/get_cn.o \ > -I/home/atd/src -I/home/openssl-0.9.6b/include \ > -L/home/openssl-0.9.6b -L/usr/lib -L/usr/X11R6/lib \ > -lpthread -lcrypto -lfl -ltcl -ltk -ldl -lX11 -lnsl -lssl > /home/atd/output/atd_sign_envlp: In function `_start': > /home/atd/output/atd_sign_envlp(.text+0x0): multiple definition of > `_start' > /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o(.text+0x0): > first define > d here > /home/atd/output/atd_sign_envlp: In function `get_cn(char *, int)': > /space/atd/src/get_cn.cpp:15: multiple definition of `_init' > /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crti.o(.init+0x0): > first define > d here > /home/atd/output/atd_sign_envlp: In function `get_cn(char *, int)': > /space/atd/src/get_cn.cpp:15: multiple definition of `_fini' > /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crti.o(.fini+0x0): > first define > d here > /home/atd/output/atd_sign_envlp: In function `get_cn(char *, int)': > /space/atd/src/get_cn.cpp:15: multiple definition of > `_GLOBAL_OFFSET_TABLE_' > /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crti.o(.got.plt+0x0): > first def > ined here