[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Help: Porting RPM on LynxOS



Hi,

I need to port the rpm to the Lynx OS 3.1.0, but have problem.
Can someone help?  

Here are what I have done:
1. run ./configure  
   looks very smoothly

2. run "make"
  
  Got an error:
   ....
   popt.c(733) : error: `FLT_MAX' undeclared (first use in this function)
popt.c(733): error: (Each undeclared identifier is reported only once
popt.c(733): error: for each function it appears in.)
popt.c(735): error: `FLT_MIN' undeclared (first use in this function)
make[4]: *** [popt.lo] Error 1

  Then added "#include <float.h>" in popt.c. It fixed the problem.

2.1 Run "make" again
  
   Got an error:

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../build -I../lib -I../popt -I../misc -I../intl -I/usr/local/include -g -O2 -D_GNU_SOURCE -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -c rpmrpc.c -o rpmrpc.o
In file included from ../system.h:40,
                 from rpmrpc.c:1:
/usr/lib/gcc-lib/i386-coff-lynxos/2.9-gnupro-98r2/../../../../include/sys/time.h
:21: warning: #warning Using <time.h> instead of <sys/time.h>
In file included from rpmrpc.c:1:
../system.h:292: warning: `S_IFSOCK' redefined
/usr/lib/gcc-lib/i386-coff-lynxos/2.9-gnupro-98r2/../../../../include/sys/stat.h
:57: warning: this is the location of the previous definition
./system.h:296: warning: `S_ISLNK' redefined
/usr/lib/gcc-lib/i386-coff-lynxos/2.9-gnupro-98r2/../../../../include/sys/stat.h
:91: warning: this is the location of the previous definition
../system.h:300: warning: `S_ISSOCK' redefined
/usr/lib/gcc-lib/i386-coff-lynxos/2.9-gnupro-98r2/../../../../include/sys/stat.h
:92: warning: this is the location of the previous definition
../system.h(385) error: #error Neither mntent.h, mnttab.h, or mntctl() exists. I
 cannot build on this system.

    This time I commented out the the following line from sysem.h file:
 #error Neither mntent.h, mnttab.h, or mntctl() exists.

    The problem seemed go away...

2.2.  Run "make" again

   Got another error:
../intl -I/usr/local/include -g -O2 -D_GNU_SOURCE -Wall -Wpointer-arith -Wstrict
-prototypes -Wmissing-prototypes -Wno-char-subscripts -c rpmio.c -o rpmio.o
In file included from ../system.h:40,
......
rpmio.c(1033): error: `SOCK_STREAM' undeclared (first use in this function)
rpmio.c: In function `ftpAbort':
rpmio.c(1240): warning: implicit declaration of function `send'
rpmio.c(1240): error: `MSG_OOB' undeclared (first use in this function)
rpmio.c(1261): warning: implicit declaration of function `shutdown'
make[2]: *** [rpmio.lo] Error 1
 

	Added "#include <socket.h>" in the rpmio.c
	
	It fixedd the problem.

2.3 Run "make" again
	......
	gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../build -I../lib -I../popt -I../misc -I
../intl -I/usr/local/include -g -O2 -D_GNU_SOURCE -Wall -Wpointer-arith -Wstrict
-prototypes -Wmissing-prototypes -Wno-char-subscripts -c macro.c -o macro.o
In file included from ../system.h:40,
                 from macro.c:1:
/usr/lib/gcc-lib/i386-coff-lynxos/2.9-gnupro-98r2/../../../../include/sys/time.h
:21: warning: #warning Using <time.h> instead of <sys/time.h>
In file included from macro.c:1:
../system.h:292: warning: `S_IFSOCK' redefined
/usr/lib/gcc-lib/i386-coff-lynxos/2.9-gnupro-98r2/../../../../include/sys/stat.h
:57: warning: this is the location of the previous definition
../system.h:296: warning: `S_ISLNK' redefined
/usr/lib/gcc-lib/i386-coff-lynxos/2.9-gnupro-98r2/../../../../include/sys/stat.h
:91: warning: this is the location of the previous definition
../system.h:300: warning: `S_ISSOCK' redefined
/usr/lib/gcc-lib/i386-coff-lynxos/2.9-gnupro-98r2/../../../../include/sys/stat.h
:92: warning: this is the location of the previous definition
macro.c: In function `grabArgs':
macro.c(706): error: `optarg' undeclared (first use in this function)
macro.c(706): error: (Each undeclared identifier is reported only once
macro.c(706): error: for each function it appears in.)
macro.c(719): error: `optind' undeclared (first use in this function)
make[2]: *** [macro.lo] Error 1

 
Now I don't know what the next is.   Could someone give me a clue to solve
the problem?

thanks,
Donnie
dcherng@axiowave.com





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []