checking whether the C compiler works... no

AidySmith

Verified User
Joined
Dec 10, 2017
Messages
59
Location
UK
custombuild.png


LIBJPEG


  • Executing /usr/local/directadmin/plugins/custombuild/admin/build libjpeg...
  • Downloading jpegsrc.v9d.tar.gz...
  • --2020-07-27 09:30:07-- https://files2.directadmin.com/services/custombuild/jpegsrc.v9d.tar.gz
  • Resolving files2.directadmin.com (files2.directadmin.com)... 185.42.221.168
  • Connecting to files2.directadmin.com (files2.directadmin.com)|185.42.221.168|:443... connected.
  • HTTP request sent, awaiting response... 200 OK
  • Length: 1070160 (1.0M) [application/x-gzip]
  • Saving to: '/usr/local/directadmin/custombuild/jpegsrc.v9d.tar.gz'

  • 0K .......... .......... .......... .......... .......... 4% 40.8M 0s
  • 50K .......... .......... .......... .......... .......... 9% 82.1M 0s
  • 100K .......... .......... .......... .......... .......... 14% 65.7M 0s
  • 150K .......... .......... .......... .......... .......... 19% 59.3M 0s
  • 200K .......... .......... .......... .......... .......... 23% 81.7M 0s
  • 250K .......... .......... .......... .......... .......... 28% 63.6M 0s
  • 300K .......... .......... .......... .......... .......... 33% 67.5M 0s
  • 350K .......... .......... .......... .......... .......... 38% 61.1M 0s
  • 400K .......... .......... .......... .......... .......... 43% 59.2M 0s
  • 450K .......... .......... .......... .......... .......... 47% 68.3M 0s
  • 500K .......... .......... .......... .......... .......... 52% 67.6M 0s
  • 550K .......... .......... .......... .......... .......... 57% 80.0M 0s
  • 600K .......... .......... .......... .......... .......... 62% 87.2M 0s
  • 650K .......... .......... .......... .......... .......... 66% 75.2M 0s
  • 700K .......... .......... .......... .......... .......... 71% 67.6M 0s
  • 750K .......... .......... .......... .......... .......... 76% 89.1M 0s
  • 800K .......... .......... .......... .......... .......... 81% 85.8M 0s
  • 850K .......... .......... .......... .......... .......... 86% 83.0M 0s
  • 900K .......... .......... .......... .......... .......... 90% 63.2M 0s
  • 950K .......... .......... .......... .......... .......... 95% 130M 0s
  • 1000K .......... .......... .......... .......... ..... 100% 101M=0.01s

  • 2020-07-27 09:30:07 (71.2 MB/s) - '/usr/local/directadmin/custombuild/jpegsrc.v9d.tar.gz' saved [1070160/1070160]

  • checking build system type... x86_64-pc-linux-gnu
  • checking host system type... x86_64-pc-linux-gnu
  • checking target system type... x86_64-pc-linux-gnu
  • checking for a BSD-compatible install... /bin/install -c
  • checking whether build environment is sane... yes
  • checking for a thread-safe mkdir -p... /bin/mkdir -p
  • checking for gawk... gawk
  • checking whether make sets $(MAKE)... yes
  • checking whether make supports nested variables... yes
  • checking whether make supports nested variables... (cached) yes
  • checking whether to enable maintainer-specific portions of Makefiles... no
  • checking for gcc... gcc
  • checking whether the C compiler works... no
  • configure: error: in `/usr/local/directadmin/custombuild/jpeg-9d':
  • configure: error: C compiler cannot create executables
  • See `config.log' for more details
  • Trying to make libjpeg...
  • make: *** No targets specified and no makefile found. Stop.

  • Done!
EXIM


  • Executing /usr/local/directadmin/plugins/custombuild/admin/build exim...
  • Found /usr/local/directadmin/custombuild/exim-4.94.tar.gz
  • Extracting ...
  • Done.
  • Downloading exim-4.94/Local/Makefile...
  • --2020-07-27 09:30:47-- https://files2.directadmin.com/services/custombuild/Makefile
  • Resolving files2.directadmin.com (files2.directadmin.com)... 185.42.221.168
  • Connecting to files2.directadmin.com (files2.directadmin.com)|185.42.221.168|:443... connected.
  • HTTP request sent, awaiting response... 200 OK
  • Length: 48603 (47K)
  • Saving to: '/usr/local/directadmin/custombuild/exim-4.94/Local/Makefile'

  • 0K .......... .......... .......... .......... ....... 100% 38.4M=0.001s

  • 2020-07-27 09:30:47 (38.4 MB/s) - '/usr/local/directadmin/custombuild/exim-4.94/Local/Makefile' saved [48603/48603]

  • Making Makefile changes for 4.93+
  • Trying to make exim...
  • /bin/sh scripts/source_checks

  • >>> Creating links to source files...
  • >>> Creating lookups/Makefile for building dynamic modules
  • >>> New Makefile & lookups/Makefile installed
  • >>> Use "make makefile" if you need to force rebuilding of the makefile

  • make[1]: warning: -jN forced in submake: disabling jobserver mode.
  • make[1]: Entering directory '/usr/local/directadmin/custombuild/exim-4.94/build-Linux-x86_64'
  • /bin/sh ../scripts/Configure-os.c
  • cc buildconfig.c
  • /bin/sh ../scripts/Configure-os.h
  • cc exim_lock.c
  • as: error while loading shared libraries: /usr/lib64/libopcodes-2.30-73.el8.so: file too short
  • make[1]: *** [Makefile:707: exim_lock] Error 1
  • make[1]: *** Waiting for unfinished jobs....
  • as: error while loading shared libraries: /usr/lib64/libopcodes-2.30-73.el8.so: file too short
  • make[1]: *** [Makefile:381: buildconfig] Error 1
  • make[1]: Leaving directory '/usr/local/directadmin/custombuild/exim-4.94/build-Linux-x86_64'
  • make: *** [Makefile:35: all] Error 2

  • Done!
EXIM.CONF


  • Executing /usr/local/directadmin/plugins/custombuild/admin/build exim_conf...
  • Downgrading exim configuration version to 4.5.23 as the newest one requires exim 4.94 or newer.
  • --2020-07-27 09:31:06-- https://files2.directadmin.com/serv...3/exim.conf-SpamBlockerTechnology-v4.5.23.txt
  • Resolving files2.directadmin.com (files2.directadmin.com)... 185.42.221.168
  • Connecting to files2.directadmin.com (files2.directadmin.com)|185.42.221.168|:443... connected.
  • HTTP request sent, awaiting response... 200 OK
  • Length: 34845 (34K) [text/plain]
  • Saving to: '/etc/exim.conf.cb20'

  • 0K .......... .......... .......... .... 100% 45.0M=0.001s

  • 2020-07-27 09:31:06 (45.0 MB/s) - '/etc/exim.conf.cb20' saved [34845/34845]

  • --2020-07-27 09:31:06-- https://files2.directadmin.com/services/custombuild/system_filter.exim
  • Resolving files2.directadmin.com (files2.directadmin.com)... 185.42.221.168
  • Connecting to files2.directadmin.com (files2.directadmin.com)|185.42.221.168|:443... connected.
  • HTTP request sent, awaiting response... 200 OK
  • Length: 10495 (10K)
  • Saving to: '/etc/system_filter.exim'

  • 0K .......... 100% 52.6M=0s

  • 2020-07-27 09:31:06 (52.6 MB/s) - '/etc/system_filter.exim' saved [10495/10495]

  • --2020-07-27 09:31:06-- https://files2.directadmin.com/services/SpamBlocker/4.5.23/exim.strings.conf
  • Resolving files2.directadmin.com (files2.directadmin.com)... 185.42.221.168
  • Connecting to files2.directadmin.com (files2.directadmin.com)|185.42.221.168|:443... connected.
  • HTTP request sent, awaiting response... 200 OK
  • Length: 2076 (2.0K) [text/plain]
  • Saving to: '/etc/exim.strings.conf.cb20'

  • 0K .. 100% 138M=0s

  • 2020-07-27 09:31:06 (138 MB/s) - '/etc/exim.strings.conf.cb20' saved [2076/2076]

  • --2020-07-27 09:31:06-- https://files2.directadmin.com/services/SpamBlocker/4.5.23/exim.variables.conf.default
  • Resolving files2.directadmin.com (files2.directadmin.com)... 185.42.221.168
  • Connecting to files2.directadmin.com (files2.directadmin.com)|185.42.221.168|:443... connected.
  • HTTP request sent, awaiting response... 200 OK
  • Length: 996 [text/plain]
  • Saving to: '/etc/exim.variables.conf.cb20'

  • 0K 100% 43.6M=0s

  • 2020-07-27 09:31:06 (43.6 MB/s) - '/etc/exim.variables.conf.cb20' saved [996/996]

  • --2020-07-27 09:31:07-- https://files2.directadmin.com/services/exim.pl.29
  • Resolving files2.directadmin.com (files2.directadmin.com)... 185.42.221.168
  • Connecting to files2.directadmin.com (files2.directadmin.com)|185.42.221.168|:443... connected.
  • HTTP request sent, awaiting response... 200 OK
  • Length: 18976 (19K)
  • Saving to: '/etc/exim.pl.cb20'

  • 0K .......... ........ 100% 32.0M=0.001s

  • 2020-07-27 09:31:07 (32.0 MB/s) - '/etc/exim.pl.cb20' saved [18976/18976]

  • Restarting exim.

  • Done!
PHP 7.2


  • Executing /usr/local/directadmin/plugins/custombuild/admin/build php_expert 7.2 php-fpm...
  • ldconfig: File /lib64/libbfd-2.30-73.el8.so is empty, not checked.
  • ldconfig: File /lib64/libopcodes-2.30-73.el8.so is empty, not checked.
  • Found /usr/local/directadmin/custombuild/php-7.2.32.tar.gz
  • Extracting ...
  • Done.
  • Configuring php-7.2.32...
  • Patching php-fpm to not fail on startup if User quota maxed out on socket chown
  • patching file sapi/fpm/fpm/fpm_unix.c
  • checking for grep that handles long lines and -e... /bin/grep
  • checking for egrep... /bin/grep -E
  • checking for a sed that does not truncate output... /bin/sed
  • checking build system type... x86_64-unknown-linux-gnu
  • checking host system type... x86_64-unknown-linux-gnu
  • checking target system type... x86_64-unknown-linux-gnu
  • shtool:echo:Warning: unable to determine terminal sequence for bold mode
  • shtool:echo:Warning: unable to determine terminal sequence for bold mode
  • checking for cc... cc
  • checking whether the C compiler works... no
  • configure: error: in `/usr/local/directadmin/custombuild/php-7.2.32':
  • configure: error: C compiler cannot create executables
  • See `config.log' for more details

  • *** There was an error while trying to configure php. Check the configure file

  • Done!
PHP 7.3


  • Executing /usr/local/directadmin/plugins/custombuild/admin/build php_expert 7.3 php-fpm...
  • ldconfig: File /lib64/libbfd-2.30-73.el8.so is empty, not checked.
  • ldconfig: File /lib64/libopcodes-2.30-73.el8.so is empty, not checked.
  • Found /usr/local/directadmin/custombuild/php-7.3.20.tar.gz
  • Extracting ...
  • Done.
  • Configuring php-7.3.20...
  • patching file ext/mysqlnd/mysqlnd_auth.c
  • Hunk #6 succeeded at 610 (offset 3 lines).
  • Hunk #7 succeeded at 660 (offset 3 lines).
  • Hunk #8 succeeded at 836 (offset 3 lines).
  • Hunk #9 succeeded at 1103 (offset 3 lines).
  • patching file ext/mysqlnd/mysqlnd_auth.h
  • patching file ext/mysqlnd/mysqlnd_connection.c
  • Hunk #1 succeeded at 671 (offset 5 lines).
  • patching file ext/mysqlnd/mysqlnd_enum_n_def.h
  • patching file ext/mysqlnd/mysqlnd_structs.h
  • patching file ext/mysqlnd/mysqlnd_wireprotocol.c
  • Hunk #1 succeeded at 2125 (offset 2 lines).
  • Hunk #2 succeeded at 2272 (offset 2 lines).
  • Hunk #3 succeeded at 2461 (offset 2 lines).
  • Hunk #4 succeeded at 2690 (offset 2 lines).
  • patching file ext/mysqlnd/mysqlnd_wireprotocol.h
  • Patching MySQLnd to support SHA2 auth is done.
  • Patching php-fpm to not fail on startup if User quota maxed out on socket chown
  • patching file sapi/fpm/fpm/fpm_unix.c
  • Hunk #1 succeeded at 234 (offset -1 lines).
  • checking for grep that handles long lines and -e... /bin/grep
  • checking for egrep... /bin/grep -E
  • checking for a sed that does not truncate output... /bin/sed
  • checking build system type... x86_64-pc-linux-gnu
  • checking host system type... x86_64-pc-linux-gnu
  • checking target system type... x86_64-pc-linux-gnu
  • shtool:echo:Warning: unable to determine terminal sequence for bold mode
  • shtool:echo:Warning: unable to determine terminal sequence for bold mode
  • checking for cc... cc
  • checking whether the C compiler works... no
  • configure: error: in `/usr/local/directadmin/custombuild/php-7.3.20':
  • configure: error: C compiler cannot create executables
  • See `config.log' for more details

  • *** There was an error while trying to configure php. Check the configure file

  • Done!

Checked to see if its already installed and it is:

Package gcc-8.3.1-5.el8.0.2.x86_64 is already installed.
Package gcc-c++-8.3.1-5.el8.0.2.x86_64 is already installed.
 
Last edited:
Most likely a broken/empty OS file on the system :) Try yum reinstall for devtools (in this case I suspect gcc).
 
Most likely a broken/empty OS file on the system :) Try yum reinstall for devtools (in this case I suspect gcc).
Done the following:

dnf group remove "Development Tools"

sudo yum group install "Development Tools"

[root@server1 ~]# whereis gcc
gcc: /usr/bin/gcc /usr/lib/gcc /usr/libexec/gcc /usr/share/man/man1/gcc.1.gz /usr/share/info/gcc.info.gz

Tried updating again (just libjpeg)
  • checking build system type... x86_64-pc-linux-gnu
  • checking host system type... x86_64-pc-linux-gnu
  • checking target system type... x86_64-pc-linux-gnu
  • checking for a BSD-compatible install... /bin/install -c
  • checking whether build environment is sane... yes
  • checking for a thread-safe mkdir -p... /bin/mkdir -p
  • checking for gawk... gawk
  • checking whether make sets $(MAKE)... yes
  • checking whether make supports nested variables... yes
  • checking whether make supports nested variables... (cached) yes
  • checking whether to enable maintainer-specific portions of Makefiles... no
  • checking for gcc... gcc
  • checking whether the C compiler works... no
  • configure: error: in `/usr/local/directadmin/custombuild/jpeg-9d':
  • configure: error: C compiler cannot create executables
  • See `config.log' for more details
  • Trying to make libjpeg...
  • make: *** No targets specified and no makefile found. Stop.

Still showing the C Compiler is not working.
 
try see " See `config.log' for more details " for more details, When I face with error something like this I away look on this file in folder of source
 
Was glibc-headers reinstalled?
[root@server1 /]# whereis glibc-headers
glibc-headers:

[root@server1 /]# yum install glibc-headers
Last metadata expiration check: 2:19:46 ago on Thu 30 Jul 2020 08:06:23 BST.
Package glibc-headers-2.28-101.el8.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
 
It's definitely a corrupt OS file, I'd suggest creating a ticket at tickets.directadmin.com if your license comes with support.
 
Unclean shutdown might be enough for this :) If you may fill a ticket with the access details, it shouldn't be hard to identify the root cause of the issue.
 
Tried using reinstall, still no luck

Tried also reinstalling all yum packages from https://help.directadmin.com/item.php?id=354 under CentOS 8.
That link does not show how to "reinstall." It shows installing. A reinstall is

Code:
yum reinstall ....

If you want to reinstall all installed rpms:

Code:
yum reinstall $(yum list installed | awk '{print $1}')

Another way:

Code:
mkdir emptydirectory
cd emptydirectory
yum reinstall *
 
Back
Top