[csw-users] General build question

Ben Taylor Ben.Taylor at Sun.COM
Wed Jul 25 20:28:00 CEST 2007


Brian Gupta wrote:

> It isn't /bin/sh that isn't being found. It is something that sh is 
> calling. (Try trussing it to see where it is erroring out. (There 
> should be a file open error)

more likely it's a ksh or bash'ism that is causing the problem.

You can see the error where it says "for i in ;" so it's apparent that a 
variable expansion
didn't happen.

You can try replacing the #!/bin/sh with #!/bin/bash and see if it works 
better.

Then, you should probably fix the bash/ksh to be more portable to true 
"/bin/sh" and
propogate the changes upstream

Ben

> .
>
> -Brian
>
> On 7/25/07, *Tim Longo* <qy1ggy802 at sneakemail.com 
> <mailto:qy1ggy802 at sneakemail.com>> wrote:
>
>
>     I'm trying to build an application (OMNet - INET framework) under
>     Solaris. It seems most people build this under linux, so I've had to
>     tweak a few things to get the build to work.
>
>     Now, I've hit a spot where the "make" fails because it can't find
>     /bin/sh. Just wondering if anyone has any general suggestions for this
>     type of problem. So far, I can't figure out where this reference is..
>
>     Sample output below:
>
>
>
>     $ make
>     >>>> /bin/sh: !: not found
>     >>>> for i in Applications Base Mobility Network NetworkInterfaces
>     Nodes
>     >>>> Transport Util World bin; do (cd $i && make generateheaders) ||
>     exit 1; done
>     >>>> make[1]: Entering directory
>     `/opt/INET-20061020-OverSim-2/Applications'
>     >>>> for i in Ethernet Generic PingApp TCPApp UDPApp; do (cd $i &&
>     make
>     >>>> generateheaders) || exit 1; done
>     >>>> make[2]: Entering directory
>     >>>> `/opt/INET-20061020-OverSim-2/Applications/Ethernet'
>     >>>> opp_msgc -I. -I/opt/INET-20061020-OverSim-2/Transport/Contract
>     >>>> -I/opt/INET-20061020-OverSim-2/Network/Contract
>     >>>> -I/opt/INET-20061020-OverSim-2/NetworkInterfaces/Contract
>     >>>> -I/opt/INET-20061020-OverSim-2/Base
>     -I/opt/INET-20061020-OverSim-2/Util
>     >>>> -I../../NetworkInterfaces/Ethernet EtherApp.msg
>     >>>> for i in ; do (cd $i && make generateheaders) || exit 1; done
>     >>>> /bin/sh: syntax error at line 1: `;' unexpected
>     >>>> make[2]: *** [generateheaders] Error 2
>     >>>> make[2]: Leaving directory
>     >>>> `/opt/INET-20061020-OverSim-2/Applications/Ethernet'
>     >>>> make[1]: *** [generateheaders] Error 1
>     >>>> make[1]: Leaving directory
>     `/opt/INET-20061020-OverSim-2/Applications'
>     >>>> make: *** [generateheaders] Error 1
>
>     Thanks!
>     _______________________________________________
>     users mailing list
>     users at lists.blastwave.org <mailto:users at lists.blastwave.org>
>     https://lists.blastwave.org/mailman/listinfo/users
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>users mailing list
>users at lists.blastwave.org
>https://lists.blastwave.org/mailman/listinfo/users
>  
>




More information about the users mailing list