Compiling problem - AIX 7.2


 
Thread Tools Search this Thread
Operating Systems AIX Compiling problem - AIX 7.2
# 1  
Old 06-12-2018
Compiling problem - AIX 7.2

Hi

We meet errors while running configuration scripts to prepare compiling source code on AIX 7.2. This error does not happen on AIX5.3 and AIX6.1

With the “/usr/bin/sh” from AIX7.2, sometimes , the script runs sucessfully, sometimes not. It’s unstable, and I don’t know why.

When we try to copy file "/usr/bin/sh" from AIX6.1 to replace it on AIX7.2, we can compile sucessfully.

I have no ideas why !
So what's the problem ???
# 2  
Old 06-12-2018
Hello bobochacha29,

Okay, so what actually is your problem? What you have described is a bit like ringing your local mechanic to say "There's something wrong with my car" and they have to guess is it out of fuel, headlights, engine won't start (lots of causes there) or you have forgotten your keys and tried someone else's keys from a similar car instead, or a multitude of other things down to "I can't find my way home"

Sharing your code would probably help along with the commands you are using and the output/errors. Please wrap the various parts in CODE tags to make there clear to read and preserve multiple spacing for indenting or fixed-width data.



We're all here to learn and getting the relevant information will help us all.
This User Gave Thanks to rbatte1 For This Post:
# 3  
Old 06-12-2018
I can only second what rbatte1 already said:

- which package do you try to compile?
- which compiler do you use?
- what EXACTLY are the diagnostic messages (sorry, but to find the culprit from "sometimes something doesn't work" is nigh impossible)?

Quote:
When we try to copy file "/usr/bin/sh" from AIX6.1 to replace it on AIX7.2, we can compile sucessfully.
IMHO it is a miracle that this would run at all because of different shared library versions involved. In any case /usr/bin/sh in AIX since (IIRC) v 4.1 has always been a Korn shell 88 and the ksh version hasn't changed since 5.3 at all. So, apart from version problems with shared libraries as described above, you should get the same results with both shell versions when running scripts.

I hope this helps.

bakunin
These 2 Users Gave Thanks to bakunin For This Post:
# 4  
Old 06-13-2018
Sorry for making you confused. What I mean is: Is there any differences, big -diferences between AIX 7.2 and the others AIX version ( the shell environtment, the policy ... ) which can make these things happen.

I'm not sure what's the culprit - the AIX 7.2, the compiler program or the script compatibility or something else. So I wrote " I have no idea why".

Attack file - including : script, command to run script and logs. Hope you can find something.

Thank you

Code:
<root@lpar01:/> /usr/vacpp/bin/xlC -qversion                        
IBM XL C/C++ for AIX, V12.1 (5765-J02, 5725-C72)
Version: 12.01.0000.0019
<root@lpar01:/>oslevel -s
7200-02-00-0000


Successful log

Code:
checking build system type... rs6000-ibm-aix
checking host system type... rs6000-ibm-aix
checking target system type... rs6000-ibm-aix
Configuring APR library
Platform: rs6000-ibm-aix
checking for working mkdir -p... yes
APR Version: 1.2.12
checking for chosen layout... apr
checking for gcc... xlC_r
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... no
checking whether xlC_r accepts -g... yes
checking for xlC_r option to accept ISO C89... none needed
Applying APR hints file rules for rs6000-ibm-aix
  setting CPPFLAGS to "-U__STR__ -D_THREAD_SAFE"
  setting AIX_XLC to "yes"
  adding "-qHALT=E" to CFLAGS
  setting apr_sysvsem_is_global to "yes"
  setting apr_lock_method to "USE_SYSVSEM_SERIALIZE"
  setting LDFLAGS to "-Wl,-brtl"
(Default will be unix)
checking whether make sets $(MAKE)... yes
checking how to run the C preprocessor... xlC_r -E
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether ln -s works... yes
checking for ranlib... ranlib
checking for a BSD-compatible install... build/install.sh -c
checking for rm... rm
checking for as... as
checking for cpp... cpp
checking for ar... ar
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for AIX... yes
checking for library containing strerror... none required
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether system uses EBCDIC... no
performing libtool configuration...
checking for a sed that does not truncate output... /usr/bin/sed
checking for non-GNU ld... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking how to recognise dependent libraries... unknown
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... xlC_r
checking whether we are using the GNU C++ compiler... no
checking whether xlC_r accepts -g... yes
checking how to run the C++ preprocessor... xlC_r -E
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 131072
checking command to parse /usr/bin/nm -B output from xlC_r object... ok
checking for objdir... .libs
checking for ar... (cached) ar
checking for ranlib... (cached) ranlib
checking for strip... strip
checking if xlC_r static flag  works... yes
checking for xlC_r option to produce PIC... 
checking if xlC_r supports -c -o file.o... yes
checking whether the xlC_r linker (/usr/bin/ld) supports shared libraries... no
checking dynamic linker characteristics... no
checking how to hardcode library paths into programs... unsupported
checking whether stripping libraries is possible... no
checking if libtool supports shared libraries... no
checking whether to build shared libraries... no
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking whether the xlC_r linker (/usr/bin/ld) supports shared libraries... no
checking for xlC_r option to produce PIC... 
checking if xlC_r supports -c -o file.o... yes
checking whether the xlC_r linker (/usr/bin/ld) supports shared libraries... no
checking dynamic linker characteristics... no
checking how to hardcode library paths into programs... unsupported
checking whether stripping libraries is possible... no
appending configuration tag "F77" to libtool

Check for compiler flags...
checking if xlC_r -MM can create proper make dependencies... no
checking if xlC_r -M can create proper make dependencies... no
checking if xlC_r -E -MM can create proper make dependencies... no
checking if xlC_r -E -M can create proper make dependencies... no
checking if cpp -M can create proper make dependencies... no
checking whether to enable -D_LARGEFILE64_SOURCE... yes
  adding "-D_LARGEFILE64_SOURCE" to CPPFLAGS

Checking for libraries...
checking for library containing gethostbyname... none required
checking for library containing gethostname... none required
checking for library containing socket... none required
checking for library containing crypt... none required
checking for main in -ltruerand... no
checking for library containing modf... none required

Checking for Threads...
checking for CFLAGS needed for pthreads... none
checking for LIBS needed for pthreads... -lpthread
  setting LIBS to "-lpthread"
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking whether pthread_getspecific takes two arguments... no
checking whether pthread_attr_getdetachstate takes one argument... no
checking for recursive mutex support... yes
checking for pthread_key_delete... yes
checking for pthread_rwlock_init... yes
checking for pthread_attr_setguardsize... yes
checking for pthread_rwlock_t... yes
APR will use threads
checking for readdir in -lc_r... yes
checking for gethostbyname in -lc_r... yes
checking for gethostbyaddr in -lc_r... yes
checking for gethostbyname_r... yes
checking for gethostbyaddr_r... yes
checking for sigsuspend... yes
checking for sigwait... yes
checking for poll... yes
checking for kqueue... no
checking for port_create... no
checking for epoll support... no
checking for getpwnam_r... yes
checking for getpwuid_r... yes
checking for getgrnam_r... yes
checking for getgrgid_r... yes

Checking for Shared Memory Support...
checking for library containing shm_open... none required
checking for sys/types.h... (cached) yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking sys/ipc.h usability... yes
checking sys/ipc.h presence... yes
checking for sys/ipc.h... yes
checking sys/mutex.h usability... no
checking sys/mutex.h presence... no
checking for sys/mutex.h... no
checking sys/shm.h usability... yes
checking sys/shm.h presence... yes
checking for sys/shm.h... yes
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking kernel/OS.h usability... no
checking kernel/OS.h presence... no
checking for kernel/OS.h... no
checking os2.h usability... no
checking os2.h presence... no
checking for os2.h... no
checking for mmap... yes
checking for munmap... yes
checking for shm_open... yes
checking for shm_unlink... yes
checking for shmget... yes
checking for shmat... yes
checking for shmdt... yes
checking for shmctl... yes
checking for create_area... no
checking for MAP_ANON in sys/mman.h... yes
checking for /dev/zero... yes
checking for mmap that can map /dev/zero... yes
decision on anonymous shared memory allocation method... 4.4BSD-style mmap() via MAP_ANON
decision on namebased memory allocation method... SysV IPC shmget()
checking for alloca... no
checking for calloc... yes
checking for setsid... yes
checking for isinf... yes
checking for isnan... yes
checking for getenv... yes
checking for putenv... yes
checking for setenv... yes
checking for unsetenv... yes
checking for writev... yes
checking for getifaddrs... no
checking for utime... yes
checking for utimes... yes
checking for setrlimit... yes
checking for getrlimit... yes
checking for sendfilev in -lsendfile... no
checking for sendfile... no
checking for send_file... yes
checking for sendfilev... no
checking for void*... yes
checking size of void*... 4
checking for sigaction... yes
checking whether sys_siglist is declared... no
checking for fork... yes
checking for inet_addr... yes
checking for inet_network... yes
checking for _getch... no
checking for strerror_r... yes
checking for type of return code from strerror_r... int
checking for mmap... (cached) yes
checking for memmove... yes
checking for getpass... yes
checking for getpassphrase... no
checking for gmtime_r... yes
checking for localtime_r... yes
checking for mkstemp... yes
checking whether sigwait takes one argument... no
checking for ANSI C header files... (cached) yes
checking alloca.h usability... yes
checking alloca.h presence... yes
checking for alloca.h... yes
checking ByteOrder.h usability... no
checking ByteOrder.h presence... no
checking for ByteOrder.h... no
checking conio.h usability... no
checking conio.h presence... no
checking for conio.h... no
checking crypt.h usability... yes
checking crypt.h presence... yes
checking for crypt.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking dir.h usability... no
checking dir.h presence... no
checking for dir.h... no
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking dl.h usability... no
checking dl.h presence... no
checking for dl.h... no
checking for dlfcn.h... (cached) yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking io.h usability... no
checking io.h presence... no
checking for io.h... no
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking mach-o/dyld.h usability... no
checking mach-o/dyld.h presence... no
checking for mach-o/dyld.h... no
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for memory.h... (cached) yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking osreldate.h usability... no
checking osreldate.h presence... no
checking for osreldate.h... no
checking poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking process.h usability... no
checking process.h presence... no
checking for process.h... no
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking semaphore.h usability... yes
checking semaphore.h presence... yes
checking for semaphore.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking sysapi.h usability... no
checking sysapi.h presence... no
checking for sysapi.h... no
checking sysgtime.h usability... no
checking sysgtime.h presence... no
checking for sysgtime.h... no
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking tpfeq.h usability... no
checking tpfeq.h presence... no
checking for tpfeq.h... no
checking tpfio.h usability... no
checking tpfio.h presence... no
checking for tpfio.h... no
checking for unistd.h... (cached) yes
checking unix.h usability... no
checking unix.h presence... no
checking for unix.h... no
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking for kernel/OS.h... (cached) no
checking net/errno.h usability... no
checking net/errno.h presence... no
checking for net/errno.h... no
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking netinet/sctp.h usability... no
checking netinet/sctp.h presence... no
checking for netinet/sctp.h... no
checking netinet/sctp_uio.h usability... no
checking netinet/sctp_uio.h presence... no
checking for netinet/sctp_uio.h... no
checking for sys/file.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking for sys/mman.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/sem.h usability... yes
checking sys/sem.h presence... yes
checking for sys/sem.h... yes
checking sys/sendfile.h usability... no
checking sys/sendfile.h presence... no
checking for sys/sendfile.h... no
checking sys/signal.h usability... yes
checking sys/signal.h presence... yes
checking for sys/signal.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/sockio.h usability... no
checking sys/sockio.h presence... no
checking for sys/sockio.h... no
checking for sys/stat.h... (cached) yes
checking sys/sysctl.h usability... no
checking sys/sysctl.h presence... no
checking for sys/sysctl.h... no
checking sys/syslimits.h usability... no
checking sys/syslimits.h presence... no
checking for sys/syslimits.h... no
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for sys/types.h... (cached) yes
checking sys/uio.h usability... yes
checking sys/uio.h presence... yes
checking for sys/uio.h... yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking for netinet/tcp.h... yes
checking for h_errno in netdb.h... yes
checking for off_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for uid_t in sys/types.h... yes
checking for ssize_t... yes
checking for inline... inline
checking for an ANSI C-conforming const... yes
checking whether setpgrp takes no argument... yes
checking for socklen_t... yes
checking for void*... (cached) yes
checking size of void*... (cached) 4
checking for char... yes
checking size of char... 1
checking for int... yes
checking size of int... 4
checking for long... yes
checking size of long... 4
checking for short... yes
checking size of short... 2
checking for long long... yes
checking size of long long... 8
checking for INT64_C... yes
checking size of ssize_t... 4
checking size of size_t... 4
checking size of off_t... 4
checking for mmap64... yes
checking for sendfile64... no
checking for sendfilev64... no
checking for mkstemp64... yes
checking which type to use for apr_off_t... off64_t
checking whether ino_t and unsigned long are the same... no
configure: using ino_t for ino_t
checking size of pid_t... 4
checking whether byte ordering is bigendian... yes
checking for strnicmp... no
checking for strncasecmp... yes
checking for stricmp... no
checking for strcasecmp... yes
checking for strdup... yes
checking for strstr... yes
checking for memchr... yes
checking for strtoll... yes

Checking for DSO...
checking for dlopen... yes
checking for dlsym... yes

Checking for Processes...
checking for waitpid... yes
checking for Variable Length Arrays... yes
checking struct rlimit... yes

Checking for Locking...
checking for semget... yes
checking for semctl... yes
checking for flock... no
checking for semaphore.h... (cached) yes
checking OS.h usability... no
checking OS.h presence... no
checking for OS.h... no
checking for library containing sem_open... none required
checking for sem_close... yes
checking for sem_unlink... yes
checking for sem_post... yes
checking for sem_wait... yes
checking for create_sem... no
checking for working sem_open... yes
checking for union semun in sys/sem.h... no
checking for LOCK_EX in sys/file.h... yes
checking for F_SETLK in fcntl.h... yes
checking for SEM_UNDO in sys/sem.h... yes
checking for POLLIN in poll.h sys/poll.h... yes
checking for PTHREAD_PROCESS_SHARED in pthread.h... yes
checking for pthread_mutexattr_setpshared... yes
checking for working PROCESS_SHARED locks... yes
checking for robust cross-process mutex support... no
decision on apr_lock implementation method... SysV IPC semget()
checking if all interprocess locks affect threads... no
checking if POSIX sems affect threads in the same process... no
checking if SysV sems affect threads in the same process... yes
checking if fcntl locks affect threads in the same process... no
checking if flock locks affect threads in the same process... no
checking for entropy source... /dev/random

Checking for File Info Support...
checking for struct stat.st_blocks... yes
checking for struct stat.st_atimensec... no
checking for struct stat.st_ctimensec... no
checking for struct stat.st_mtimensec... no
checking for struct stat.st_atim.tv_nsec... yes
checking for struct stat.st_ctim.tv_nsec... yes
checking for struct stat.st_mtim.tv_nsec... yes
checking for struct stat.st_atime_n... yes
checking for struct stat.st_ctime_n... yes
checking for struct stat.st_mtime_n... yes
checking for inode member of struct dirent... d_ino
checking for file type member of struct dirent... no

Checking for OS UUID Support...
checking uuid.h usability... yes
checking uuid.h presence... yes
checking for uuid.h... yes
checking for library containing uuid_create... none required
checking for library containing uuid_generate... no
checking for uuid_create... yes
checking for uuid_generate... no
checking for os uuid usability... yes

Checking for Time Support...
checking for struct tm.tm_gmtoff... no
checking for struct tm.__tm_gmtoff... no

Checking for Networking support...
checking for in_addr in netinet/in.h... yes
checking if fd == socket on this platform... yes
checking style of gethostbyname_r routine... none
checking 3rd argument to the gethostbyname_r routines... hostent_data
checking if TCP_NODELAY setting is inherited from listening sockets... yes
checking if O_NONBLOCK setting is inherited from listening sockets... yes
checking whether TCP_NODELAY and TCP_CORK can both be enabled... no
checking for TCP_CORK in netinet/tcp.h... no
checking for TCP_NOPUSH in netinet/tcp.h... no
checking for SO_ACCEPTFILTER in sys/socket.h... no
checking whether SCTP is supported... no
checking for struct ip_mreq... yes
checking for set_h_errno... no

Checking for IPv6 Networking support...
checking for library containing getaddrinfo... none required
checking for library containing gai_strerror... none required
checking for library containing getnameinfo... none required
checking for gai_strerror... yes
checking for working getaddrinfo... yes
checking for negative error codes for getaddrinfo... no
checking for working getnameinfo... yes
checking for sockaddr_in6... yes
checking for sockaddr_storage... yes
checking for working AI_ADDRCONFIG... yes
checking if APR supports IPv6... yes
checking langinfo.h usability... yes
checking langinfo.h presence... yes
checking for langinfo.h... yes
checking for nl_langinfo... yes

Restore user-defined environment settings...
  restoring CPPFLAGS to ""
  setting EXTRA_CPPFLAGS to "-U__STR__ -D_THREAD_SAFE -D_LARGEFILE64_SOURCE"
  restoring CFLAGS to ""
  setting EXTRA_CFLAGS to "-g -qHALT=E"
  restoring LDFLAGS to ""
  setting EXTRA_LDFLAGS to "-Wl,-brtl"
  restoring LIBS to ""
  setting EXTRA_LIBS to "-lpthread"
  restoring INCLUDES to ""
  setting EXTRA_INCLUDES to ""
configure: creating ./config.status
config.status: creating Makefile
config.status: creating include/apr.h
config.status: creating build/apr_rules.mk
config.status: creating build/pkg/pkginfo
config.status: creating apr-1-config
config.status: creating apr.pc
config.status: creating test/Makefile
config.status: creating test/internal/Makefile
config.status: creating include/arch/unix/apr_private.h
config.status: executing default commands
config.status: include/apr.h is unchanged
config.status: include/arch/unix/apr_private.h is unchanged


Failed log

Code:
checking build system type... rs6000-ibm-aix
checking host system type... rs6000-ibm-aix
checking target system type... rs6000-ibm-aix
Configuring APR library
Platform: rs6000-ibm-aix
checking for working mkdir -p... yes
APR Version: 1.2.12
checking for chosen layout... apr
checking for gcc... xlC_r
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... no
checking whether xlC_r accepts -g... yes
checking for xlC_r option to accept ISO C89... none needed
Applying APR hints file rules for rs6000-ibm-aix
  setting CPPFLAGS to "-U__STR__ -D_THREAD_SAFE"
  setting AIX_XLC to "yes"
  adding "-qHALT=E" to CFLAGS
  setting apr_sysvsem_is_global to "yes"
  setting apr_lock_method to "USE_SYSVSEM_SERIALIZE"
  setting LDFLAGS to "-Wl,-brtl"
(Default will be unix)
checking whether make sets $(MAKE)... yes
checking how to run the C preprocessor... xlC_r -E
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether ln -s works... yes
checking for ranlib... ranlib
checking for a BSD-compatible install... build/install.sh -c
checking for rm... rm
checking for as... as
checking for cpp... cpp
checking for ar... ar
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for AIX... yes
checking for library containing strerror... none required
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether system uses EBCDIC... no
performing libtool configuration...
checking for a sed that does not truncate output... /usr/bin/sed
checking for non-GNU ld... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking how to recognise dependent libraries... unknown
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... xlC_r
checking whether we are using the GNU C++ compiler... no
checking whether xlC_r accepts -g... yes
checking how to run the C++ preprocessor... xlC_r -E
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 131072
checking command to parse /usr/bin/nm -B output from xlC_r object... ok
checking for objdir... .libs
checking for ar... (cached) ar
checking for ranlib... (cached) ranlib
checking for strip... strip
checking if xlC_r static flag  works... yes
checking for xlC_r option to produce PIC... 
checking if xlC_r supports -c -o file.o... yes
checking whether the xlC_r linker (/usr/bin/ld) supports shared libraries... no
checking dynamic linker characteristics... no
checking how to hardcode library paths into programs... unsupported
checking whether stripping libraries is possible... no
checking if libtool supports shared libraries... no
checking whether to build shared libraries... no
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking whether the xlC_r linker (/usr/bin/ld) supports shared libraries... no
checking for xlC_r option to produce PIC... 
checking if xlC_r supports -c -o file.o... yes
checking whether the xlC_r linker (/usr/bin/ld) supports shared libraries... no
checking dynamic linker characteristics... no
checking how to hardcode library paths into programs... unsupported
checking whether stripping libraries is possible... no
appending configuration tag "F77" to libtool
./configure[24690]: if:  not found
./configure[24690]: then:  not found
./configure[24692]: else:  not found
./configure[24694]: fi:  not found
./configure[24700]: if:  not found
./configure[24700]: then:  not found
./configure[24702]: else:  not found
./configure[24704]: fi:  not found
./configure[24707]: if:  not found
./configure[24707]: then:  not found
./configure[24714]: else:  not found
./configure[24720]: fi:  not found
./configure[24722]: case:  not found
./configure[24723]: syntax error at line 24723 : `)' unexpected
./configure[24723]: syntax error at line 19 : `)' unexpected

# 5  
Old 06-13-2018
OK, thanks for the follow-up. Not everything makes sense yet but we are making progress.

Quote:
Originally Posted by bobochacha29
Is there any differences, big -diferences between AIX 7.2 and the others AIX version ( the shell environtment, the policy ... ) which can make these things happen.
Not to my knowledge. But let us state for the record what we have so far:

You try to run a configure script for a nondescript software using IBMs XlC compiler and you encounter a syntax error:

Code:
[...snipped...]
appending configuration tag "F77" to libtool
./configure[24690]: if:  not found
./configure[24690]: then:  not found
./configure[24692]: else:  not found
./configure[24694]: fi:  not found
./configure[24700]: if:  not found
./configure[24700]: then:  not found
./configure[24702]: else:  not found
./configure[24704]: fi:  not found
./configure[24707]: if:  not found
./configure[24707]: then:  not found
./configure[24714]: else:  not found
./configure[24720]: fi:  not found
./configure[24722]: case:  not found
./configure[24723]: syntax error at line 24723 : `)' unexpected
./configure[24723]: syntax error at line 19 : `)' unexpected

These configure-scripts are created automatically so a syntax error just because someone made a typo or so is quite unlikely.

Now my first question is if there might be something wrong with your environment: check /etc/environment of the system you compile at for anything unusual because the settings there are put into every processes environment. Next, remove any configuration files (~/.profile, ~/.kshrc, ~/.bashrc, ...., just rename them) and start a "blank" session with a minimal environment. Check this for any unusual stuff (i.e. weird aliases, redefined system commands and the like), set the minimum PATH necessary for compilation and try to run the configure script again.

Did you use the same configure-script in both the failed and the successful case or did you unpack the source into different directories? If the latter is the case: did all involved file systems have enough space or might some file have become truncated during the unpacking?

So far, these are my first ideas. I hope this helps.

bakunin
This User Gave Thanks to bakunin For This Post:
# 6  
Old 06-14-2018
Quote:
Originally Posted by bakunin

Did you use the same configure-script in both the failed and the successful case or did you unpack the source into different directories
bakunin
Yes, same configure-script and same directories.

Thanks for your help.We even created a new server one, installed AIX from the beginning, installed the compiler, copied source, unpacked and then run the script. First, everything seemed good. We run the script several times successfully. Then suddenly, it failed.

This is the first time we run this on AIX 7.2, so maybe the problem here is the compatibility. We are still checking now.
# 7  
Old 06-15-2018
Quote:
Originally Posted by bobochacha29
First, everything seemed good. We run the script several times successfully. Then suddenly, it failed.
OK, here is another idea: these configure-scripts write their results to a file which is reused in consecutive runs. This means that these consecutive runs of the configure-script are not exactly the same as the first one. Question: does this problem also happen if you delete this file before a new run?

If it doesn't the reason might be (one probable reason) some fancy UMASK setting which makes the results files noticeable but not accessible.

I hope this helps.

bakunin
This User Gave Thanks to bakunin For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

HELP - compiling error for vsftpd on AIX 6.1

I'm getting error messages when trying to compile vsftpd version 3.0.2 on AIX 6.1 (trying to compile VSFTPD with SSL): SRVR#:/opt/freeware/src/packages/SOURCES/vsftpd-3.0.2> make gcc -o vsftpd main.o utility.o prelogin.o ftpcmdio.o postlogin.o privsock.o tunables.o ftpdataio.o secbuf.o... (2 Replies)
Discussion started by: ace1
2 Replies

2. AIX

AIX server is compiling executables to 32-bits by default, how to change it?

Hi everyone: I have a server running AIX 6.1, I've upgraded the TL from 6100-0100 to 6100-04-02-1007, however since then all the executables I compile are 32-bit mode by default, how can I solve this? I'm using VisualAge C/C++ 10.0 thanks in advance (4 Replies)
Discussion started by: edgarvm
4 Replies

3. UNIX for Advanced & Expert Users

Compiling Samba from Source on AIX, Active Directory, LDAP, Kerberos

Hello, I asked this question in the AIX subforum but never received an answer, probably because the AIX forum is not that heavily trafficked. Anyway, here it is.. I have never had any issues like this when compiling applications from source. When I try to compile samba-3.5.0pre2, configure runs... (9 Replies)
Discussion started by: raidzero
9 Replies

4. AIX

Compiling samba from source in AIX 5.3

Hello all. I have never had any issues like this when compiling applications from source. When I try to compile samba-3.5.0pre2, configure runs with no issues, but when the time comes to make, this happens: make: make 1254-025 There must be an existing description file or specify a target. ... (4 Replies)
Discussion started by: raidzero
4 Replies

5. AIX

Purify and AIX compiling problems.

Hi, i'm trying to work with a trial version of PurifyPlus 7 with fixpack 10 from Rational that needs to run over an AIX 5.3 platform, 64-bit. I had success on compiling and running the hello_world programs and even a hash test program i found over the net, but purify can achieve the same with the... (0 Replies)
Discussion started by: chrispav
0 Replies

6. HP-UX

Problem in HP-UX compiling

Hi When im trying to do make --version and make --help in HP-UX it throws error Make: Unknown flag argument -. Stop. a soft link is present in this directory /usr/bin/make and hard link is in /usr/ccs/bin/make what could be the reason can any1 ..please tell me how to solve this... (1 Reply)
Discussion started by: vasanthan
1 Replies

7. AIX

Compiling samba 3.0.27a under AIX

Compiling samba 3.0.27a under AIX I try to compile Samba 3.0.27a under AIX with LDAP and KErberos. The configure work fine: CFLAGS: -I/opt/pware/include -I/opt/pware/lib/ -I/opt/pware/open_ldap_exec/lib/ -I/software/samba/oldap/usr/lib -I/software/samba/oldap/usr/include ./configure... (2 Replies)
Discussion started by: BenediktS
2 Replies

8. UNIX and Linux Applications

Compiling samba 3.0.27a under AIX

I try to compile Samba 3.0.27a under AIX with LDAP and KErberos. The configure work fine: CFLAGS: -I/opt/pware/include -I/opt/pware/lib/ -I/opt/pware/open_ldap_exec/lib/ -I/software/samba/oldap/usr/lib -I/software/samba/oldap/usr/include ./configure --prefix=/opt/pware/samba/3.0.27a... (1 Reply)
Discussion started by: BenediktS
1 Replies

9. Programming

compiling thread safe c on aix

Hi, I'm trying to compile a Perl module for AIX 5.3. Now, Perl by default wants to use cc_r as compiler but I only have gcc installed on this system. How can I get gcc to be thread safe? Or can I use gcc without any options and expect it to behave the same as cc_r? (0 Replies)
Discussion started by: rein
0 Replies

10. AIX

compiling with aix 5.1

Hello, i will compile php and apache on an aix 5.1. Configure works fine. When i start the make the following error appears: /usr/include/sys/context.h:155: parse error before "sigset64_t" /usr/include/sys/context.h:158: parse error before '}' token make: 1254-004 The error code from the... (1 Reply)
Discussion started by: n-may
1 Replies
Login or Register to Ask a Question