Comments you submit will be routed for moderation. If you have an account, please log in first.

Ticket #423 (new defect)

Opened 13 months ago

Last modified 6 months ago

Build problem on Mac OSX 10.7.4, Xcode 4.3.2

Reported by: jc@… Owned by:
Priority: major Milestone:
Component: LuCI Base Keywords:
Cc:

Description

When trying "make runhttpd" with the latest luci from svn, I get this build error:

make -C uci.git CC=gcc CFLAGS="-O2" LDFLAGS="" OS="Darwin"
gcc -o uci cli.o -L. -luci -lc -ldl
Assertion failed: (_dependentDylibs.size() != 0), function File, file /SourceCache/ld64/ld64-127.2/src/ld/parsers/macho_dylib_file.cpp, line 403.

Is there an easy fix? I'm using Lua 5.1.4 64-bit, obtained via "brew install lua".

-jcw

Attachments

Change History

Changed 13 months ago by jow

I have never seen such an error and have no idea about a potential fix :(

Changed 6 months ago by chris@…

I, too, ran into this. I noticed that there may a logic problem with ./luci-0.10/contrib/uci/uci.git/Makefile.inc in how it detects OS-X

This is how I fixed it:
*** Makefile.inc 2012-12-07 18:34:16.000000000 -0800
--- Makefile.inc.orig 2009-12-01 10:15:57.000000000 -0800
***************
*** 24,30 ****

LINK=$(LD)
SHLIB_EXT=dylib
SHLIB_FLAGS=-dylib

! ifeq ($(shell gcc -dumpmachine),i686-apple-darwin11)

SHLIB_FLAGS += -arch x86_64

endif

else

--- 24,30 ----

LINK=$(LD)
SHLIB_EXT=dylib
SHLIB_FLAGS=-dylib

! ifeq ($(shell gcc -dumpmachine),i686-apple-darwin10)

SHLIB_FLAGS += -arch x86_64

endif

else

The right fix should be to detect OS_X in a more version-nuetral way.

Add/Change #423 (Build problem on Mac OSX 10.7.4, Xcode 4.3.2)

Author


E-mail address and user name can be saved in the Preferences.


Action
as new
 
Note: See TracTickets for help on using tickets.