[Date Prev][Date Next] [Chronological] [Thread] [Top]

Netscape Directory SDK for C



Hi all,

I am trying to compile the source code for the
Netscape Directory SDK for C in Redhat 6.2.  

I have the following error:
gcc -o Linux2.2.14-5.0_x86_DBG.OBJ/os-ip.o -c
-DXP_UNIX -g -ansi -Wall -pipe -fPIC -DLINUX -Dlinux
-mno-486 -Di386 -D_POSIX_SOURCE -D_BSD_SOURCE
-DNEED_ENDIAN_H -DNEED_GETOPT_H -DNEED_IOCTL_H
-DUSE_NODL_TABS -DHAVE_SIGNED_CHAR -DNEED_SYS_TIME_H
-DHAVE_SYS_BITYPES_H -DNEED_UINT_T -DHAVE_SNPRINTF
-DNEED_TIME_R -DMITSHM -D_XOPEN_SOURCE -DSW_THREADS
-DHAVE_STRERROR  -DDEBUG -UNDEBUG -DDEBUG_root
-DTRACING -DNETSCAPE -DOSTYPE=\"Linux2.2.14-5\"
-DMOZILLA_CLIENT -DMOZ_COMMUNICATOR_IIDS
-DCookieManagement -DENDER -DMOZ_ENDER_MIME -DEDITOR
-DEDITOR_UI -DLAYERS -DUNIX_LDAP -DOJI -DJS_THREADSAFE
-DUNIX_ASYNC_DNS -DDEVELOPER_DEBUG
-DMOZ_USER_DIR=\".netscape\" -DUSE_WAITPID
-DNEEDPROTOS -DLDAP_DEBUG        -DLDAP_REFERRALS    
-DLDAP_LDBM -DLDAP_SHELL -DLDAP_PASSWD -DLDBM_USE_NDBM
  -DLDAP_SSLIO_HOOKS
-DFILTERFILE="\"../../../../../dist/Linux2.2.14-5.0_x86_DBG.OBJ/etc/ldapfilter.conf\""
-DTEMPLATEFILE="\"../../../../../dist/Linux2.2.14-5.0_x86_DBG.OBJ/etc/ldaptemplates.conf\""
-DNET_SSL -UMOZILLA_CLIENT
-I../../../../../dist/public/nspr
-I../../../../../dist/Linux2.2.14-5.0_x86_DBG.OBJ/include
-I../../../../../dist/include -I../../../../../include
-I/usr/X11R6/include -I/usr/X11R6/include
-I/usr/include/g++ -I../../include    os-ip.c
os-ip.c: In function `nsldapi_connect_to_host':
os-ip.c:109: warning: too many arguments for format
os-ip.c:123: warning: implicit declaration of function
`inet_addr'
os-ip.c:126: warning: passing arg 5 of
`gethostbyname_r' from incompatible pointer type
os-ip.c:126: too few arguments to function
`gethostbyname_r'
os-ip.c:126: warning: assignment makes pointer from
integer without a cast
os-ip.c:300: warning: implicit declaration of function
`inet_ntoa'
os-ip.c:323: warning: format argument is not a pointer
(arg 4)
os-ip.c:323: warning: too many arguments for format
os-ip.c: In function `nsldapi_do_ldap_select':
os-ip.c:556: warning: too many arguments for format
gmake[4]: *** [Linux2.2.14-5.0_x86_DBG.OBJ/os-ip.o]
Error 1
gmake[4]: Leaving directory
`/home/lingjia/ldapsdk/mozilla/directory/c-sdk/ldap/libraries/libldap'
gmake[3]: *** [install] Error 2
gmake[3]: Leaving directory
`/home/lingjia/ldapsdk/mozilla/directory/c-sdk/ldap/libraries'
gmake[2]: *** [install] Error 2
gmake[2]: Leaving directory
`/home/lingjia/ldapsdk/mozilla/directory/c-sdk/ldap'
gmake[1]: *** [libs] Error 2
gmake[1]: Leaving directory
`/home/lingjia/ldapsdk/mozilla/directory'
gmake: *** [build] Error 2

The version I tired is 12/98.  When I changed to the
5/98 version, the build is successful.  There is no
documentation on what are the difference between this
2 version and I have no clue on why the error occur,
the file os-ip is exactly the same in the 2 version.

Could anybody please help me?


Thanks!



Lingjia

__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail ? Free email you can access from anywhere!
http://mail.yahoo.com/