Closed Bug 62857 Opened 25 years ago Closed 23 years ago

LDAP build for OS/2

Categories

(Directory Graveyard :: LDAP C SDK, defect, P3)

x86
OS/2
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jhpedemonte, Assigned: dmosedale)

References

Details

Attachments

(1 file, 6 obsolete files)

This bug is for file changes necessary to get LDAP building under OS/2.
Attached patch OS/2 patch for ldap files (obsolete) — Splinter Review
Reassigning to Michael Hein so he can review the proposed patch.
Assignee: mcs → mhein
Attached patch latest patch file for OS/2 (obsolete) — Splinter Review
Some ifdefs must be changed for EMX too, not only VACPP
These patches are for the 4.0 branch of the SDK, and are needed for --enable-ldap to work properly on OS/2. Taking so that I can land turn on --enable-ldap by default soon. Dmitry, do you have other EMX patches ready? Otherwise I'd like to check this in as is.
Assignee: mhein → dmose
Blocks: 70658
Status: NEW → ASSIGNED
Can you checkin your patches? Default EMX build can't be be broken until LDAP is optional. I'll patch it later or send me patched files (dunno how to apply diffs w/o CVS stuffs).
At least this can be changed now: XP_OS2_VACPP -> XP_OS2 ifeq ($(MOZ_OS2_TOOLS),VACPP) -> ifeq ($(OS_ARCH),OS2)
Attached patch updated patch (cleanup) (obsolete) — Splinter Review
I cleaned up the patch to work with latest code, but I have a few questions with some of the files: autoconf.mk.in: Should I explicitly set those values (BIN_SUFFIX and LINK) in the file like that, or should they be defined in configure.in and AC_SUBST'd into autoconf.mk? liblber/Makefile.in & libldap/Makefile.in: What do you think of my changes here (in regards to SRCS->CSRCS and the OS/2 "install::" target)? Are these correct? Should we not be taking advantage of what NSPR has already defined in its rules.mk?
Not long after 0.9, we'll be moving to the v5.0 version of the LDAP SDK, which comes with a new build system, so the current build system will be going away. So I'd suggest making as few changes as possible to this one, since we know it more-or-less works as is. With that in mind: * autoconf.mk.in: moving this stuff to configure.in seems like more effort than it's worth * Makefile.ins: in theory those changes may be the Right Thing, but since we know the existing rules (especially wrt to the SRCS/CSRCS/REALOBJS/OBJS stuff), I'd vote for not changing this stuff either.
One more patch for EMX: mozilla/directory/c-sdk/ldap/include/ldap.h +#ifdef XP_OS2 +#include <sys/select.h> +#endif +#ifdef XP_OS2_EMX +/* + * EMX-specific tweaks: + * o Use stricmp instead of strcmpi. + */ +#define strcmpi stricmp +#endif After that LDAP can be built. Need more time to test is it working.
Attached patch Full diffs including EMX patch (obsolete) — Splinter Review
Attached patch updated patch re: dan's comments (obsolete) — Splinter Review
Well, in accordance to dan's comments, I have put back the REALOBJS/OBJS rules and just hacked the Makefiles to work under OS/2. Let me know what you think of this. The above patch also includes dmitry's changes.
r=mkaply We'll keep a close eye on this when it goes in.
sr=cls
Patch checked in.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
VERIFIED
Status: RESOLVED → VERIFIED
Reopening; need to check in the ldapcsdk_branch_50 so that mozilla doesn't regress when we switch to that branch.
Status: VERIFIED → REOPENED
Resolution: FIXED → ---
I've just attached a forward port of the code changes to the ldapcsdk_branch_50. The build system changes will need to be redone, as the buildsystem has seen significant changes since the 4.0 SDK. mcs/mhein, can I get a review on this?
Attachment #20697 - Attachment is obsolete: true
Attachment #22902 - Attachment is obsolete: true
Attachment #28823 - Attachment is obsolete: true
Attachment #28904 - Attachment is obsolete: true
Attachment #28910 - Attachment is obsolete: true
Comment on attachment 71004 [details] [diff] [review] Forward-port of code changes to ldapcsdk_branch_50, v1. Bogus patch includes lots of irrelevant changes. New patch soon.
Attachment #71004 - Attachment is obsolete: true
OK, this is better. mcs/mhein: now I'm requesting a review for real. :-)
adding nsbeta1+ since needed for merge from the LDAP C SDK v4.0
Keywords: nsbeta1+
Looks okay (I don't think it will break any non-OS2 builds anyway). r=mcs
Fix checked in to ldapcsdk_branch_50.
Status: REOPENED → RESOLVED
Closed: 24 years ago23 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: