Ticket #69 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Get SDL to build .so files

Reported by: scottmc Owned by: brecht
Priority: normal Milestone: Haiku self-hosting
Component: BePorts Version:
Severity: normal Keywords:
Cc:

Description

Output from the ./configure process. config.log attached.

checking for BSD-compatible nm... /boot/develop/tools/gnupro/bin/nm -B run the C++ preprocessor... g++ -E checking whether accepts -g... no

Wrong.

checking the maximum length of command line arguments... 4096 checking command to parse /boot/develop/tools/gnupro/bin/nm -B output from gcc object... ok checking whether -lc should be explicitly linked in... yes

Wrong.

checking dynamic linker characteristics... no checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... no

Wrong, if correctly pre-configured.

checking whether to build shared libraries... no checking whether to build static libraries... yes configure: creating libtool appending configuration tag "CXX" to libtool checking for ld used by g++... /boot/develop/tools/gnupro/i586-pc-haiku/bin/ld checking if the linker (/boot/develop/tools/gnupro/i586-pc-haiku/bin/ld) is GNUld... yes checking whether the g++ linker (/boot/develop/tools/gnupro/i586-pc-haiku/bin/ld) supports shared libraries... no

Wrong.

checking whether the g++ linker (/boot/develop/tools/gnupro/i586-pc-haiku/bin/ld) supports shared libraries... no

Wrong.

checking dynamic linker characteristics... no

Wrong.

Attachments

config.log Download (89.8 KB) - added by scottmc 2 years ago.
config.log from attempt SDL library build. Still no .so files output

Change History

Changed 2 years ago by scottmc

config.log from attempt SDL library build. Still no .so files output

Changed 2 years ago by scottmc

Ok, I've started with a new haiku image, built libiconv first and then tried SDL again, it seems it's tripping on -lc:

configure:8437: checking whether -lc should be explicitly linked in
configure:8442: gcc -c -I/boot/home/config/include -I./include -D_GNU_SOURCE=1  -I./include -D_GNU_SOURCE=1 conftest.c >&5
configure:8445: $? = 0
configure:8460: gcc -nostart conftest.o  -v -Wl,-soname -Wl,conftest -o conftest 2\>\&1 \| grep  -lc  \>/dev/null 2\>\&1
configure:8463: $? = 1
configure:8475: result: yes

If I then try to use ./configure with --build=i586-beos, all works fine. So it seems there might be something wrong with haiku at this point?

Changed 2 years ago by scottmc

Opened a Haiku ticket for the -lc check issue:  http://dev.haiku-os.org/ticket/2271

Changed 2 years ago by scottmc

  • status changed from new to closed
  • resolution set to fixed

This appears to be a defective operator issue. It was caused by me pasting haiku* a few too many times, putting it in a couple of places where it should have been *-*-haiku*, thus causing the -lc to creep in where it wasn't creeping in for beos builds. I now have SDL building .so and .a/.la libs as i586-pc-haiku.

Note: See TracTickets for help on using tickets.