bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#35650: [PATCH] Improving HP-UX support


From: Osipov, Michael
Subject: bug#35650: [PATCH] Improving HP-UX support
Date: Thu, 16 May 2019 10:09:45 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1



Am 2019-05-15 um 19:59 schrieb Paul Eggert:
On 5/14/19 2:15 PM, Osipov, Michael wrote:
configure:68559: checking whether this system supports stdbuf
configure:68586: /opt/aCC/bin/aCC -AC99 -o conftest +z -g
-I/opt/ports/coreutils/include -D_INCLUDE_STDC__SOURCE_199901 -b
-L/opt/ports/coreutils/lib/hpux32 conftest.c  >&5
configure:68586: $? = 0
configure:68591: result: yes

I do not really understand the purpose of the patch as it does not
really test for PIC/shared.

The patch alters the 'configure' script so that it's pickier about
rejecting warnings from the compiler.

The 'configure' script should be testing for -fPIC and -shared. It
should have something like this.

Purely my bad, apologies:
configure:68484: checking whether C compiler handles -Werror
configure:68503: /opt/aCC/bin/aCC -AC99 -o conftest -g  -Werror 
-I/opt/ports/coreutils/include -D_INCLUDE_STDC__SOURCE_199901 
-L/opt/ports/coreutils/lib/hpux32 conftest.c  >&5
aCC: error 1914: bad form for `-W' option
configure:68503: $? = 1
configure:68513: result: no
configure:68522: checking whether C compiler handles -errwarn
configure:68541: /opt/aCC/bin/aCC -AC99 -o conftest -g  -errwarn 
-I/opt/ports/coreutils/include -D_INCLUDE_STDC__SOURCE_199901 
-L/opt/ports/coreutils/lib/hpux32 conftest.c  >&5
ld: Entry symbol "rrwarn" not found
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This probably no the message you were striving for, but it serves the purpose.

Fatal error.
configure:68541: $? = 1
configure:68551: result: no
configure:68559: checking whether this system supports stdbuf
configure:68586: /opt/aCC/bin/aCC -AC99 -o conftest -fPIC -g 
-I/opt/ports/coreutils/include -D_INCLUDE_STDC__SOURCE_199901 -shared 
-L/opt/ports/coreutils/lib/hpux32 conftest.c  >&5
aCC: warning 901: unknown option: `-fPIC': use +help for online documentation.
aCC: warning 901: unknown option: `-hared': use +help for online documentation.
aCC: warning 919: "-s" and "-g/-g0/-g1/-G/-p/+I" are mutually exclusive.  "-s" 
option ignored
configure:68586: $? = 0
configure:68591: result: no

Is that what you have expected now?

stdbuf is still compiled and linked:
bash-5.0# find . -name stdbuf
./src/stdbuf
bash-5.0# ./src/stdbuf


Michael





reply via email to

[Prev in Thread] Current Thread [Next in Thread]