- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- xmkmf inserting extra space in Makefile?
Operating System - HP-UX
1753618
Members
5935
Online
108797
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
03-19-2001 05:20 PM
03-19-2001 05:20 PM
xmkmf inserting extra space in Makefile?
Hello,
Long time listener, first time caller, etc. I have a problem with xmkmf/imake that I've spent all day trying to figure out. This is on a 9000/780 system running HP-UX 10.20, btw. My setup is like this:
The Imakefile contains this:
#ifdef sunos
AllTarget ( $(HDRS)
libsnmp_db.SharedExtension
libsnmp.SharedExtension
libsnmp.a
)
#else
AllTarget ( $(HDRS)
libsnmp_db.SharedExtension
libsnmp.SharedExtension
libsnmp.a
libsnmp_db.a
)
#endif
Which, when run through xmkmf (just plain, no args) produces a Makefile with corresponding lines like this:
all:: $(HDRS)
libsnmp_db. sl
libsnmp. sl
libsnmp.a
libsnmp_db.a
libsnmp_db. sl :
(Note the extra spaces before the .sl extensions. These break make in a big way, because it thinks it's looking for a file called 'libsnmp_db.' and can't find it.)
SharedExtension is defined in hpnp.cf, which is included in /usr/lib/X11R6/imake/site.def like this:
#ifdef AfterVendorCF
/* LUCS-specific modifications below */
#include
Inside /usr/lib/X11R6/imake/hpnp.cf, SharedExtension is defined like this:
# ifndef SharedExtension
# define SharedExtension sl
# endif
Bear in mind that this isn't something I wrote, rather it is a project I inherited. Due to the nature of the project, I assume this has worked on other systems, but I can't seem to nail down the cause of this one. Does anybody have an idea where this extra space might be coming from? Thanks in advance.
Matt Crouse
Long time listener, first time caller, etc. I have a problem with xmkmf/imake that I've spent all day trying to figure out. This is on a 9000/780 system running HP-UX 10.20, btw. My setup is like this:
The Imakefile contains this:
#ifdef sunos
AllTarget ( $(HDRS)
libsnmp_db.SharedExtension
libsnmp.SharedExtension
libsnmp.a
)
#else
AllTarget ( $(HDRS)
libsnmp_db.SharedExtension
libsnmp.SharedExtension
libsnmp.a
libsnmp_db.a
)
#endif
Which, when run through xmkmf (just plain, no args) produces a Makefile with corresponding lines like this:
all:: $(HDRS)
libsnmp_db. sl
libsnmp. sl
libsnmp.a
libsnmp_db.a
libsnmp_db. sl :
(Note the extra spaces before the .sl extensions. These break make in a big way, because it thinks it's looking for a file called 'libsnmp_db.' and can't find it.)
SharedExtension is defined in hpnp.cf, which is included in /usr/lib/X11R6/imake/site.def like this:
#ifdef AfterVendorCF
/* LUCS-specific modifications below */
#include
Inside /usr/lib/X11R6/imake/hpnp.cf, SharedExtension is defined like this:
# ifndef SharedExtension
# define SharedExtension sl
# endif
Bear in mind that this isn't something I wrote, rather it is a project I inherited. Due to the nature of the project, I assume this has worked on other systems, but I can't seem to nail down the cause of this one. Does anybody have an idea where this extra space might be coming from? Thanks in advance.
Matt Crouse
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP