1 |
Hi.. |
2 |
|
3 |
Responses inline |
4 |
|
5 |
Fabian Groffen wrote: |
6 |
> On 17-01-2009 23:28:36 +0100, "C. Bergström" wrote: |
7 |
> |
8 |
>> So.. it finally came up on my TODO list again and I got sandbox to |
9 |
>> compile on open Solaris.. |
10 |
>> |
11 |
> |
12 |
> Cool! |
13 |
> |
14 |
I concur :) |
15 |
> |
16 |
>> These are not correct, but should give some idea of what I needed to do |
17 |
>> to get it to build.. |
18 |
>> |
19 |
>> econf --disable-static 'LIBS=-lmagic' || die |
20 |
>> |
21 |
>> ----------- |
22 |
>> --- libsandbox/Makefile.in.old 2009-01-18 11:51:04.304407327 -0800 |
23 |
>> +++ libsandbox/Makefile.in 2009-01-18 11:38:09.852318831 -0800 |
24 |
>> @@ -59,7 +59,7 @@ |
25 |
>> libsandbox_la_OBJECTS = $(am_libsandbox_la_OBJECTS) |
26 |
>> libsandbox_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ |
27 |
>> $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libsandbox_la_CFLAGS) \ |
28 |
>> - $(CFLAGS) $(libsandbox_la_LDFLAGS) $(LDFLAGS) -o $@ |
29 |
>> + $(CFLAGS) $(libsandbox_la_LDFLAGS) -M libsandbox.map $(LDFLAGS) |
30 |
>> -o $@ |
31 |
>> DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) |
32 |
>> depcomp = $(SHELL) $(top_srcdir)/depcomp |
33 |
>> am__depfiles_maybe = depfiles |
34 |
>> @@ -210,8 +210,8 @@ |
35 |
>> # and destructor will not be executed ... |
36 |
>> libsandbox_la_LDFLAGS = \ |
37 |
>> -no-undefined \ |
38 |
>> - -nodefaultlibs \ |
39 |
>> - -Wl,--version-script,libsandbox.map |
40 |
>> + -nodefaultlibs |
41 |
>> |
42 |
> |
43 |
> This looks like a Sun Studio fix/change, is that right? |
44 |
> |
45 |
the -M is needed for the mapfile and it didn't seem to like |
46 |
"--version-script".. I wasn't sure how/if possible to put -Wl,-M |
47 |
libsandbox.map |
48 |
> |
49 |
>> libsandbox_la_SOURCES = \ |
50 |
>> libsandbox.h \ |
51 |
>> ---------------- |
52 |
>> |
53 |
>> --- configure.old 2009-01-18 09:03:01.286581347 -0800 |
54 |
>> +++ configure 2009-01-18 09:04:39.534604306 -0800 |
55 |
>> @@ -23460,6 +23460,7 @@ |
56 |
>> LIBC_PATH=$( |
57 |
>> $AWK '/attempt to open/ { if (($4 ~ /\/libc\.so/) && ($5 == |
58 |
>> "succeeded")) LIBC = $4; }; END {print LIBC}' libctest.log |
59 |
>> ) |
60 |
>> +LIBC_PATH=/lib/amd64/libc.so |
61 |
>> |
62 |
> |
63 |
> I guess this needs some branching. Betther use /lib/64/libc.so as well, |
64 |
> that includes the sparcv9 one. |
65 |
> |
66 |
Makes sense.. |
67 |
|
68 |
The problem with this is how to pass on the configure line.. I should |
69 |
try passing with ./configure directly.. that would solve the multilib |
70 |
problem as well.. otherwise would require sed.. |
71 |
> |
72 |
>> rm -f libctest* |
73 |
>> if test x"$LIBC_PATH" = x || ! test -r "$LIBC_PATH" ; then |
74 |
>> { { $as_echo "$as_me:$LINENO: error: Unable to determine LIBC PATH |
75 |
>> ($LIBC_PATH)" >&5 |
76 |
>> @@ -23478,7 +23479,7 @@ |
77 |
>> { $as_echo "$as_me:$LINENO: checking libc version" >&5 |
78 |
>> $as_echo_n "checking libc version... " >&6; } |
79 |
>> echo "int main(void) { return 0; }" > libctest.c |
80 |
>> -$CC $CFLAGS $CPPFLAGS $LDFLAGS -Wall -o libctest libctest.c |
81 |
>> +$CC $CFLAGS $CPPFLAGS $LDFLAGS -o libctest libctest.c |
82 |
>> |
83 |
> |
84 |
> Is it the compiler not liking -Wall, or you? ;) |
85 |
> |
86 |
Compiler.. If you'd like the build to die rather quickly we could swap |
87 |
it for -v (which I think is sun cc equivalent) |
88 |
|
89 |
If you think any of these changes could be fudged into place.. let me know.. |
90 |
|
91 |
|
92 |
./C |