Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: Charles M Richmond <cmr@iisc.com>
Subject: Re: problem with makefile
Date: 1998/12/04	[thread overview]
Message-ID: <3667D7C8.2A9446D0@iisc.com> (raw)
In-Reply-To: 3663FF18.DE55884E@lottery.co.at


OSF1 V4.0D != "-DSOLARIS"

In Solaris the "-G" permits undefined symbols while creating a shared
object. I do not know what "-G" does under the OSF/1 'ld'. 

At the end of the day, it looks like you have the wrong makefile.


Manfred Gruber wrote:
> 
> Hi,
> I have a problem with compiling a program.
> I'm running OSF1 V4.0D and I want to use a Makefile that looks like
> that:
> 
> VVVVVVVVVVVVVVVV Makefile START VVVVVVVVVVVVVVVVVVVVVVVVVVVV
> 
> INCLUDEDIR=/usr/local/net-351/include
> 
> CC_CMD=cc -O -DNET_SSL -DSOLARIS -D_REENTRANT
> 
> LD_SHAREDCMD=ld -G
> 
> all:
> 
> JRUN_OBJS = extension.o interface.o jrun_proxy.o
> 
> INCLUDE_FLAGS=-I$(INCLUDEDIR) -I$(INCLUDEDIR)/base -I$(INCLUDEDIR)/frame
> 
> COMMON_DEFS=-DMCC_HTTPD -DXP_UNIX -DSPAPI20 -DNSAPI
> 
> all: libjrun_nsapi.so
> 
> libjrun_nsapi.so: $(JRUN_OBJS)
>         $(LD_SHAREDCMD) $(JRUN_OBJS) -o libjrun_nsapi.so
> $(EXTRA_LDDEFINES)
> 
> .c.o:
>         $(CC_CMD) $(COMMON_DEFS) $(INCLUDE_FLAGS) -c -o $@ $<
> 
> clean:
>         rm $(JRUN_OBJS) libjrun_nsapi.so $(EXTRA_CLEAN)
> 
> ^^^^^^^^^^^^^^^^^^ Makefile STOP ^^^^^^^^^^^^^^^^^^^^^^
> 
> After successfully compiling extension.c, interface.c and jrun_proxy.c
> there is an error when ld starts. It says:
> 
> ld -G extension.o interface.o jrun_proxy.o -o libjrun_nsapi.so
> ld:
> Error: Undefined:
> __lc_ctype
> sprintf
> sscanf
> atoi
> memcpy
> strlen
> strcpy
> strcmp
> __nsapi30_table
> WriteToLog
> Verbose
> bzero
> select
> connect
> recv
> send
> setsockopt
> socket
> htons
> htonl
> inet_addr
> printf
> _errno
> close
> realloc
> memset
> strcat
> *** Exit 1
> Stop.
> 
> Can anyone tell me witch library is missing or what is wrong with my
> Makefile?
> 
> Regards
> 
>         Manfred

-- 
***********************************************************************
*  Charles Richmond    Integrated International Systems Corporation   *
*  cmr@iisc.com        cmr@koibito.iisc.com  cmr@shore.net            *
*  UNIX Internals, I18N, L10N, X, Realtime Imaging, and  Custom S/W   *
*  One Longfellow Place Suite 3309 , Boston , Ma. USA 02114-2431      *
*  (617) 723 7695    (617) 367 3151        FAX (617) 723 6861         *
***********************************************************************



      reply	other threads:[~1998-12-04  5:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-12-01  5:00 problem with makefile Manfred Gruber
1998-12-04  5:00 ` Charles M Richmond [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox