Operating System - Linux
1751840 Members
5358 Online
108782 Solutions
New Discussion юеВ

Re: Building Mozilla LDAP SDK

 
Steve_The_King
Frequent Advisor

Building Mozilla LDAP SDK

I am trying to build mozilla LDAP SDK on hp-ux 11.11. I am getting the following errors:
gmake[2]: Entering directory `/scratch/kavita/LDAP_SDK5_Source/mozilla/security/coreconf/nsinstall'
cc -o HP-UXB.11.11_OPT.OBJ/nsinstall.o -c -O -DHPUX10 -D_POSIX_C_SOURCE=199506L -Ae +Z -DHPUX -Dhppa -D_HPUX_SOURCE -DHPUX11 -DXP_UNIX -UDEBUG -DNDEBUG -I../../../dist/HP-UXB.11.11_OPT.OBJ/include -I../../../dist/public/coreconf -I../../../dist/private/coreconf nsinstall.c
(Bundled) cc: warning 480: The -O option is available only with the C/ANSI C product; ignored.
(Bundled) cc: warning 480: The -A option is available only with the C/ANSI C product; ignored.
(Bundled) cc: warning 480: The +Z option is available only with the C/ANSI C product; ignored.
(Bundled) cc: "pathsub.h", line 60: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "pathsub.h", line 61: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "pathsub.h", line 62: error 1000: Unexpected symbol: "ino".
(Bundled) cc: "pathsub.h", line 62: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "pathsub.h", line 63: error 1000: Unexpected symbol: "size".
(Bundled) cc: "pathsub.h", line 63: error 1506: Parameters allowed in function definition only.
(Bundled) cc: "pathsub.h", line 64: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "pathsub.h", line 65: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "pathsub.h", line 66: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "pathsub.h", line 69: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "pathsub.h", line 72: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "pathsub.h", line 75: warning 5: "const" will become a keyword.
(Bundled) cc: "pathsub.h", line 75: error 1000: Unexpected symbol: "char".
(Bundled) cc: error 2017: Cannot recover from earlier errors, terminating.
gmake[2]: *** [HP-UXB.11.11_OPT.OBJ/nsinstall.o] Error 1


Can anybody help ?
25 REPLIES 25
James R. Ferguson
Acclaimed Contributor

Re: Building Mozilla LDAP SDK

Hi:

You need the Ansi C compiler. You have only the bundled C one which is virtually useless. You can license a version here:

http://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B9007AA

An evaluation copy is also available here:

http://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B9007AAEVAL

Regards!

...JRF...
Steve_The_King
Frequent Advisor

Re: Building Mozilla LDAP SDK

I tried accessing the link provided for evaluation copy of cc compiler but the instaaltion instructions say that we need to have a 26-digit hexadecimal license key. I did not find this key anywhere. Please help.
James R. Ferguson
Acclaimed Contributor

Re: Building Mozilla LDAP SDK

Steve_The_King
Frequent Advisor

Re: Building Mozilla LDAP SDK

I encounterd the following problem while building mozilla ldap sdk. Can someone please let me know how to go about it ?

cc: "/scratch//LDAP_SDK5_Source/mozilla/nsprpub/pr/include/prlock.h", line 80: warning 870: __declspec() ignored if -Bhidden/-Bhidden_def not used.
cc: "/scratch//LDAP_SDK5_Source/mozilla/nsprpub/pr/include/prlock.h", line 91: error 1000: Unexpected symbol: "export".
cc: "/scratch//LDAP_SDK5_Source/mozilla/nsprpub/pr/include/prlock.h", line 91: warning 870: __declspec() ignored if -Bhidden/-Bhidden_def not used.
cc: "/scratch//LDAP_SDK5_Source/mozilla/nsprpub/pr/include/prlock.h", line 102: error 1000: Unexpected symbol: "export".
cc: "/scratch//LDAP_SDK5_Source/mozilla/nsprpub/pr/include/prlock.h", line 102: warning 870: __declspec() ignored if -Bhidden/-Bhidden_def not used.
Dennis Handly
Acclaimed Contributor

Re: Building Mozilla LDAP SDK

>I encountered the following problem while building mozilla ldap sdk.
cc: ".../include/prlock.h", line 91: error 1000: Unexpected symbol: "export".

You need to provide what was on line 91. There also may be evil macros that change what you see in your .h. So you need to compile with -E and save stdout. Then see if you can find that same line and see where export comes from.

If it still isn't obvious, you need a bigger gun:
cc ... -E -Wp,-C,-G
Then save stdout and look for export.
Steve_The_King
Frequent Advisor

Re: Building Mozilla LDAP SDK

Line 91 conatins
NSPR_API(void) PR_DestroyLock(PRLock *lock);

Also I am getting the same problem for other files.For eg
/scratch/LDAP_SDK5_Source/mozilla/nsprpub/pr/include/pratom.h
line 57: error 1000: Unexpected symbol: "export"

where line 57 is :-

NSPR_API(PRInt32) PR_AtomicIncrement(PRInt32 *val);



The same error continues for many other files.
Dennis Handly
Acclaimed Contributor

Re: Building Mozilla LDAP SDK

>Line 91 contains:
NSPR_API(void) PR_DestroyLock(PRLock *lock);

Then there must be evil macros on that line. As I said:
If it still isn't obvious, you need a bigger gun: cc ... -E -Wp,-C,-G
Then save stdout and look for export.
Steve_The_King
Frequent Advisor

Re: Building Mozilla LDAP SDK

Following is the stdout with -E option and I can see export keyword here.

I am sorry but I din't still din't understand how to solve it. :-(


# 45 "/scratch/LDAP_SDK5_Source/mozilla/nsprpub/pr/include/pratom.h"


# 57
extern __declspec(export) PRInt32 PR_AtomicIncrement(PRInt32 *val);
# 68
extern __declspec(export) PRInt32 PR_AtomicDecrement(PRInt32 *val);
# 80
extern __declspec(export) PRInt32 PR_AtomicSet(PRInt32 *val, PRInt32 newval);
# 92
extern __declspec(export) PRInt32 PR_AtomicAdd(PRInt32 *ptr, PRInt32 val);
Dennis Handly
Acclaimed Contributor

Re: Building Mozilla LDAP SDK

As I said:
If it still isn't obvious, you need a bigger gun: cc ... -E -Wp,-C,-G
Then save stdout and look for export.

With -G, cpp enables an obsolete static analysis for macros. By looking at that line you should see the macro and the macro expansion. Probably NSPR_API.

Your original message had prlock.h but this one has pratom.h?