Code Monkey home page Code Monkey logo

Comments (9)

jrowen avatar jrowen commented on June 9, 2024

According to this page, it appears that CURLOPT_GSSAPI_DELEGATION was added in libcurl 7.22.0, so I'm wondering if this could be a version error.

from curl.

jeroen avatar jeroen commented on June 9, 2024

Hmmm. Do you have multiple versions of libcurl installed on the machine? Can send me the file /usr/include/curl/curl.h ?

from curl.

jeroen avatar jeroen commented on June 9, 2024

The script should automatically find available options via https://github.com/jeroenooms/curl/blob/v0.4/configure#L15.

from curl.

jrowen avatar jrowen commented on June 9, 2024

I'll send the file to your stat.ucla.edu email address shortly. No luck with the script:

line 15: src/option_table.h: No such file or directory

from curl.

jeroen avatar jeroen commented on June 9, 2024

The option_table.h file gets generated when you run configure. It looks as if you might have another version of curl.h somewhere on your system?

I just added a line to the configure script that prints the path of curl.h when installing the package. Can you try again:

devtools::install_github("jeroenooms/curl")

And see what curl path it reports? E.g. Found libcurl in...

from curl.

jrowen avatar jrowen commented on June 9, 2024

Below is the updated output, which shows curl.h in the location you specified. I also ran a search for curl.h and did find two versions of the file on the machine.

$ find / -name curl.h 2>/dev/null
/usr/local/include/curl/curl.h
/usr/include/curl/curl.h

I'll remove a version and see if that resolves the error.

> devtools::install_github("jeroenooms/curl")
Downloading github repo jeroenooms/curl@master
Installing curl
'/usr/lib64/R/bin/R' --vanilla CMD INSTALL  \
  '/tmp/Rtmpm1KYhi/devtools33c68416980/jeroenooms-curl-37044c2'  \
  --library='/opt/Rapp/jrowen/R/x86_64-redhat-linux-gnu-library/3.1'  \
  --install-tests 

* installing *source* package ‘curl’ ...
Found libcurl in /usr/include/curl/curl.h
** libs
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG  -I/usr/local/include    -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic  -c curl.c -o curl.o
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG  -I/usr/local/include    -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic  -c download.c -o download.o
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG  -I/usr/local/include    -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic  -c escape.c -o escape.o
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG  -I/usr/local/include    -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic  -c options.c -o options.o
In file included from options.h:15,
                 from options.c:3:
option_table.h:168: error: ‘CURLOPT_GSSAPI_DELEGATION’ undeclared here (not in a function)
make: *** [options.o] Error 1
ERROR: compilation failed for package ‘curl’
* removing ‘/opt/Rapp/jrowen/R/x86_64-redhat-linux-gnu-library/3.1/curl’
Error: Command failed (1)

from curl.

jrowen avatar jrowen commented on June 9, 2024

As you surmised, this error was caused by a second version of curl.h on the machine. After removing the second version, the installation was successful. Thanks for the suggestions.

> devtools::install_github("jeroenooms/curl")
Downloading github repo jeroenooms/curl@master
Installing curl
'/usr/lib64/R/bin/R' --vanilla CMD INSTALL  \
  '/tmp/Rtmpm1KYhi/devtools33c1e7771a8/jeroenooms-curl-37044c2'  \
  --library='/opt/Rapp/jrowen/R/x86_64-redhat-linux-gnu-library/3.1'  \
  --install-tests 

* installing *source* package ‘curl’ ...
Found libcurl in /usr/include/curl/curl.h
** libs
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG  -I/usr/local/include    -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic  -c curl.c -o curl.o
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG  -I/usr/local/include    -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic  -c download.c -o download.o
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG  -I/usr/local/include    -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic  -c escape.c -o escape.o
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG  -I/usr/local/include    -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic  -c options.c -o options.o
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG  -I/usr/local/include    -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic  -c utils.c -o utils.o
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG  -I/usr/local/include    -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic  -c version.c -o version.o
gcc -m64 -std=gnu99 -shared -L/usr/lib64/R/lib -L/usr/local/lib64 -o curl.so curl.o download.o escape.o options.o utils.o version.o -lcurl -L/usr/lib64/R/lib -lR
installing to /opt/Rapp/jrowen/R/x86_64-redhat-linux-gnu-library/3.1/curl/libs
** R
** preparing package for lazy loading
** help
*** installing help indices
  converting help for package ‘curl’
    finding HTML links ... done
    curl                                    html  
    curl_download                           html  
    utilities                               html  
** building package indices
** testing if installed package can be loaded
* DONE (curl)

from curl.

jeroen avatar jeroen commented on June 9, 2024

OK great. Do you know where the second version came from? Did you build libcurl manually?

from curl.

jrowen avatar jrowen commented on June 9, 2024

The second version was in the /usr/local/include/curl. We used yum to install libcurl, so I'm not sure how the other version was installed. It may have been part of the base image we're using.

from curl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.