Mailing List Archive

Need Help with C Compiler Error in AIX 5.3 During GnuPG Build
Hi,

I am new to GnuPG and have recently subscribed to this mailing list to access to help from the GnuPG user community.

I downloaded GnuPG and required libraries and am attempting build of the first required package npth-1.6.

The ./configure step failed with the below error.

configure:3552: error: in `/fin3/app/app/capplmgr/mlc-rot/gnupg/npth-1.6':
configure:3554: error: C compiler cannot create executables
See `config.log' for more details


I looked in config.log and extracted the below excerpt that shows more details about the error.

:
IBM XL C/C++ Enterprise Edition for AIX, V9.0
Version: 09.00.0000.0000
configure:3463: $? = 0
configure:3483: checking whether the C compiler works
configure:3505: cc $(INCLUDE_FLAGS) -U__STR__ -DAIXRIOS -DNLS_ASIA -DORE -D_BSD -DRIOS -qro -O -DAFSTUBS conftest.c >&5
cc: 1501-228 (W) input file $(INCLUDE_FLAGS) not found
configure:3509: $? = 252
configure:3547: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "npth"
| #define PACKAGE_TARNAME "npth"
| #define PACKAGE_VERSION "1.6"
| #define PACKAGE_STRING "npth 1.6"
| #define PACKAGE_BUGREPORT "https://bugs.gnupg.org"
| #define PACKAGE_URL ""
| #define PACKAGE "npth"
| #define VERSION "1.6"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3552: error: in `/fin3/app/app/capplmgr/mlc-rot/gnupg/npth-1.6':
configure:3554: error: C compiler cannot create executables
See `config.log' for more details
:

It seems that the key log entry here is the line: cc: 1501-228 (W) input file $(INCLUDE_FLAGS) not found

I would appreciate any help/advise on how to fix this error.

Thanks,
Rey

Reynaldo Abeleda
Senior Analyst, Engineer
Oracle Financials | Superannuation - Retail & Corporate | Wealth Technology
National Australia Bank
Level 7, 105 Miller St, North Sydney NSW 2060


________________________________

The information contained in this email communication may be confidential. If you have received this email in error, please notify the sender by return email, delete this email and destroy any copy.

Any advice contained in this email has been prepared without taking into account your objectives, financial situation or needs. Before acting on any advice in this email, National Australia Bank Limited (NAB) recommends that you consider whether it is appropriate for your circumstances. If this email contains reference to any financial products, NAB recommends you consider the Product Disclosure Statement (PDS) or other disclosure document available from NAB, before making any decisions regarding any products.

If this email contains any promotional content that you do not wish to receive, please reply to the original sender and write "Don't email promotional material" in the subject.
Need Help with C Compiler Error in AIX 5.3 During GnuPG Build [ In reply to ]
Hi,

I am new to GnuPG and have recently subscribed to this mailing list to access to help from the GnuPG user community.

I downloaded GnuPG and required libraries and am attempting build of the first required package npth-1.6.

The ./configure step failed with the below error.

configure:3552: error: in `/fin3/app/app/capplmgr/mlc-rot/gnupg/npth-1.6':
configure:3554: error: C compiler cannot create executables
See `config.log' for more details


I looked in config.log and extracted the below excerpt that shows more details about the error.

:
IBM XL C/C++ Enterprise Edition for AIX, V9.0
Version: 09.00.0000.0000
configure:3463: $? = 0
configure:3483: checking whether the C compiler works
configure:3505: cc $(INCLUDE_FLAGS) -U__STR__ -DAIXRIOS -DNLS_ASIA -DORE -D_BSD -DRIOS -qro -O -DAFSTUBS conftest.c >&5
cc: 1501-228 (W) input file $(INCLUDE_FLAGS) not found
configure:3509: $? = 252
configure:3547: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "npth"
| #define PACKAGE_TARNAME "npth"
| #define PACKAGE_VERSION "1.6"
| #define PACKAGE_STRING "npth 1.6"
| #define PACKAGE_BUGREPORT "https://bugs.gnupg.org"
| #define PACKAGE_URL ""
| #define PACKAGE "npth"
| #define VERSION "1.6"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3552: error: in `/fin3/app/app/capplmgr/mlc-rot/gnupg/npth-1.6':
configure:3554: error: C compiler cannot create executables
See `config.log' for more details
:

It seems that the key log entry here is the line: cc: 1501-228 (W) input file $(INCLUDE_FLAGS) not found

I would appreciate any help/advise on how to fix this error.

Thanks,
Rey

Reynaldo Abeleda
Senior Analyst, Engineer
Oracle Financials | Superannuation - Retail & Corporate | Wealth Technology
National Australia Bank
Level 7, 105 Miller St, North Sydney NSW 2060


________________________________

The information contained in this email communication may be confidential. If you have received this email in error, please notify the sender by return email, delete this email and destroy any copy.

Any advice contained in this email has been prepared without taking into account your objectives, financial situation or needs. Before acting on any advice in this email, National Australia Bank Limited (NAB) recommends that you consider whether it is appropriate for your circumstances. If this email contains reference to any financial products, NAB recommends you consider the Product Disclosure Statement (PDS) or other disclosure document available from NAB, before making any decisions regarding any products.

If this email contains any promotional content that you do not wish to receive, please reply to the original sender and write "Don't email promotional material" in the subject.
Re: Need Help with C Compiler Error in AIX 5.3 During GnuPG Build [ In reply to ]
On Mon, 23 Sep 2019 02:36, gnupg-users@gnupg.org said:

> configure:3554: error: C compiler cannot create executables

configure does an early test to see whether your C compiler works. This
is done to detect crippled compilers delivered on some systems. Seems
not the case here, though.

> configure:3505: cc $(INCLUDE_FLAGS) -U__STR__ -DAIXRIOS -DNLS_ASIA
> -DORE -D_BSD -DRIOS -qro -O -DAFSTUBS conftest.c >&5
> cc: 1501-228 (W) input file $(INCLUDE_FLAGS) not found

... $(INCLUDE_FLAGS) looks like a make macro and definitely does not
belong here. Check whether you have set any of CFLAGS, CPPFLAGS,
LDFLAGS set in your environment or whether the envvar CC specifies these
flags. It is also possible that cc is shell script or other wrapper
which invokes the real CC; check for uncommon things in your PATH.


Shalom-Salam,

Werner


--
Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz.
RE: Need Help with C Compiler Error in AIX 5.3 During GnuPG Build [ In reply to ]
Hi Werner,

You hit the nail on the head.

Looks like CFLAGS was indeed set by another script that is run automatically after login. After ensuring that script is not run. The compile error I was experience went away.

Thanks very much for your help.

Regards,

Reynaldo Abeleda
Senior Analyst, Engineer
Oracle Financials | Superannuation - Retail & Corporate | Wealth Technology
National Australia Bank

-----Original Message-----
From: Werner Koch [mailto:wk@gnupg.org]
Sent: Tuesday, 24 September 2019 1:52 AM
To: Rey Abeleda via Gnupg-users
Cc: Rey Abeleda
Subject: Re: Need Help with C Compiler Error in AIX 5.3 During GnuPG Build

On Mon, 23 Sep 2019 02:36, gnupg-users@gnupg.org said:

> configure:3554: error: C compiler cannot create executables

configure does an early test to see whether your C compiler works. This is done to detect crippled compilers delivered on some systems. Seems not the case here, though.

> configure:3505: cc $(INCLUDE_FLAGS) -U__STR__ -DAIXRIOS -DNLS_ASIA
> -DORE -D_BSD -DRIOS -qro -O -DAFSTUBS conftest.c >&5
> cc: 1501-228 (W) input file $(INCLUDE_FLAGS) not found

... $(INCLUDE_FLAGS) looks like a make macro and definitely does not belong here. Check whether you have set any of CFLAGS, CPPFLAGS, LDFLAGS set in your environment or whether the envvar CC specifies these flags. It is also possible that cc is shell script or other wrapper which invokes the real CC; check for uncommon things in your PATH.


Shalom-Salam,

Werner


--
Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz.

The information contained in this email and its attachments may be confidential.
If you have received this email in error, please notify the sender by return email,
delete this email and destroy any copy.

Any advice contained in this email has been prepared without taking into
account your objectives, financial situation or needs. Before acting on any
advice in this email, National Australia Bank Limited (NAB) recommends that
you consider whether it is appropriate for your circumstances.
If this email contains reference to any financial products, NAB recommends
you consider the Product Disclosure Statement (PDS) or other disclosure
document available from NAB, before making any decisions regarding any
products.

If this email contains any promotional content that you do not wish to receive,
please reply to the original sender and write "Don't email promotional
material" in the subject.


_______________________________________________
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users