- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- aCC compile
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2007 10:57 PM
01-29-2007 10:57 PM
i'm try to compile my red hat directory server plugin on hp-ux 11.11. but i always get the following error messages! what's wrong?
./Makefile.martin: INCLUDE_FLAGS: command not found
./Makefile.martin: -D_HPUX_SOURCE: command not found
./Makefile.martin: EXTRA_LIBS: command not found
./Makefile.martin: LDFLAGS: command not found
./Makefile.martin: OBJS: command not found
./Makefile.martin: all:: command not found
./Makefile.martin: OBJS: command not found
./Makefile.martin: a_testplugin.sl:: command not found
./Makefile.martin: LD: command not found
./Makefile.martin: LDFLAGS: command not found
./Makefile.martin: OBJS: command not found
./Makefile.martin: -o: command not found
./Makefile.martin: .c.o:: command not found
./Makefile.martin: line 19: syntax error near unexpected token `$<'
./Makefile.martin: line 19: ` $(CC) $(CFLAGS) -c $<'
help me please, thanks!!!
Martin
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2007 11:36 PM
01-29-2007 11:36 PM
Re: aCC compile
Problem with setup/script.
Please list the commands you use, I assume something like:
make a.c
Please also list you makefile (Makefile.martin)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2007 12:11 AM
01-30-2007 12:11 AM
Re: aCC compile
cc -D_HPUX_SOURCE -Aa +z +DA2.0W -Ae -c a_testplugin.c
(Bundled) cc: -, line A: warning 480.
(Bundled) cc: +, line z: warning 480.
(Bundled) cc: -, line A: warning 480.
cpp: "a_testplugin.c", line 0: warning 2021:
=====================================
Makefile:
CFLAGS=$(INCLUDE_FLAGS) -D_HPUX_SOURCE -Aa +z +DA2.0W -Ae
LDFLAGS = +k -b +s $(EXTRA_LIBS)
OBJS = a_testplugin.o
all: a_testplugin.sl
a_testplugin.sl: $(OBJS)
$(LD) $(LDFLAGS) -o $@ $(OBJS)
.c.o:
$(CC) $(CFLAGS) -c $<
clean:
-rm -f $(OBJS) a_testplugin.sl
===========================================
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2007 12:19 AM
01-30-2007 12:19 AM
Re: aCC compile
(I see nothing that indicates the aCC compiler is at fault. And your other message said "my c plugin".)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2007 12:25 AM
01-30-2007 12:25 AM
Re: aCC compile
generally i use aCC to compile the plugin or gmake but these commands are not found on the system. i'dont know why.
so i use make to compile ..
thanks for your answer!
Martin V.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2007 12:41 AM
01-30-2007 12:41 AM
Re: aCC compile
I'm not sure why your message catalog is messed up. You should be getting:
(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.
You need to purchase the HP C compiler or download a gcc compiler.
If you have the aC++ compiler, you can use -Ae to switch to C mode. And you'll have to change your CC make macro to: CC=aCC -Ae
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2007 02:05 AM
01-30-2007 02:05 AM
Re: aCC compile
can we assume you got your code from:
http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=NSDirSvr7
You incorrectly stated you were running aCC, which was part of the confusion. May I suggest you sort out your bundled cc first, as a failure there may comprimise you being able to build a new kernel.
Then review your make file with a view to actually use aCC, if you have it installed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2007 02:17 AM
01-30-2007 02:17 AM
Re: aCC compile
why?
thx
Martin V.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2007 02:37 AM
01-30-2007 02:37 AM
Re: aCC compile
If not, then examine your makefile very carefully. Make is one of the few UNIX utilities where
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2007 02:40 AM
01-30-2007 02:40 AM
Re: aCC compile
re-reading your initial description and then your make -f post I am a bit confused:
make -f Makefile.martin
cc -D_HPUX_SOURCE -Aa +z +DA2.0W -Ae -c a_testplugin.c
(Bundled) cc: -, line A: warning 480.
(Bundled) cc: +, line z: warning 480.
(Bundled) cc: -, line A: warning 480.
cpp: "a_testplugin.c", line 0: warning 2021:
But your initial description had completely different errors.
The "command not found" indicates that the instruction INCLUDE_FLAGS was not understood/translated.
Are you sure you used the same command for both set of errors ? All the command not found errors are down to the Makefile.martin not being interpreted by the make command.
The second time round they seem to be recognized and the make fails do to the cc comiler being used.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2007 12:51 PM
01-30-2007 12:51 PM
Re: aCC compile
Why aren't you using gmake -f or make -f?
As I stated above, you seem to be executing your makefile, as if it was a script. (This will produce those "command not found" errors.) Make sure your Makefile.martin is NOT executable.
If you need more help, tell us the exact command you are doing and the output. A Peter says, you seem to have two distinct commands and outputs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2007 06:27 PM
01-31-2007 06:27 PM
Re: aCC compile
1. gmake -f Makefile.martin
=> gmake: command not found
That happen with gmake!!
2. root@audit1:examples > make -f Makefile.martin
cc -D_HPUX_SOURCE -Aa +z +DA2.0W -Ae -c a_testplugin.c
(Bundled) cc: -, line A: warning 480.
(Bundled) cc: +, line z: warning 480.
(Bundled) cc: -, line A: warning 480.
cpp: "a_testplugin.c", line 0: warning 2021:
That happen with make!!
thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2007 07:10 PM
01-31-2007 07:10 PM
Re: aCC compile
3. cc -Aa -c +z a_test.c
ld -b -o test.sl a_test.o
doesn't work!
root@audit1:examples > cc -Aa -c +z a_testplugin.c
(Bundled) cc: -, line A: warning 480.
(Bundled) cc: +, line z: warning 480.
cpp: "a_testplugin.c", line 0: warning 2021:
(Bundled) cc: "/var/opt/netscape/server7/plugins/slapd/slapi/include/prtypes.h", line 271: warning 5.
(Bundled) cc: "/var/opt/netscape/server7/plugins/slapd/slapi/include/prtypes.h", line 271: error 1000.
(Bundled) cc: "/var/opt/netscape/server7/plugins/slapd/slapi/include/lber.h", line 124: error 1705.
(Bundled) cc: "/var/opt/netscape/server7/plugins/slapd/slapi/include/lber.h", line 181: error 1000.
...........
thx for your help ....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2007 07:14 PM
01-31-2007 07:14 PM
Solutioncc -D_HPUX_SOURCE -Aa +z +DA2.0W -Ae -c a_testplugin.c
(Bundled) cc: -, line A: warning 480.
(Bundled) cc: +, line z: warning 480.
(Bundled) cc: -, line A: warning 480.
cpp: "a_testplugin.c", line 0: warning 2021:
>That happen with make!!
Not precisely. This is exactly the same thing that would happen to gmake if you had it.
Basically you are using the bundled C compiler which is not supported for development. I explained warning 480. And 2021 is:
2021 warning %1$d: Possibly incorrect message catalog.
These missing messages are probably due to an incorrect setting of NLSPATH?
So unless you have any other errors, everything may have built fine.
If you have aC++ installed, you may be able to use that instead of C:
make -f Makefile.martin CC="aCC -Ae"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2007 07:41 PM
01-31-2007 07:41 PM
Re: aCC compile
ld -b -o test.sl a_test.o
>doesn't work!
It wouldn't because the required +z is ignored. If you added +DD64, it would work.
$ dumpmsg /usr/lib/nls/msg/C/cc.cat | fgrep -e 1000 -e 1705
1000 %2$s, line %3$s: error %1$s: Unexpected symbol: "%4$s".
1705 %2$s, line %3$s: error %1$s: Function prototypes are an ANSI feature.
So you'll need to purchase HP C, or aC++ or use gcc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2007 07:50 PM
01-31-2007 07:50 PM