Operating System - HP-UX
1755766 Members
2938 Online
108838 Solutions
New Discussion юеВ

Too many command lines for `./bin/pindpurge'

 
rajeshmsr
Advisor

Too many command lines for `./bin/pindpurge'

While compiling one of our application using make, we are getting the message:

Too many command lines for `./bin/pindpurge'
+----> Building exe ./bin/pindpurge ...
/usr/ccs/bin/cc -I./include -D_REENTRANT -g -c -Aa -mt -z D_HPUX_SOURCE +DD64 -DHAVE_CONFIG_H -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_INCLUDE_AES_SOURCE -D_INCLUDE_POSIX_SOURCE -D_INCLUDE_XOPEN_SOURCE -o ./bin/pindpurge ./src/indpurge_main.o ./src/indpurge_about.o ./src/indpurge_env.o ./src/indpurge_options.o ./src/indpurge_log.o ./src/indpurge_init.o ./src/indpurge_shutdown.o ./src/indpurge_process.o ./src/indpurge_func.o -L../../../../shared/lib -L/logiciel/oracle/client_10204/lib -latk -lutil -lind -lweibull -lgmf -lgmfi -lgmr -lpp -lgsttv -ltctp -l6pc -llog -loratk -lclntsh -lc
(Bundled) cc: warning 922: "-g" is unsupported in the bundled compiler, ignored.
(Bundled) cc: warning 922: "-Aa" is unsupported in the bundled compiler, ignored.
(Bundled) cc: warning 1913: `D_HPUX_SOURCE' does not exist or cannot be read
+----> .................... OK

and the target binary is not created.

Note: We are migrating the app from SunOS 5.8 to HP-UX 11.31 and it was working fine on sun os.

Kindly suggest a solution/idea on the above issue.
7 REPLIES 7

Re: Too many command lines for `./bin/pindpurge'

>> (Bundled) cc:

You seem to be using the bundled C compiler... I seriously doubt you will be able to build a whole application with this - it's really only there to support compilation/linking of kernel modules when the kernel changes.

You should really have the full C/C++ developers bundle installed:

http://www.hp.com/go/ansic

I'm hoping this is a minor installation oversight on your part, as the compiler is not free - it's a chargeable piece of software.

Of course you could try and build with gcc which is free, but that may throw up a whole new set of issues:

Try:

http://www.hp.com/go/gcc

-or-

http://hpux.connect.org.uk/hppd/hpux/Gnu/gcc-4.2.3/

HTH

Duncan

I am an HPE Employee
Accept or Kudo
rajeshmsr
Advisor

Re: Too many command lines for `./bin/pindpurge'

Thanks for the reply.

When I tried with ansic also, am getting the same message and no binary is created:

Too many command lines for `./bin/pindpurge'
+----> Building exe ./bin/pindpurge ...
/opt/ansic/bin/cc -I./include -D_REENTRANT -g -c -Aa -mt -z D_HPUX_SOURCE +DD64 -DHAVE_CONFIG_H -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_INCLUDE_AES_SOURCE -D_INCLUDE_POSIX_SOURCE -D_INCLUDE_XOPEN_SOURCE -o ./bin/pindpurge ./src/indpurge_main.o ./src/indpurge_about.o ./src/indpurge_env.o ./src/indpurge_options.o ./src/indpurge_log.o ./src/indpurge_init.o ./src/indpurge_shutdown.o ./src/indpurge_process.o ./src/indpurge_func.o -L../../../../shared/lib -L/logiciel/oracle/client_10204/lib -latk -lutil -lind -lweibull -lgmf -lgmfi -lgmr -lpp -lgsttv -ltctp -l6pc -llog -loratk -lclntsh -lc
cc: warning 1913: `D_HPUX_SOURCE' does not exist or cannot be read
+----> .................... OK
Matti_Kurkela
Honored Contributor

Re: Too many command lines for `./bin/pindpurge'

> Too many command lines for `./bin/pindpurge'
> +----> Building exe ./bin/pindpurge ...

"Too many command lines" does not seem like a compiler error. Perhaps it is produced by the "make" utility?

The Makefile you attached seems to be just a small part of a rather complex system of Makefiles used by your project. Since you did not attach all the included Makefiles, it's not possible to analyze it any further.

> include ${DEF_RELATIVE_PATH}/Makefile.def

> include ../../Makefile.local.def

> include ${DEF_RELATIVE_PATH}/Makefile.target

Earlier, I can see DEF_RELATIVE_PATH defined:

> # Profondeur du fichier Makefile
> # par rapport au fichier global Makefile.def
> DEF_RELATIVE_PATH=../../../..

There might be an error somewhere in your system of Makefiles (causing some build rule to get stuck in a loop, generating extra command lines), or the number of command lines required to create ./bin/pindpurge might be too big for the HP-UX make utility.

MK
MK
rajeshmsr
Advisor

Re: Too many command lines for `./bin/pindpurge'

Thanks for the analysis.

Yes, I too guessed that to be an issue of make. But couldn't see the exact issue.

Attaching the further makefiles used in the system.
Steven Schweda
Honored Contributor

Re: Too many command lines for `./bin/pindpurge'

> (Bundled) cc: warning 1913: `D_HPUX_SOURCE' does not exist or cannot be read

D_HPUX_SOURCE
or:
-D_HPUX_SOURCE
?


> Too many command lines for `./bin/pindpurge'

> [...] Perhaps it is produced by the "make"
> utility?

A quick Google search -- You should try it
sometime -- for:
"Too many command lines for"
led pretty directly to a plausible
explanation (for a "make"-related program):

https://www-304.ibm.com/support/docview.wss?uid=swg21264244

Cause

This is caused by a makefile containing two
definitions for the same target name which
are identical in their dependency and build
scripts.


> +----> Building exe ./bin/pindpurge ...

You actually build straight into "/bin"?
Yow.
Dennis Handly
Acclaimed Contributor

Re: Too many command lines for `./bin/pindpurge'

>/usr/ccs/bin/cc -c D_HPUX_SOURCE +DD64 -D_INCLUDE_AES_SOURCE -D_INCLUDE_POSIX_SOURCE -D_INCLUDE_XOPEN_SOURCE -lc

This is the bundled C compiler.
You should NOT be using any of the -D_INCLUDE_* defines. Use the ones in stdsyms(5) instead.
Also no need to have -lc since it is supplied by the driver and will give a warning.

>(Bundled) cc: warning 1913: `D_HPUX_SOURCE' does not exist or cannot be read

As mentioned, you need to fix this. This is trying to tell you that you may have link errors.

>no binary is created:

That's because you have -c, to compile only.

>Steven: You actually build straight into "/bin"?

I see ./bin/.
Steven Schweda
Honored Contributor

Re: Too many command lines for `./bin/pindpurge'

> I see ./bin/.

So do I, today. Old age is Hell. Sigh.