Results 1 to 5 of 5

Thread: openssl 1.0.0a make FAIL @ multiple missing header errors on Ubuntu 10

  1. #1
    Join Date
    Oct 2010
    Beans
    3

    Question openssl 1.0.0a make FAIL @ multiple missing header errors on Ubuntu 10

    Code:
    i'm building openssl 1.0.0a from the upstream src tarball
    
    
     on openSUSE 11.3, absolutely no problems ... an error- & warning-free build. 
     
    
    
    now, trying same on Ubuntu 
     
            lsb_release -a 
                     No LSB modules are available. 
                     Distributor ID: Ubuntu 
                     Description:    Ubuntu 10.04.1 LTS 
                     Release:        10.04 
                     Codename:       lucid 
             uname -a 
                     Linux dev.loc 2.6.32-25-generic #45-Ubuntu SMP Sat Oct 
                     16 19:52:42 UTC 2010 x86_64 GNU/Linux 
     
    @, 
     
            tar zxf openssl-1.0.0a.tar.gz 
             cd /usr/local/src/openssl/openssl-1.0.0a 
     
            ./Configure shared --prefix=/usr/local/ssl 
             --openssldir=/usr/local/ssl linux-x86_64 threads zlib 
             enable-idea enable-rc5 enable-mdc2 
             make SHARED_LDFLAGS=-Wl,-rpath,/usr/local/ssl/lib depend 
     
    'make depend' reports countless missing header warnings, e.g. 
     
            ... 
             makedepend: warning:  o_names.c (reading 
             ../../include/openssl/bio.h, line 67): cannot find include file 
             "stdarg.h" 
                             not in ../stdarg.h 
                             not in ../../stdarg.h 
                             not in ../asn1/stdarg.h 
                             not in ../evp/stdarg.h 
                             not in ../../include/stdarg.h 
                             not in /usr/include/stdarg.h 
             makedepend: warning:  obj_dat.c (reading /usr/include/limits.h, 
             line 125): cannot find include file "limits.h" 
             makedepend: warning:  obj_dat.c (reading /usr/include/unistd.h, 
             line 227): cannot find include file "stddef.h" 
                             not in ../stddef.h 
                             not in ../../stddef.h 
                             not in ../asn1/stddef.h 
                             not in ../evp/stddef.h 
                             not in ../../include/stddef.h 
                             not in /usr/include/stddef.h 
             ... 
     
    as well as a bunch of multiple-definition problems, 
     
            ... 
             makedepend: warning:  /usr/include/time.h includes 
             /usr/include/bits/types.h more than once! 
             Already have 
                             /usr/include/bits/types.h 
             makedepend: warning:  /usr/include/time.h includes 
             /usr/include/bits/types.h more than once! 
             Already have 
                             /usr/include/bits/types.h 
             ... 
     
    1st linking to provide the *missing* headers, 
     
            cd /usr/local/src/openssl/openssl-1.0.0a/include 
             ln -sf 
             /usr/lib/gcc/x86_64-linux-gnu/4.4/include/{stddef.h,stdarg.h} . 
             ln -sf 
             /usr/lib/gcc/x86_64-linux-gnu/4.4/include-fixed/{limits.h,syslimits.h} 
             . 
     
    then, as above, 
     
            ./Configure ... 
             make ... depend 
     
    now completes with no "cannot find" errors, but the "more than once" 
     warnings remain. 
     
    @ subsequent, 
     
            make SHARED_LDFLAGS=-Wl,-rpath,/usr/local/ssl/lib 
     
    fails, 
     
    making all in crypto... 
             make[1]: Entering directory 
             `/usr/local/src/openssl/openssl-1.0.0a/crypto' 
             ( echo "#ifndef MK1MF_BUILD"; \ 
                             echo '  /* auto-generated by crypto/Makefile for 
                             crypto/cversion.c */'; \ 
                             echo '  #define CFLAGS "/usr/bin/gcc -fPIC 
                             -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS 
                             -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -m64 
                             -DL_ENDIAN -DTERMIO -O3 -Wall -DMD32_REG_T=int 
                             -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT 
                             -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM 
                             -DAES_ASM -DWHIRLPOOL_ASM"'; \ 
                             echo '  #define PLATFORM "linux-x86_64"'; \ 
                             echo "  #define DATE \"`LC_ALL=C LC_TIME=C 
                             date`\""; \ 
                             echo '#endif' ) >buildinf.h 
             /usr/bin/gcc -I. -I.. -I../include  -fPIC -DOPENSSL_PIC -DZLIB 
             -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -m64 
             -DL_ENDIAN -DTERMIO -O3 -Wall -DMD32_REG_T=int 
             -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DSHA1_ASM 
             -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DWHIRLPOOL_ASM   
             -c -o cryptlib.o cryptlib.c 
             In file included from /usr/include/sys/select.h:46, 
                                             from 
                                             /usr/include/sys/types.h:220, 
                                             from /usr/include/stdlib.h:320, 
                                             from cryptlib.h:62, 
                                             from cryptlib.c:117: 
             /usr/include/bits/time.h:70: error: redefinition of ‘struct 
             timeval’ 
             cryptlib.c: In function ‘CRYPTO_THREADID_set_numeric’: 
             cryptlib.c:426: warning: implicit declaration of function 
             ‘memset’ 
             cryptlib.c:426: warning: incompatible implicit declaration of 
             built-in function ‘memset’ 
             cryptlib.c: In function ‘CRYPTO_THREADID_set_pointer’: 
             cryptlib.c:437: warning: incompatible implicit declaration of 
             built-in function ‘memset’ 
             cryptlib.c: In function ‘CRYPTO_THREADID_current’: 
             cryptlib.c:503: error: ‘errno’ undeclared (first use in this 
             function) 
             cryptlib.c:503: error: (Each undeclared identifier is reported 
             only once 
             cryptlib.c:503: error: for each function it appears in.) 
             cryptlib.c: In function ‘CRYPTO_THREADID_cmp’: 
             cryptlib.c:509: warning: implicit declaration of function 
             ‘memcmp’ 
             cryptlib.c: In function ‘CRYPTO_THREADID_cpy’: 
             cryptlib.c:514: warning: implicit declaration of function 
             ‘memcpy’ 
             cryptlib.c:514: warning: incompatible implicit declaration of 
             built-in function ‘memcpy’ 
             cryptlib.c: In function ‘CRYPTO_thread_id’: 
             cryptlib.c:548: warning: implicit declaration of function 
             ‘getpid’ 
             make[1]: *** [cryptlib.o] Error 1 
             make[1]: Leaving directory 
             `/usr/local/src/openssl/openssl-1.0.0a/crypto' 
             make: *** [build_crypto] Error 1 
    
    clearly something's missing -- a FLAG, a symlink, etc.
    
    any hints?
    
    thanks.

  2. #2
    Join Date
    Feb 2010
    Location
    Silicon Valley
    Beans
    1,898
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: openssl 1.0.0a make FAIL @ multiple missing header errors on Ubuntu 10

    It compiled for me without any problems, on 64-bit 10.10 Maverick.

    Make sure you have the build-essential package installed, and then run "apt-get build-dep openssl" and then try again.

    BTW, I followed the instructions in the INSTALL file and ran "./config" and "make".
    Last edited by gmargo; October 30th, 2010 at 05:47 PM.

  3. #3
    Join Date
    Oct 2010
    Beans
    3

    Re: openssl 1.0.0a make FAIL @ multiple missing header errors on Ubuntu 10

    Code:
    hi,
    
    > 64-bit 10.10 Maverick
    
    not an option for me, i'm afraid.  10.04 LTS is, atm, a requirement.
    
    > Make sure you have the build-essential package installed
    
    already is,
    
     dpkg --get-selections | grep build-essential
      build-essential                                 install
     apt-get install build-essential
      Reading package lists... Done
      Building dependency tree       
      Reading state information... Done
      build-essential is already the newest version.
      0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    
    > run "apt-get build-dep openssl" and then try again.
    
    hadn't done that yet.  adds only a couple of pkgs,
    
     apt-get build-dep openssl
      ...
      The following NEW packages will be installed:
        bc diffstat quilt
      0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
      Need to get 454kB of archives.
      After this operation, 1,298kB of additional disk space will be used.
      Do you want to continue [Y/n]? Y
      ...
    
    
    > I followed the instructions in the INSTALL file and ran "./config" and "make".
    
    the instructions in the make file give that as the 'just get to it' option ... the manual config via "./Configure ..." is also specifically called out -- particuarly when things go wrong.
    
    in any case, @
    
    ./config
    make
        making all in crypto...
        make[1]: Entering directory `/usr/local/src/openssl/openssl-1.0.0a/crypto'
        ( echo "#ifndef MK1MF_BUILD"; \
                echo '  /* auto-generated by crypto/Makefile for crypto/cversion.c */'; \
                echo '  #define CFLAGS "/usr/bin/gcc -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -m64 -DL_ENDIAN -DTERMIO -O3 -Wall -DMD32_REG_T=int -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DWHIRLPOOL_ASM"'; \
                echo '  #define PLATFORM "linux-x86_64"'; \
                echo "  #define DATE \"`LC_ALL=C LC_TIME=C date`\""; \
                echo '#endif' ) >buildinf.h
        /usr/bin/gcc -I. -I.. -I../include  -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -m64 -DL_ENDIAN -DTERMIO -O3 -Wall -DMD32_REG_T=int -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DWHIRLPOOL_ASM   -c -o cryptlib.o cryptlib.c
        In file included from cryptlib.h:62,
                        from cryptlib.c:117:
        /usr/include/stdlib.h:140: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__ctype_get_mb_cur_max’
        In file included from /usr/include/sys/select.h:46,
                        from /usr/include/sys/types.h:220,
                        from /usr/include/stdlib.h:320,
                        from cryptlib.h:62,
                        from cryptlib.c:117:
        /usr/include/bits/time.h:70: error: redefinition of ‘struct timeval’
        In file included from cryptlib.h:62,
                        from cryptlib.c:117:
        /usr/include/stdlib.h:337: error: expected declaration specifiers or ‘...’ before ‘size_t’
        /usr/include/stdlib.h:367: error: expected declaration specifiers or ‘...’ before ‘size_t’
        /usr/include/stdlib.h:369: error: nonnull argument with out-of-range operand number (argument 1, operand 4)
        /usr/include/stdlib.h:471: error: expected ‘)’ before ‘__size’
        /usr/include/stdlib.h:473: error: expected ‘)’ before ‘__nmemb’
        /usr/include/stdlib.h:485: error: expected declaration specifiers or ‘...’ before ‘size_t’
        In file included from /usr/include/stdlib.h:497,
                        from cryptlib.h:62,
                        from cryptlib.c:117:
        /usr/include/alloca.h:33: error: expected ‘)’ before ‘__size’
        In file included from cryptlib.h:62,
                        from cryptlib.c:117:
        /usr/include/stdlib.h:502: error: expected ‘)’ before ‘__size’
        /usr/include/stdlib.h:507: error: expected declaration specifiers or ‘...’ before ‘size_t’
        /usr/include/stdlib.h:507: error: expected declaration specifiers or ‘...’ before ‘size_t’
        /usr/include/stdlib.h:751: error: expected declaration specifiers or ‘...’ before ‘size_t’
        /usr/include/stdlib.h:751: error: expected declaration specifiers or ‘...’ before ‘size_t’
        /usr/include/stdlib.h:752: error: nonnull argument with out-of-range operand number (argument 1, operand 5)
        /usr/include/stdlib.h:756: error: expected declaration specifiers or ‘...’ before ‘size_t’
        /usr/include/stdlib.h:756: error: expected declaration specifiers or ‘...’ before ‘size_t’
        /usr/include/stdlib.h:757: error: nonnull argument with out-of-range operand number (argument 1, operand 4)
        /usr/include/stdlib.h:834: error: expected declaration specifiers or ‘...’ before ‘size_t’
        /usr/include/stdlib.h:837: error: expected declaration specifiers or ‘...’ before ‘size_t’
        /usr/include/stdlib.h:841: error: expected declaration specifiers or ‘...’ before ‘size_t’
        /usr/include/stdlib.h:845: error: expected declaration specifiers or ‘...’ before ‘size_t’
        /usr/include/stdlib.h:854: error: expected declaration specifiers or ‘...’ before ‘size_t’
        /usr/include/stdlib.h:857: error: expected ‘)’ before ‘*’ token
        /usr/include/stdlib.h:861: error: expected declaration specifiers or ‘...’ before ‘wchar_t’
        /usr/include/stdlib.h:865: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mbstowcs’
        /usr/include/stdlib.h:868: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘wcstombs’
        In file included from /usr/include/stdlib.h:949,
                        from cryptlib.h:62,
                        from cryptlib.c:117:
        /usr/include/bits/stdlib.h:26: error: expected declaration specifiers or ‘...’ before ‘size_t’
        /usr/include/bits/stdlib.h:30: error: expected declaration specifiers or ‘...’ before ‘size_t’
        /usr/include/bits/stdlib.h: In function ‘realpath’:
        /usr/include/bits/stdlib.h:40: error: ‘size_t’ undeclared (first use in this function)
        /usr/include/bits/stdlib.h:40: error: (Each undeclared identifier is reported only once
        /usr/include/bits/stdlib.h:40: error: for each function it appears in.)
        /usr/include/bits/stdlib.h:46: error: too many arguments to function ‘__realpath_chk’
        /usr/include/bits/stdlib.h: At top level:
        /usr/include/bits/stdlib.h:53: error: expected declaration specifiers or ‘...’ before ‘size_t’
        /usr/include/bits/stdlib.h:54: error: expected declaration specifiers or ‘...’ before ‘size_t’
        /usr/include/bits/stdlib.h:55: error: expected declaration specifiers or ‘...’ before ‘size_t’
        /usr/include/bits/stdlib.h:58: error: expected declaration specifiers or ‘...’ before ‘size_t’
        /usr/include/bits/stdlib.h:58: error: expected declaration specifiers or ‘...’ before ‘size_t’
        /usr/include/bits/stdlib.h:65: error: expected declaration specifiers or ‘...’ before ‘size_t’
        /usr/include/bits/stdlib.h: In function ‘ptsname_r’:
        /usr/include/bits/stdlib.h:67: error: ‘size_t’ undeclared (first use in this function)
        /usr/include/bits/stdlib.h:69: error: ‘__buflen’ undeclared (first use in this function)
        /usr/include/bits/stdlib.h:70: error: too many arguments to function ‘__ptsname_r_chk’
        /usr/include/bits/stdlib.h:72: error: too many arguments to function ‘__ptsname_r_chk_warn’
        /usr/include/bits/stdlib.h:74: error: too many arguments to function ‘__ptsname_r_alias’
        /usr/include/bits/stdlib.h: At top level:
        /usr/include/bits/stdlib.h:78: error: expected declaration specifiers or ‘...’ before ‘wchar_t’
        /usr/include/bits/stdlib.h:78: error: expected declaration specifiers or ‘...’ before ‘size_t’
        /usr/include/bits/stdlib.h:80: error: expected declaration specifiers or ‘...’ before ‘wchar_t’
        /usr/include/bits/stdlib.h:84: error: expected declaration specifiers or ‘...’ before ‘wchar_t’
        /usr/include/bits/stdlib.h: In function ‘wctomb’:
        /usr/include/bits/stdlib.h:93: error: ‘size_t’ undeclared (first use in this function)
        /usr/include/bits/stdlib.h:94: error: ‘__wchar’ undeclared (first use in this function)
        /usr/include/bits/stdlib.h:94: error: too many arguments to function ‘__wctomb_chk’
        /usr/include/bits/stdlib.h:95: error: too many arguments to function ‘__wctomb_alias’
        /usr/include/bits/stdlib.h: At top level:
        /usr/include/bits/stdlib.h:99: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__mbstowcs_chk’
        /usr/include/bits/stdlib.h:102: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__mbstowcs_alias’
        /usr/include/bits/stdlib.h:106: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__mbstowcs_chk_warn’
        /usr/include/bits/stdlib.h:114: error: expected ‘,’ or ‘;’ before ‘mbstowcs’
        /usr/include/bits/stdlib.h:131: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__wcstombs_chk’
        /usr/include/bits/stdlib.h:134: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__wcstombs_alias’
        /usr/include/bits/stdlib.h:138: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__wcstombs_chk_warn’
        /usr/include/bits/stdlib.h:145: error: expected ‘,’ or ‘;’ before ‘wcstombs’
        In file included from /usr/include/stdio.h:75,
                        from ../include/openssl/crypto.h:125,
                        from cryptlib.h:72,
                        from cryptlib.c:117:
        /usr/include/libio.h:332: error: expected specifier-qualifier-list before ‘size_t’
        /usr/include/libio.h:364: error: expected declaration specifiers or ‘...’ before ‘size_t’
        /usr/include/libio.h:373: error: expected declaration specifiers or ‘...’ before ‘size_t’
        /usr/include/libio.h:495: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_IO_sgetn’
        In file included from ../include/openssl/crypto.h:125,
                        from cryptlib.h:72,
                        from cryptlib.c:117:
        /usr/include/stdio.h:296: error: expected declaration specifiers or ‘...’ before ‘size_t’
        /usr/include/stdio.h:302: error: expected declaration specifiers or ‘...’ before ‘size_t’
        /usr/include/stdio.h:314: error: expected declaration specifiers or ‘...’ before ‘size_t’
        /usr/include/stdio.h:321: error: expected declaration specifiers or ‘...’ before ‘size_t’
        /usr/include/stdio.h:363: error: expected declaration specifiers or ‘...’ before ‘size_t’
        /usr/include/stdio.h:365: error: format string argument not a string type
        /usr/include/stdio.h:367: error: expected declaration specifiers or ‘...’ before ‘size_t’
        /usr/include/stdio.h:369: error: format string argument not a string type
        /usr/include/stdio.h:639: error: expected declaration specifiers or ‘...’ before ‘size_t’
        /usr/include/stdio.h:642: error: expected declaration specifiers or ‘...’ before ‘size_t’
        /usr/include/stdio.h:652: error: expected declaration specifiers or ‘...’ before ‘size_t’
        /usr/include/stdio.h:682: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fread’
        /usr/include/stdio.h:688: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fwrite’
        /usr/include/stdio.h:710: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fread_unlocked’
        /usr/include/stdio.h:712: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fwrite_unlocked’
        In file included from /usr/include/stdio.h:910,
                        from ../include/openssl/crypto.h:125,
                        from cryptlib.h:72,
                        from cryptlib.c:117:
        /usr/include/bits/stdio2.h:24: error: expected declaration specifiers or ‘...’ before ‘size_t’
        /usr/include/bits/stdio2.h:26: error: expected declaration specifiers or ‘...’ before ‘size_t’
        /usr/include/bits/stdio2.h:53: error: expected declaration specifiers or ‘...’ before ‘size_t’
        /usr/include/bits/stdio2.h:54: error: expected declaration specifiers or ‘...’ before ‘size_t’
        /usr/include/bits/stdio2.h:56: error: expected declaration specifiers or ‘...’ before ‘size_t’
        /usr/include/bits/stdio2.h:57: error: expected declaration specifiers or ‘...’ before ‘size_t’
        /usr/include/bits/stdio2.h:62: error: expected declaration specifiers or ‘...’ before ‘size_t’
        /usr/include/bits/stdio2.h: In function ‘snprintf’:
        /usr/include/bits/stdio2.h:65: error: ‘__n’ undeclared (first use in this function)
        /usr/include/bits/stdio2.h: At top level:
        /usr/include/bits/stdio2.h:75: error: expected declaration specifiers or ‘...’ before ‘size_t’
        /usr/include/bits/stdio2.h: In function ‘vsnprintf’:
        /usr/include/bits/stdio2.h:78: error: ‘__n’ undeclared (first use in this function)
        /usr/include/bits/stdio2.h: At top level:
        /usr/include/bits/stdio2.h:220: error: expected declaration specifiers or ‘...’ before ‘size_t’
        /usr/include/bits/stdio2.h: In function ‘gets’:
        /usr/include/bits/stdio2.h:229: error: too many arguments to function ‘__gets_chk’
        /usr/include/bits/stdio2.h: At top level:
        /usr/include/bits/stdio2.h:233: error: expected declaration specifiers or ‘...’ before ‘size_t’
        /usr/include/bits/stdio2.h:238: error: expected declaration specifiers or ‘...’ before ‘size_t’
        /usr/include/bits/stdio2.h: In function ‘fgets’:
        /usr/include/bits/stdio2.h:250: error: too many arguments to function ‘__fgets_chk’
        /usr/include/bits/stdio2.h:252: error: expected ‘)’ before ‘__n’
        /usr/include/bits/stdio2.h:253: error: too many arguments to function ‘__fgets_chk_warn’
        /usr/include/bits/stdio2.h: At top level:
        /usr/include/bits/stdio2.h:258: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__fread_chk’
        /usr/include/bits/stdio2.h:261: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__fread_alias’
        /usr/include/bits/stdio2.h:265: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__fread_chk_warn’
        /usr/include/bits/stdio2.h:274: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fread’
        /usr/include/bits/stdio2.h:319: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__fread_unlocked_chk’
        /usr/include/bits/stdio2.h:322: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__fread_unlocked_alias’
        /usr/include/bits/stdio2.h:326: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__fread_unlocked_chk_warn’
        /usr/include/bits/stdio2.h:335: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fread_unlocked’
        In file included from cryptlib.h:72,
                        from cryptlib.c:117:
        ../include/openssl/crypto.h:175: error: expected specifier-qualifier-list before ‘size_t’
        In file included from cryptlib.h:72,
                        from cryptlib.c:117:
        ../include/openssl/crypto.h:465: warning: parameter names (without types) in function declaration
        ../include/openssl/crypto.h:465: error: expected declaration specifiers or ‘...’ before ‘size_t’
        ../include/openssl/crypto.h:466: warning: parameter names (without types) in function declaration
        ../include/openssl/crypto.h:467: error: expected ‘)’ before ‘const’
        ../include/openssl/crypto.h:468: error: expected ‘;’, ‘,’ or ‘)’ before ‘void’
        ../include/openssl/crypto.h:470: error: expected ‘)’ before ‘const’
        ../include/openssl/crypto.h:471: error: expected ‘;’, ‘,’ or ‘)’ before ‘void’
        ../include/openssl/crypto.h:477: warning: parameter names (without types) in function declaration
        ../include/openssl/crypto.h:477: error: expected declaration specifiers or ‘...’ before ‘size_t’
        ../include/openssl/crypto.h:478: warning: parameter names (without types) in function declaration
        ../include/openssl/crypto.h:479: error: expected ‘)’ before ‘const’
        ../include/openssl/crypto.h:480: error: expected ‘;’, ‘,’ or ‘)’ before ‘void’
        ../include/openssl/crypto.h:482: error: expected ‘)’ before ‘const’
        ../include/openssl/crypto.h:483: error: expected ‘;’, ‘,’ or ‘)’ before ‘void’
        ../include/openssl/crypto.h:500: error: expected declaration specifiers or ‘...’ before ‘size_t’
        In file included from cryptlib.h:73,
                        from cryptlib.c:117:
        ../include/openssl/buffer.h:79: error: expected specifier-qualifier-list before ‘size_t’
        ../include/openssl/buffer.h:86: error: expected declaration specifiers or ‘...’ before ‘size_t’
        ../include/openssl/buffer.h:87: error: expected declaration specifiers or ‘...’ before ‘size_t’
        ../include/openssl/buffer.h:89: error: expected declaration specifiers or ‘...’ before ‘size_t’
        ../include/openssl/buffer.h:90: error: expected declaration specifiers or ‘...’ before ‘size_t’
        ../include/openssl/buffer.h:91: error: expected declaration specifiers or ‘...’ before ‘size_t’
        ../include/openssl/buffer.h:94: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘BUF_strlcpy’
        ../include/openssl/buffer.h:95: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘BUF_strlcat’
        In file included from cryptlib.h:74,
                        from cryptlib.c:117:
        ../include/openssl/bio.h:510: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘BIO_ctrl_pending’
        ../include/openssl/bio.h:511: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘BIO_ctrl_wpending’
        ../include/openssl/bio.h:529: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘BIO_ctrl_get_write_guarantee’
        ../include/openssl/bio.h:530: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘BIO_ctrl_get_read_request’
        ../include/openssl/bio.h:632: error: expected declaration specifiers or ‘...’ before ‘size_t’
        ../include/openssl/bio.h:634: error: expected declaration specifiers or ‘...’ before ‘size_t’
        ../include/openssl/bio.h:668: error: expected declaration specifiers or ‘...’ before ‘size_t’
        ../include/openssl/bio.h:669: error: expected declaration specifiers or ‘...’ before ‘size_t’
        ../include/openssl/bio.h:688: error: expected declaration specifiers or ‘...’ before ‘size_t’
        ../include/openssl/bio.h:689: error: format string argument not a string type
        ../include/openssl/bio.h:690: error: expected declaration specifiers or ‘...’ before ‘size_t’
        ../include/openssl/bio.h:691: error: format string argument not a string type
        In file included from cryptlib.h:75,
                        from cryptlib.c:117:
        ../include/openssl/err.h:336: error: expected declaration specifiers or ‘...’ before ‘size_t’
        ../include/openssl/err.h:340: error: expected declaration specifiers or ‘...’ before ‘size_t’
        cryptlib.c: In function ‘CRYPTO_THREADID_set_numeric’:
        cryptlib.c:426: warning: implicit declaration of function ‘memset’
        cryptlib.c:426: warning: incompatible implicit declaration of built-in function ‘memset’
        cryptlib.c: In function ‘CRYPTO_THREADID_set_pointer’:
        cryptlib.c:437: warning: incompatible implicit declaration of built-in function ‘memset’
        cryptlib.c: In function ‘CRYPTO_THREADID_current’:
        cryptlib.c:503: error: ‘errno’ undeclared (first use in this function)
        cryptlib.c: In function ‘CRYPTO_THREADID_cmp’:
        cryptlib.c:509: warning: implicit declaration of function ‘memcmp’
        cryptlib.c: In function ‘CRYPTO_THREADID_cpy’:
        cryptlib.c:514: warning: implicit declaration of function ‘memcpy’
        cryptlib.c:514: warning: incompatible implicit declaration of built-in function ‘memcpy’
        cryptlib.c: In function ‘CRYPTO_thread_id’:
        cryptlib.c:548: warning: implicit declaration of function ‘getpid’
        make[1]: *** [cryptlib.o] Error 1
        make[1]: Leaving directory `/usr/local/src/openssl/openssl-1.0.0a/crypto'
        make: *** [build_crypto] Error 1
    
    also, if i try a similar "./config; make depend", it fails as I'd originally reported
    
    ./config
    make depend
        making depend in crypto...
        make[1]: Entering directory `/usr/local/src/openssl/openssl-1.0.0a/crypto'
        makedepend: warning:  cryptlib.c (reading /usr/include/stdlib.h, line 33): cannot find include file "stddef.h"
                not in ./stddef.h
                not in ../stddef.h
                not in ../include/stddef.h
                not in /usr/include/stddef.h
        makedepend: warning:  /usr/include/time.h includes /usr/include/bits/types.h more than once!
        Already have
                /usr/include/bits/types.h
        makedepend: warning:  /usr/include/time.h includes /usr/include/bits/types.h more than once!
        Already have
                /usr/include/bits/types.h
        makedepend: warning:  cryptlib.c (reading /usr/include/sys/types.h, line 147): cannot find include file "stddef.h"
                not in ./stddef.h
                not in ../stddef.h
                not in ../include/stddef.h
                not in /usr/include/stddef.h
        makedepend: warning:  cryptlib.c (reading /usr/include/alloca.h, line 25): cannot find include file "stddef.h"
                not in ./stddef.h
                not in ../stddef.h
                not in ../include/stddef.h
                not in /usr/include/stddef.h
        makedepend: warning:  cryptlib.c (reading /usr/include/string.h, line 33): cannot find include file "stddef.h"
                not in ./stddef.h
                not in ../stddef.h
                not in ../include/stddef.h
                not in /usr/include/stddef.h
        ...
    
    i.e., FAILS (not surprisingly) regardless of "./Configure ..." or "./config ..." usage

  4. #4
    Join Date
    Feb 2010
    Location
    Silicon Valley
    Beans
    1,898
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: openssl 1.0.0a make FAIL @ multiple missing header errors on Ubuntu 10

    I tried again on a 32-bit 10.04 Lucid, and got the same "no problems" as before. Same for 32-bit 8.04 Hardy.

    Have you got some strange gcc or headers? Or a $PATH or $LD_LIBRARY_PATH that points them strange ways?

    I find it odd that your make output says "/usr/bin/gcc ...." instead of just gcc like mine does. It shouldn't matter, but have you got $CC defined in your environment? Or other weird environment stuff? Do you do cross-compiling?

  5. #5
    Join Date
    Oct 2010
    Beans
    3

    [SOLVED] Re: openssl 1.0.0a make FAIL @ multiple missing header errors on Ubuntu 10

    Code:
    > I find it odd that your make output says "/usr/bin/gcc ...." instead of just gcc like mine does.  It shouldn't matter, but have you got $CC defined in your environment?  Or other weird environment stuff?
    
    I have in my ~/.tcshrc my as-usual-on-other-OS:
    
     setenv CC         "/usr/bin/gcc"
     setenv CXX        "/usr/bin/g++"
     setenv CFLAGS     "-O2 -mtune=amdfam10 -march=amdfam10"
    
    and nothing else compiler/path related.
    
    so, as an experiment,
    
    unsetenv CC CXX
    ( rinse-n-repeat )
    ./Configure ...
    make depend
    make
    make test
    make report
    cat testlog
    =====================
    OpenSSL self-test report:
    
    OpenSSL version:  1.0.0a
    Last change:      Check return value of int_rsa_verify in pkey_rsa_verify...
    Options:          enable-shared --prefix=/usr/local/ssl --openssldir=/usr/local/ssl enable-threads enable-zlib enable-idea enable-rc5 enable-mdc2 no-gmp no-jpake no-krb5 no-md2 no-rfc3779 no-store no-zlib-dynamic no-static-engine
    OS (uname):       Linux ubu.loc 2.6.32-25-generic #45-Ubuntu SMP Sat Oct 16 19:52:42 UTC 2010 x86_64 GNU/Linux
    OS (config):      x86_64-whatever-linux2
    Target (default): linux-x86_64
    Target:           linux-x86_64
    Compiler:         Using built-in specs.
    Target: x86_64-linux-gnu
    Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.3-4ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i486 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
    Thread model: posix
    gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5)
    
    Test passed.
    =====================
    
    it seems $CC/$CXX *DOES* matter.
    
    and,
    
    make install
    rehash
    openssl version
      OpenSSL 1.0.0a 1 Jun 2010
    
    !!! :-D
    
    i'm surprised at the effect the ENV vars had, and would simply not have thought to look/test. lesson learned for Ubuntu.
    
    checking,
    
    ls -al `which cc` `which gcc` `which g++`
     lrwxrwxrwx 1 root root 20 2010-10-23 11:11 /usr/bin/cc -> /etc/alternatives/cc
     lrwxrwxrwx 1 root root  7 2010-10-23 11:19 /usr/bin/g++ -> g++-4.4
     lrwxrwxrwx 1 root root 16 2010-10-23 22:42 /usr/bin/gcc -> /usr/bin/gcc-4.4
    
    i'm suspicious abt the /etc/alternatives setup.  will dig more.
    
    in any case, now -- back in business!
    
    thanks!

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •