roadsend-php icon indicating copy to clipboard operation
roadsend-php copied to clipboard

Compiling fails

Open IngwiePhoenix opened this issue 12 years ago • 3 comments

Hey there. I got it configured, but it didnt compile:


gcc -c clientinfo.c -fPIC -O2 -fomit-frame-pointer -Wall -DHAVE_CONFIG_H -D_SERVER_VERSION="\"libwebserver 0.53-RE\"" -I../include 
clientinfo.c: In function ‘__ILWS_Query’:
clientinfo.c:225: warning: cast to pointer from integer of different size
clientinfo.c:277: warning: cast to pointer from integer of different size
clientinfo.c:292: warning: cast to pointer from integer of different size
clientinfo.c:329: warning: cast from pointer to integer of different size
clientinfo.c:329: warning: cast from pointer to integer of different size
clientinfo.c: In function ‘__ILWS_Post’:
clientinfo.c:429: warning: pointer targets in assignment differ in signedness
clientinfo.c:430: warning: pointer targets in assignment differ in signedness
clientinfo.c:431: warning: cast to pointer from integer of different size
clientinfo.c:482: warning: cast to pointer from integer of different size
clientinfo.c:508: warning: pointer targets in assignment differ in signedness
clientinfo.c:509: warning: pointer targets in assignment differ in signedness
gcc -c server.c -fPIC -O2 -fomit-frame-pointer -Wall -DHAVE_CONFIG_H -D_SERVER_VERSION="\"libwebserver 0.53-RE\"" -I../include 
server.c: In function ‘handle_new_connection’:
server.c:414: warning: pointer targets in passing argument 3 of ‘accept’ differ in signedness
gcc -c client.c -fPIC -O2 -fomit-frame-pointer -Wall -DHAVE_CONFIG_H -D_SERVER_VERSION="\"libwebserver 0.53-RE\"" -I../include 
gcc -c gethandler.c -fPIC -O2 -fomit-frame-pointer -Wall -DHAVE_CONFIG_H -D_SERVER_VERSION="\"libwebserver 0.53-RE\"" -I../include 
gcc -c socket.c -fPIC -O2 -fomit-frame-pointer -Wall -DHAVE_CONFIG_H -D_SERVER_VERSION="\"libwebserver 0.53-RE\"" -I../include 
gcc -c memory.c -fPIC -O2 -fomit-frame-pointer -Wall -DHAVE_CONFIG_H -D_SERVER_VERSION="\"libwebserver 0.53-RE\"" -I../include 
gcc -c outstream.c -fPIC -O2 -fomit-frame-pointer -Wall -DHAVE_CONFIG_H -D_SERVER_VERSION="\"libwebserver 0.53-RE\"" -I../include 
gcc -c weblog.c -fPIC -O2 -fomit-frame-pointer -Wall -DHAVE_CONFIG_H -D_SERVER_VERSION="\"libwebserver 0.53-RE\"" -I../include 
gcc -c utils.c -fPIC -O2 -fomit-frame-pointer -Wall -DHAVE_CONFIG_H -D_SERVER_VERSION="\"libwebserver 0.53-RE\"" -I../include 
utils.c: In function ‘__ILWS_stristr’:
utils.c:26: warning: cast from pointer to integer of different size
utils.c:26: warning: cast from pointer to integer of different size
gcc -c fnmatch.c -fPIC -O2 -fomit-frame-pointer -Wall -DHAVE_CONFIG_H -D_SERVER_VERSION="\"libwebserver 0.53-RE\"" -I../include 
gcc -c outgif.c -fPIC -O2 -fomit-frame-pointer -Wall -DHAVE_CONFIG_H -D_SERVER_VERSION="\"libwebserver 0.53-RE\"" -I../include 
gcc -c error.c -fPIC -O2 -fomit-frame-pointer -Wall -DHAVE_CONFIG_H -D_SERVER_VERSION="\"libwebserver 0.53-RE\"" -I../include 
gcc  clientinfo.o server.o client.o gethandler.o socket.o memory.o outstream.o weblog.o utils.o fnmatch.o outgif.o error.o    -r -dynamiclib -undefined dynamic_lookup -single_module -o libwebserver.dylib
ld: warning: unexpected dylib (/usr/lib/libSystem.dylib) on link line
0  0x10bf8d098  __assert_rtn + 144
1  0x10bfd8682  std::__1::map<ld::File const*, ld::File::Ordinal, std::__1::less<ld::File const*>, std::__1::allocator<std::__1::pair<ld::File const* const, ld::File::Ordinal> > >::operator[](ld::File const* const&) + 0
2  0x10bfd835f  ld::tool::SectionRelocationsAtom<x86_64>::sectSymNum(bool, ld::Atom const*) + 45
3  0x10bfcdabb  ld::tool::SectionRelocationsAtom<x86_64>::encodeSectionReloc(ld::Internal::FinalSection*, ld::tool::SectionRelocationsAtom<x86_64>::Entry const&, std::__1::vector<macho_relocation_info<Pointer64<LittleEndian> >, std::__1::allocator<macho_relocation_info<Pointer64<LittleEndian> > > >&) + 77
4  0x10bfef0a2  ld::tool::SectionRelocationsAtom<x86_64>::encode() + 62
5  0x10bfd3340  ld::tool::OutputFile::updateLINKEDITAddresses(ld::Internal&) + 420
6  0x10bfcf030  ld::tool::OutputFile::write(ld::Internal&) + 136
7  0x10bf8d4d7  main + 713
8  0x10bf7ecd4  start + 52
A linker snapshot was created at:
    /tmp/libwebserver.dylib-2013-08-13-141220.ld-snapshot
ld: Assertion failed: (_machoSection != 0), function machoSection, file /SourceCache/ld64/ld64-136/src/ld/ld.hpp, line 641.
collect2: ld returned 1 exit status
make[4]: *** [all] Error 1
make[3]: *** [all] Error 2
make[2]: *** [../libs/libwebserver.dylib] Error 2
make[1]: *** [tools] Error 2
make: *** [unsafe] Error 2

What's going wrong here? Do I have "too new" libraries?

Regards.

IngwiePhoenix avatar Sep 13 '13 12:09 IngwiePhoenix

Yes, no doubt you do. I have not compiled this in some time. If you'd like to get it compiling and submit a pull request, I'd love to have it current.

weyrick avatar Sep 16 '13 15:09 weyrick

Well, I am not a C-dude or compiler guru. But if I find something, I will send in a PR. Am 16.09.2013 um 17:04 schrieb Shannon Weyrick [email protected]:

Yes, no doubt you do. I have not compiled this in some time. If you'd like to get it compiling and submit a pull request, I'd love to have it current.

— Reply to this email directly or view it on GitHub.

IngwiePhoenix avatar Sep 17 '13 06:09 IngwiePhoenix

I will take a look on this

codenoid avatar Mar 07 '24 22:03 codenoid