Compiling problem

Compiling problem

Post by Paul W. Horale » Tue, 02 Jun 1998 04:00:00



Hello,

I am trying to compile a program in Solaris 2.6 using cc that is not
currently working.  This is a plugin for Netscapes directory server
using some API's from OpenText.  For some reason it has to be compiled
using Sun cc 4.2.  

Here is the Makefile I grabbed off of the Netscape site:  
# SOLARIS Makefile for Directory Server plug-in examples
#

CC = cc
LD = ld

INCLUDE_FLAGS =
CFLAGS = $(INCLUDE_FLAGS) -D_REENTRANT -KPIC
LDFLAGS = -G -L/apps/livelink/lapi/lib -llapi

OBJS = passmod.o

all: passmod.so

passmod.so: $(OBJS)

.c.o:
        $(CC) $(CFLAGS) -c $<

clean:
        -rm -f $(OBJS) passmod.so

Here are the errors I am getting:
"./lber.h", line 127: warning: const is a keyword in ANSI C
"./lber.h", line 127: syntax error before or at: const
"./lber.h", line 127: warning: undefined or missing type for: const
"./lber.h", line 127: warning: undefined or missing type for: int
"./llapi.h", line 27: invalid compiler control line in ".i" file
"./llapi.h", line 28: invalid compiler control line in ".i" file
"./llapi.h", line 41: invalid token: ##
"./llapi.h", line 41: undefined or not a type: __
"./llapi.h", line 41: cannot recover from previous errors

These are all in header files I did not create.  They should be fine.
This did compile with gcc and fPIC instead of KPIC, but the OpenText
API's won't work unless compiled with cc.  Does anyone have any
suggestion?

Thanks,
Paul Horalek

 
 
 

1. Qt compile problems and compiling in general

I am having problems compiling Qt.  The following is the output that
make gives me:

Matthew:/usr/local/qt# make
cd src/moc; make
make[1]: Entering directory `/usr/local/qt/src/moc'
gcc -c -O2 -fno-strength-reduce -Wall -W -I/usr/X11R6/include
-I/usr/local/qt/include ../tools/qbuffer.cpp -o qbuffer.o
In file included from /usr/include/stdlib.h:42,
                 from ../tools/qbuffer.cpp:21:
/usr/include/errno.h:27: linux/errno.h: No such file or directory
make[1]: *** [qbuffer.o] Error 1
make[1]: Leaving directory `/usr/local/qt/src/moc'
make: *** [moc] Error 2

What do all these errors mean? Are they listed somewhere?  What can I do
to compile programs without having all these errors? Help!  Every time I
try to compile some program it returns an error--usually 1 and 2.  Any
program--not just specific programs.  This is really frustrating.
--
Matthew Vanecek
http://www.mjv.com for professional Web Site hosting.
http://lonestar.texas.net/~vanec for my personal page.

For 93 million miles, there is nothing between the sun and my shadow
except me. I'm always getting in the way of something...

2. can any body noticed snmpset is not working in ucd-snmp-4.1.1 software..

3. AMD K6-2Chips compile compile problems...

4. WABI 2 e-mail list?

5. ssh install problem (Newbie compile problem?)

6. Changing IP address on Linux

7. Network problem, kernel compile problem

8. Can ping, can tn, CAN'T RSH ?

9. gcc compiling problem: configure: error: installation or configuration problem: C compiler cannot create executables.

10. aix compile problem with openssh

11. DHCP compile problem

12. ifmail compiling problem

13. Printing / Compiling problems with Linux 1.1.50