[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Static compilation of "ns" and "tclcl-1.0b4"



Dear ns-users,

I couldn't decide on the option of "-static" and "-ldl" usage for the
"tclcl-1.0b4" and "ns-2.1b1". Furthermore, I couldn't find the bug (if
exists) in the "/ns-2.1b1/configure" file that prevents it from finding
"-ldl" or "libdl.so.1.0" (under /usr/lib of a sparc-sunOS4.1.3) :
>> "checking for main in -ldl... (cached) no"

I haven't set anything about the "--enable-devel" option of configure
files for neither "ns-2.1b1" nor "tclcl-1.0b4". But "tclcl-1.0b4" has
default as non-static compilation and although it finds the "-ldl" in the
library, it doesn't use it. On the other hand, "ns-2.1b1" has its default
"--enable-devel" set to V_STATIC="-static", at least I don't give any
option on that item, and it takes "-static" to V_STATIC env. variable.. 
With that option (and without it) my "configure" for "ns-2.1b1" cannot
find "-ldl" although it was found by both "tcl7.6" and "tclcl-1.0b4". But
if V_STATIC="-static" "make"  tries to use dynamic loading library, at the
creation of "ns*", it reports error that it couldn't find "dlopen", dlsym" 
and "dlerror". In the case that V_STATIC="", the linking error doesn't
exist, as expectedi(?); but this case "ns*" will be compiled without
"-ldl"  which doesn't seem to match (in my opinion) the constraint imposed
on the 3305-3309 lines of "/ns-2.1b1/configure":
>> #
>> # tcl7.x needs a dynamic loading library (unless built with the
>> # -disable-load flag).  Try to find the appropriate one.

I will be grateful if you can help me.. I will be looking forward to
receiving a reply from you.

Sincerely,

Deniz GURKAN
Research Assistant
	Bilkent University 
	Electrical and Electronics Eng. Dept.
	06533 Bilkent ANKARA / TURKEY
e-mail: [email protected]  URL: http://www.ee.bilkent.edu.tr/~deniz/