This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Problem creating shared object with gcc on AIX 4.3.3


Hi,

We have a problem regarding shared library using gcc on AIX 4.3.3.

The command used to create shared objects using gcc is "gcc -fPIC
-shared". If we use gcc on AIX with the same command we get the
following:-

$ make -f makefile
gcc -fPIC -I../include -shared -DXP_UNIX -o sample.so sample.c
cc1: warning: -fPIC ignored for AIX (all code is position independent)
ld: 0711-317 ERROR: Undefined symbol: .GetFirstRecipient
ld: 0711-317 ERROR: Undefined symbol: .GetRecipientAddress
ld: 0711-317 ERROR: Undefined symbol: .GetControlData
ld: 0711-317 ERROR: Undefined symbol: .FreeControlData
ld: 0711-317 ERROR: Undefined symbol: .AddRecipient
ld: 0711-317 ERROR: Undefined symbol: .GetMessageFile
ld: 0711-317 ERROR: Undefined symbol: .GetPostOfficePath
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
collect2: ld returned 8 exit status
make: *** [sample.so] Error 1

The copy of makefile is attached herewith.

Request assistance to resolve this problem on gcc with AIX. Thanks in
advance.
Regards,

Suresh


# NETSCAPE COMMUNICATIONS CORPORATION
#
# Copyright (c) 1998 Netscape Communications Corporation.
# All Rights Reserved.
#
# Use of this Source Code is subject to the terms of the applicable
# license agreement from Netscape Communications Corporation.
#
# The copyright notice(s) in this Source Code does not indicate
# actual or intended publication of this Source Code.
#
# Sample Makefile for Netscape Messaging Server Plugin

# Name of the plugin to build
TARGET=sample

# Use one of the following
SHARED_SUFFIX=so

# Use one of the following
CC=gcc -fPIC -I../include -shared
#CC=cc -KPIC -I../include -G

# Use one of the following
FLAGS = -DXP_UNIX
#FLAGS = -DXP_WIN32

# Use zero or more of the following
#FLAGS += -D_DEBUG

all: $(TARGET).$(SHARED_SUFFIX)

$(TARGET).$(SHARED_SUFFIX): $(TARGET).c ../include/msg4plugins.h
        $(CC) $(FLAGS) -o $(TARGET).$(SHARED_SUFFIX) $(TARGET).c
sample.o

clean:
        rm -f $(TARGET).$(SHARED_SUFFIX)
begin:vcard 
n:;
tel;fax:+9714 2012305
tel;work:+9714 2012353
x-mozilla-html:FALSE
org:National Bank of Dubai;Information Systems & Technology
version:2.1
email;internet:sureshs@nbd.co.ae
title:Project Leader
adr;quoted-printable:;;Baniyas Road,=0D=0AP.O. Box 777,;;Dubai;;United Arab Emirates
fn:Suresh P.S.
end:vcard

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]