DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38817>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38817
Summary: Failed to build with linux version of sunstuion.
Product: Apache httpd-1.3
Version: 1.3.34
Platform: All
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Build
AssignedTo: bugs@httpd.apache.org
ReportedBy: alexander.andrianov@sun.com
When compiling on linux, apache uses specific option -rdynamic.
When using linux version of Sunstudio compilation fails with error.
This happens because sunstudio doesn't support -rdynamic option. Therefore flag
-rdynamic passes to ld. ld recognizes it as -r flag.
How it can be reproduced:
$./configure --prefix=/export/Place/installdir/linux
--exec-prefix=/export/Place/installdir/linux --enable-module=so
Configuring for Apache, Version 1.3.34
+ using installation path layout: Apache (config.layout)
Creating Makefile
Creating Configuration.apaci in src
Creating Makefile in src
+ configured for Linux platform
+ setting C pre-processor to /set/mars/dist/intel-Linux/prod/bin/cc -E
+ using "tr [a-z] [A-Z]" to uppercase
+ checking for system header files
+ adding selected modules
+ using system Expat
+ using -ldl for vendor DSO support
+ checking sizeof various data types
+ doing sanity check on compiler and options
Creating Makefile in src/support
Creating Makefile in src/regex
Creating Makefile in src/os/unix
Creating Makefile in src/ap
Creating Makefile in src/main
Creating Makefile in src/modules/standard
$make all CC=$CC
< .... some lines skipped .... >
/sunstudio/intel-Linux/prod/bin/cc -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX
-O `./apaci` -rdynamic \
-o httpd buildmark.o modules.o modules/standard/libstandard.a
main/libmain.a ./os/unix/libos.a ap/libap.a regex/libregex.a -lm -lcrypt
-lexpat -ldl
cc: Warning: illegal option -dynamic
/usr/bin/ld: cannot find -lm
make[2]: *** [target_static] Error 1
make[2]: Leaving directory `/export/Place/apache_1.3.34/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/export/Place/apache_1.3.34'
make: *** [build] Error 2
The workaround is to exclude -rdynamic from LDFLAGS_SHLIB_EXPORT
in src/Makefile
I suggest not to use this flag when compiling on linux with sunstudio.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
|