[Top][All Lists]

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

Re: [Wget-dev] wget2 | configure fails : syntax error near unexpected to

From: Seb M
Subject: Re: [Wget-dev] wget2 | configure fails : syntax error near unexpected token `-fsanitize=undefined' (#419)
Date: Wed, 19 Dec 2018 10:25:49 +0000

You are right, I guess it has something to do with my environment so I created 
a new user called "clean-env" and everything went fine.

$ /usr/bin/ld --version
GNU ld (GNU Binutils for Ubuntu) 2.24
Copyright 2013 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.
$ sudo adduser clean-env
Adding user `clean-env' ...
Adding new group `clean-env' (1005) ...
Adding new user `clean-env' (1006) with group `clean-env' ...
Creating home directory `/home/clean-env' ...
Copying files from `/etc/skel' ...
Enter new UNIX password: 
Retype new UNIX password: 
passwd: password updated successfully
Changing the user information for clean-env
Enter the new value, or press ENTER for the default
        Full Name []: Clean environment
        Room Number []: 
        Work Phone []: 
        Home Phone []: 
        Other []: 
Is the information correct? [Y/n] 
$ sudo adduser clean-env sudo
Adding user `clean-env' to group `sudo' ...
Adding user clean-env to group sudo
$ id -un
$ sudo su - clean-env
$ id -un
$ mkdir src
$ cd src
$ git clone https://gitlab.com/gnuwget/wget2.git
Cloning into 'wget2'...
remote: Enumerating objects: 25646, done.
remote: Counting objects: 100% (25646/25646), done.
remote: Compressing objects: 100% (11583/11583), done.
remote: Total 25646 (delta 12315), reused 24555 (delta 11508)
Receiving objects: 100% (25646/25646), 8.02 MiB | 576.00 KiB/s, done.
Resolving deltas: 100% (12315/12315), done.
Checking connectivity... done.
$ cd wget2/
$ ./bootstrap
./bootstrap: done.  Now you can run './configure'.
$ ./configure
configure: Summary of build options:

  Version:            1.99.1
  Host OS:            linux-gnu
  Install prefix:     /usr/local
  Compiler:           gcc -std=gnu11
  CFlags:                   -I/usr/include/p11-kit-1   -DNDEBUG   
  Libs:               -ldl -lpcre   -lidn   -lz   -lbz2 -lgnutls   
  Library types:      shared=yes, static=yes
  SSL/TLS support:    yes
  GZIP compression:   yes
  BZIP2 compression:  yes
  LZMA compression:   no
  Brotli compression: no
  Zstd compression:   no
  IDNA support:       IDNA 2003 (libidn)
  PSL support:        no
  HSTS support:       no
  HTTP/2.0 support:   no
  Documentation:      yes (found: Pandoc)
  PCRE support:       yes, via libpcre
  Tests:              Valgrind testing not enabled
  Assertions:         no
  POSIX xattr:        yes
  Microhttpd support: no (CFLAGS:       -I/usr/include/p11-kit-1   -DNDEBUG . 
LIBS: -lpcre   -lidn   -lz   -lbz2 -lgnutls   )
  Fuzzing build:      no, 
  GPGME:              no

$ time make
make  all-recursive
make[1]: Entering directory `/home/clean-env/src/wget2'
Making all in lib
make[2]: Entering directory `/home/clean-env/src/wget2/lib'
  GEN      alloca.h
  GEN      arpa/inet.h
  GEN      dirent.h
  GEN      fcntl.h
  GEN      glob.h
  GEN      inttypes.h
  GEN      langinfo.h
  GEN      limits.h
  GEN      locale.h
  GEN      netdb.h
  GEN      poll.h
  GEN      signal.h
  GEN      spawn.h
  GEN      stdint.h
  GEN      stdio.h
  GEN      stdlib.h
  GEN      string.h
  GEN      strings.h
  GEN      sys/file.h
  GEN      sys/ioctl.h
  GEN      sys/select.h
  GEN      sys/socket.h
  GEN      sys/stat.h
  GEN      sys/time.h
  GEN      sys/types.h
  GEN      sys/uio.h
  GEN      sys/wait.h
  GEN      time.h
  GEN      unistd.h
  GEN      unitypes.h
  GEN      uniwidth.h
  GEN      wchar.h
  GEN      wctype.h
make  all-am
make[3]: Entering directory `/home/clean-env/src/wget2/lib'
  CC       binary-io.lo
  CC       c-ctype.lo
make[3]: Leaving directory `/home/clean-env/src/wget2/po'
touch stamp-po
make[2]: Leaving directory `/home/clean-env/src/wget2/po'
Making all in fuzz
make[2]: Entering directory `/home/clean-env/src/wget2/fuzz'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/clean-env/src/wget2/fuzz'
Making all in unit-tests
make[2]: Entering directory `/home/clean-env/src/wget2/unit-tests'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/clean-env/src/wget2/unit-tests'
make[2]: Entering directory `/home/clean-env/src/wget2'
make[2]: Leaving directory `/home/clean-env/src/wget2'
make[1]: Leaving directory `/home/clean-env/src/wget2'

real    1m6.076s
user    0m49.992s
sys     0m7.144s
$ sudo make install
[sudo] password for clean-env:              
Making install in lib
make[1]: Entering directory `/home/clean-env/src/wget2'
make[2]: Entering directory `/home/clean-env/src/wget2'
make[2]: Nothing to be done for `install-exec-am'.
 /bin/mkdir -p '/usr/local/lib/pkgconfig'
 /usr/bin/install -c -m 644 libwget.pc '/usr/local/lib/pkgconfig'
make[2]: Leaving directory `/home/clean-env/src/wget2'
make[1]: Leaving directory `/home/clean-env/src/wget2'
$ which wget2

Thanks a lot for your help.

God bless you.

Reply to this email directly or view it on GitLab: 
You're receiving this email because of your account on gitlab.com.

reply via email to

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