Git Product home page Git Product logo

chttpparser's Introduction

CHTTPParser

Modulemap for libhttp-parser

This module binds the http-parser library to Swift.

Requires Swift 3.1.1 minimum.

chttpparser's People

Contributors

carlbrown avatar dannys42 avatar dfirsht avatar ianpartridge avatar quanvo87 avatar rfdickerson avatar shmuelk avatar youming-lin avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chttpparser's Issues

Linker error with Xcode generated project using Kitura 0.13 and Toolchain 05-03

This has been identified as an issue in Swift Package Manager. A bug has been filed against the Package Manager here.
https://bugs.swift.org/browse/SR-1441

Using Kitura 0.13, the Trunk Development Toolchain 05-03 and running "swift build -X" produces this Xcode linker error.

ld: library not found for -lCHttpParser for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

04-25 Toolchain works OK.

v 0.1.1 breaks Kitura-net 0.11.4

Version 0.1.1 of CHttpParser removes the dependency on the system installed lib-http-parser and brings it "in-house". This means that it creates libCHttpParser.so in my .build/debug/TestApp directory.

When I run my app (./.build/debug/TestApp), I get:

.build/debug/TestApp: error while loading shared libraries: libCHttpParser.so: cannot open shared object file: No such file or directory

To resolve, I had to put in a symlink: sudo ln -s /src/TestApp/.build/debug/libCHttpParser.so /usr/lib/libCHttpParser.so

How do I avoid this?

Linking CHttpParser /usr/bin/ld: error: cannot find -ldispatch

Hi
i am trying to create a docker image Docker file

Docker File:

FROM ibmcom/kitura-ubuntu:latest
USER root
ENV PATH /usr/bin:$PATH

RUN mkdir -p /SwiftClientApi

WORKDIR /SwiftClientApi

ADD . /SwiftClientApi

# Print Installed Swift Version
#RUN swift --version

RUN swift build -Xcc -fblocks -Xlinker -ldispatch
#RUN swift build

EXPOSE 8090
CMD .build/debug/ClientApi

getting following error:

Removing intermediate container 666b67a68112
Step 7 : RUN swift build -Xcc -fblocks -Xlinker -ldispatch
 ---> Running in a2021b9357e9
Compile CHttpParser utils.c
Compile CHttpParser http_parser.c
Compile Swift Module 'KituraTemplateEngine' (1 sources)
Compile Swift Module 'SwiftyJSON' (2 sources)
Compile Swift Module 'Socket' (3 sources)
Compile Swift Module 'LoggerAPI' (1 sources)
clang: warning: argument unused during compilation: '-Xcc'
clang: warning: argument unused during compilation: '-Xcc'
Linking CHttpParser
/usr/bin/ld: error: cannot find -ldispatch
clang: error: linker command failed with exit code 1 (use -v to see invocation)
<unknown>:0: error: build had 1 command failures
swift-build: error: exit(1): /root/swift-DEVELOPMENT-SNAPSHOT-2016-06-20-a-ubuntu14.04/usr/bin/swift-build-tool -f /SwiftClientApi/.build/debug.yaml
The command '/bin/sh -c swift build -Xcc -fblocks -Xlinker -ldispatch' returned a non-zero code: 1

Linux runtime error - libCHttpParser.so not found

0.11.3 was working, but with the changes in 0.11.4, the following run time error occurs:

./.build/debug/appname: error while loading shared libraries: libCHttpParser.so: cannot open shared object file: No such file or directory

Notes:

  • This app was built using the 'ibmcom/kitura-ubuntu:latest' docker image:
  • Linking in Xcode works fine.
  • This might be caused by the 'link "CHttpParser"' line in the module.modulemap

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.