1753477 Members
4842 Online
108794 Solutions
New Discussion юеВ

Compile a module

 
Brian Keenan
Advisor

Compile a module

Hi,
I'm trying to compile a module using the command
make install && make restart
It errors out with message:
ld: No $UNWIND_END$ subspace has been defined (probably missing /usr/ccs/lib/crt0.o)
apxs:Break: Command failed with rc=65536
*** Error exit code 1

The file /usr/ccs/lib/crt0.o does exist.

Any clues?

regards

Brian
26 REPLIES 26
H.Merijn Brand (procura
Honored Contributor

Re: Compile a module

what module?
what C compiler?
what OS?
Enjoy, Have FUN! H.Merijn
Bill McNAMARA_1
Honored Contributor

Re: Compile a module

does /usr/ccs/lib/ exist?

attach an

swlist | more

To compile a kernel module, you'd use config (1m) and kminstall, but I don't think this is what you're doing..

See also http://www.hp.com/go/developer for general developer support..

Later,
Bill
It works for me (tm)
Steve Steel
Honored Contributor

Re: Compile a module

Hi

From the 11.00 release notes

These symbols are no longer defined in a PA64 crt0.o:

$RECOVER_END$
$RECOVER_START$
$START$
$UNWIND_END$
$UNWIND_START$
$global$
__argc_value
__argv_value
_start


See www.docs.hp.com


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
H.Merijn Brand (procura
Honored Contributor

Re: Compile a module

Bill, /usr/ccs/lib exists, because the file /usr/ccs/lib/crt0.o exists (from initial message)

Steve, 64bit builds are not supported from the braindead bundled compiler.

/opt/langtools/lib/crt0.o
/opt/langtools/lib/pa20_64/crt0.o

are the one's used by HP's ANSI-C compiler
Enjoy, Have FUN! H.Merijn
Brian Keenan
Advisor

Re: Compile a module

Hi,

swlist file attached.
module is nltm_auth for apache/unix
H.Merijn Brand (procura
Honored Contributor

Re: Compile a module

OS = 11.00

Compiler = HP C-ANSI-C (I hope you *are* using it)
-- your version is B.11.01.07, consider an upgrade:

a5:/ 101 # swlist | grep ANSI
B3901BA B.11.02.04 HP C/ANSI C Developer's Bundle for HP-UX 11.00 (S800)
PHSS_25985 1.0 ANSI C compiler General patch
a5:/ 102 #

Module for Apache. Show us more output from the make. Do you *need* 64bit compile?
Enjoy, Have FUN! H.Merijn
Sean OB_1
Honored Contributor

Re: Compile a module

Have you run the .configure that most modules come with?

Then I'm assuming you ran make with no problems. Try "make test" to see if that is in there as an option.

Make sure that /usr/ccs/lib is in your path as well.
Brian Keenan
Advisor

Re: Compile a module

Full output.


make test
apxs -c -I/apps/9ias/oracle/product/9iAS/Apache/Apache/include -L/home/javadba1/mod_ntlm-0.3/smbval -Wc,-Wall mod_ntlm.c
cc -O -xildoff -DMACHINE64 -DNO_RC2 -DNO_RC5 -DNO_IDEA -DBSAFE -KPIC -DSOLARIS2=260 -DMOD_SSL=206104 -DMOD_PERL -DUSE_PERL_SSI -I/include -DEAPI -DUSE_EXPAT -I../lib/expat-lite -KPIC -DSHARED_MODULE -I/include -Wall -I/apps/9ias/oracle/product/9iAS/Apache/Apache/include -c mod_ntlm.c
cc: warning 422: Unknown option "x" ignored.
cc: warning 422: Unknown option "i" ignored.
cc: warning 422: Unknown option "K" ignored.
cc: warning 422: Unknown option "K" ignored.
ld -G -o mod_ntlm.so mod_ntlm.o -L/home/javadba1/mod_ntlm-0.3/smbval
ld: Unsatisfied symbols:
memset (code)
memcpy (code)
close (code)
socket (code)
free (code)
bzero (code)
ap_requires (code)
ap_cfg_closefile (code)
toupper (code)
writev (code)
ap_pstrcat (code)
ap_palloc (code)
fputs (code)
getgid (code)
strlen (code)
ap_set_string_slot (code)
ap_getword_conf (code)
ap_table_get (code)
connect (code)
ap_clear_pool (code)
ap_table_addn (code)
gethostbyname (code)
ap_pstrdup (code)
ap_null_cleanup (code)
_islower (code)
strcasecmp (code)
strncmp (code)
inet_addr (code)
ap_set_flag_slot (code)
ap_set_file_slot (code)
strncpy (code)
ap_base64encode_len (code)
ap_psprintf (code)
ap_base64decode (code)
ap_base64decode_len (code)
vsprintf (code)
ap_table_setn (code)
ap_register_cleanup (code)
ap_make_table (code)
fclose (code)
ap_cfg_getline (code)
strchr (code)
read (code)
ap_getword_white (code)
strcmp (code)
ap_destroy_pool (code)
ap_getword (code)
ap_log_rerror (code)
strcpy (code)
gethostname (code)
ap_pcfg_openfile (code)
ap_pbase64decode (code)
fopen (code)
ap_make_sub_pool (code)
ap_note_basic_auth_failure (code)
malloc (code)
memcmp (code)
getpid (code)
ap_pcalloc (code)
alarm (code)
ap_signal (code)
__SB_masks (data)
ap_base64encode (code)
ld: No $UNWIND_END$ subspace has been defined (probably missing /usr/ccs/lib/crt0.o)
apxs:Break: Command failed with rc=65536
*** Error exit code 1
H.Merijn Brand (procura
Honored Contributor

Re: Compile a module

OK, this /does/ help. You are feeding your HP C-ANSI-C compiler gcc options. You have two choices

1. Download a working gcc, preferably the same mod_perl was built with, and use that (recent versions can be fetched from https://www.beepz.com/personal/merijn )

2. `Fix' the Makefile to pass correct arguments

-Wc,-Wall => remove, or use +w1
-xildoff => ?
-KPIC => +Z
-Wall => remove, or use +w1
Enjoy, Have FUN! H.Merijn