cURL / Mailing Lists / curl-users / Single Mail

curl-users

Curl 7.0.8 configure troubles

From: Rich Gray <RichGray_at_PlusTechnologies.com>
Date: Tue, 11 Jul 2000 19:46:15 -0400

I've tried to compile 7.0.8 beta on four systems (NCR MP-RAS, SCO Openserver
5.0.5, AIX 4.3.2 and HPUX 9) and failed, seemingly because configure is
generating a bad cc command line. The compilers on the first three objected
to the -Wall option. Here's AIX blowing up on the first compile attempt:

# make
        cd . && /tmp/curl-7.0.8beta/missing autoheader
WARNING: `autoheader' is missing on your system. You should only need it if
         you modified `acconfig.h' or `configure.in'. You might want
         to install the `Autoconf' and `GNU m4' packages. Grab them
         from any GNU archive site.
        make all-recursive
Making all in lib
        cc -DHAVE_CONFIG_H -I. -I. -I.. -I../src -I../include -g -Wall
-c file.c
cc: 1501-210 command option Wall contains an incorrect subargument
make: 1254-004 The error code from the last command is 40.

As a sanity check, I went back to 6.5.2 on AIX and re-compiled (cleanly).
Here's the file.c compile:

# make
        make all-recursive
Making all in lib
        cc -DHAVE_CONFIG_H -I. -I. -I.. -I../src -I../include -c file.c
                                       
Interestingly enough, I compiled 6.5.2 on our old HPUX 9.05 system with

 CFLAGS="-Aa -DA1.0 -D_HPUX_SOURCE" ./configure

checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking for gcc... no
checking for cc... cc
checking whether the C compiler (cc -Aa -DA1.0 -D_HPUX_SOURCE ) works... yes
checking whether the C compiler (cc -Aa -DA1.0 -D_HPUX_SOURCE ) is a
cross-compi
ler... no
...

and when we go to compile:

        from any GNU archive site.
        make all-recursive
No suffix list.
Making all in lib
        cc -DHAVE_CONFIG_H -I. -I. -I.. -I../src -I../include -Aa -DA1.0
-D_HPUX_SOURCE -c file.c
cpp: "", line 0: warning 2003: Illegal argument to '-D' option.
                                                       
(yeah, it complains about the -D_HPUX_SOURCE, but requires it to work... :-\
)

but trying to configure and compile 7.0.8 I see CFLAGS reflected in the
configure output:

# cd /tmp/curl-7.0.8beta
# CFLAGS="-Aa -DA1.0 -D_HPUX_SOURCE" ./configure
creating cache ./config.cache
checking for a BSD compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking for gcc... no
checking for cc... cc
checking whether the C compiler (cc -Aa -DA1.0 -D_HPUX_SOURCE ) works... yes
checking whether the C compiler (cc -Aa -DA1.0 -D_HPUX_SOURCE ) is a
cross-compiler... no
checking whether we are using GNU C... no
checking whether cc accepts -g... yes
checking whether make sets ${MAKE}... (cached) yes
checking how to run the C preprocessor...

But not the actual compile:
        
   make all-recursive
No suffix list.
Making all in lib
        cc -DHAVE_CONFIG_H -I. -I. -I.. -I../src -I../include -g -Wall
-c file.c

Seems like CFLAGS is just broken somehow.

I also note that the configure stuff seems to lack the test for simultaneous
-lnsl and -lsocket which NCR MP-RAS and SCO Openserver 5 require to link.

Cheers!
Rich

Richard B. Gray, Sr. Software Egr.| Tel: 513-746-8118 ext. 2405
Plus Technologies, a division of | 877-899-PLUS (7587)
Digital Controls Corporation | Fax: 513/743-8575
305 South Pioneer Blvd. | mailto:richg_at_plustechnologies.com
Springboro OH 45066-1100, USA | http://www.plustechnologies.com
Received on 2000-07-12