- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Compile a module
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2002 05:48 AM
08-08-2002 05:48 AM
Compile a module
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2002 06:30 AM
08-08-2002 06:30 AM
Re: Compile a module
what C compiler?
what OS?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2002 06:33 AM
08-08-2002 06:33 AM
Re: Compile a module
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2002 06:34 AM
08-08-2002 06:34 AM
Re: Compile a module
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2002 06:39 AM
08-08-2002 06:39 AM
Re: Compile a module
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2002 07:11 AM
08-08-2002 07:11 AM
Re: Compile a module
swlist file attached.
module is nltm_auth for apache/unix
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2002 07:18 AM
08-08-2002 07:18 AM
Re: Compile a module
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2002 07:31 AM
08-08-2002 07:31 AM
Re: Compile a module
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2002 07:55 AM
08-08-2002 07:55 AM
Re: Compile a module
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2002 10:12 AM
08-08-2002 10:12 AM
Re: Compile a module
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2002 12:01 AM
08-09-2002 12:01 AM
Re: Compile a module
I went for option 2, but still getting the same error.
regards
Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2002 12:51 AM
08-09-2002 12:51 AM
Re: Compile a module
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2002 12:53 AM
08-09-2002 12:53 AM
Re: Compile a module
I advise you to modify your makefile so that
it invokes cc to do the link (instaed of
ld as I assume you are using now)
In this way cc will invoke ld and automatically link in /usr/ccs/lib/crt0.o
It will also link in libc. Most of the
uresolved symbols (if not all) are found
in libc
Regards
Olav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2002 01:29 AM
08-09-2002 01:29 AM
Re: Compile a module
make install && make restart
apxs -c -I/apps/9ias/oracle/product/9iAS/Apache/Apache/include -L/home/
javadba1/mod_ntlm-0.3/smbval mod_ntlm.c
cc -O -xildoff -DMACHINE64 -DNO_RC2 -DNO_RC5 -DNO_IDEA -DBSAFE -KPIC -DSOLARIS
2=260 -DMOD_SSL=206104 -DMOD_PERL -DUSE_PERL_SSI -I/include -DEAPI -DUSE_EXPAT -
I../lib/expat-lite -KPIC -DSHARED_MODULE -I/include -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:
-
-
-
-
ld: No $UNWIND_END$ subspace has been defined (probably missing /usr/ccs/lib/crt
0.o)
apxs:Break: Command failed with rc=65536
*** Error exit code 1
Stop.
regards
Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2002 06:35 AM
08-09-2002 06:35 AM
Re: Compile a module
Make sure that you did a "make clean" after modifying the Makefile. Then "make", and then "make test".
Then let us see the results from the "make test".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2002 06:42 AM
08-09-2002 06:42 AM
Re: Compile a module
the suggestion to replace 'ld' with 'cc' is good, but we're not in that stage (yet). We first have to resolve the fact that cc is passed the wrong options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2002 03:21 AM
08-12-2002 03:21 AM
Re: Compile a module
Attached apxs file
regards
Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2002 03:33 AM
08-12-2002 03:33 AM
Re: Compile a module
--8<---
my $CFG_CC = q(cc -O -xildoff -DMACHINE64 -DNO_RC2 -DNO_RC5 -DNO_IDEA -DBSAFE -KPIC); # substituted via Makefile.tmpl
my $CFG_CFLAGS = q( -DSOLARIS2=260 -DMOD_SSL=206104 -DMOD_PERL -DUSE_PERL_SSI -I/include -DEAPI -DUSE_EXPAT -I../lib/expat-lite `../apaci`); # substituted via Makefile.tmpl
my $CFG_CFLAGS_SHLIB = q(-KPIC -DSHARED_MODULE); # substituted via Makefile.tmpl
my $CFG_LD_SHLIB = q(ld); # substituted via Makefile.tmpl
my $CFG_LDFLAGS_SHLIB = q(-G); # substituted via Makefile.tmpl
my $CFG_LIBS_SHLIB = q(); # substituted via Makefile.tmpl
my $CFG_PREFIX = q(/apps/9ias/oracle/product/9iAS/Apache/Apache); # substituted via APACI install
my $CFG_SBINDIR = q(/apps/9ias/oracle/product/9iAS/Apache/Apache/bin); # substituted via APACI install
my $CFG_INCLUDEDIR = q(/include); # substituted via APACI install
my $CFG_LIBEXECDIR = q(/apps/9ias/oracle/product/9iAS/Apache/Apache/libexec); # substituted via APACI install
my $CFG_SYSCONFDIR = q(/apps/9ias/oracle/product/9iAS/Apache/Apache/conf); # substituted via APACI install
-->8---
Check and see how this works:
--8<---
my $CFG_CC = q(cc -O -DMACHINE64 -DNO_RC2 -DNO_RC5 -DNO_IDEA -DBSAFE +Z); # substituted via Makefile.tmpl
my $CFG_CFLAGS = q(-DSOLARIS2=260 -DMOD_SSL=206104 -DMOD_PERL -DUSE_PERL_SSI -I/include -DEAPI -DUSE_EXPAT -I../lib/expat-lite `../apaci`); # substituted via Makefile.tmpl
my $CFG_CFLAGS_SHLIB = q(+Z -DSHARED_MODULE); # substituted via Makefile.tmpl
my $CFG_LD_SHLIB = q(cc); # substituted via Makefile.tmpl
my $CFG_LDFLAGS_SHLIB = q(-b); # substituted via Makefile.tmpl
my $CFG_LIBS_SHLIB = q(); # substituted via Makefile.tmpl
my $CFG_PREFIX = q(/apps/9ias/oracle/product/9iAS/Apache/Apache); # substituted via APACI install
my $CFG_SBINDIR = q(/apps/9ias/oracle/product/9iAS/Apache/Apache/bin); # substituted via APACI install
my $CFG_INCLUDEDIR = q(/include); # substituted via APACI install
my $CFG_LIBEXECDIR = q(/apps/9ias/oracle/product/9iAS/Apache/Apache/libexec); # substituted via APACI install
my $CFG_SYSCONFDIR = q(/apps/9ias/oracle/product/9iAS/Apache/Apache/conf); # substituted via APACI install
-->8---
Or modify Makefile.tmpl
Since I cannot test above, I can give no guarantee :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2002 04:04 AM
08-12-2002 04:04 AM
Re: Compile a module
Attached is the new error stack.
regards
Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2002 04:12 AM
08-12-2002 04:12 AM
Re: Compile a module
Calc > 65536
0200000 / 65536 / 0x10000
Calc >
It's causing apxc to exit. To see what happens if you just ignore it, do change
sub execute_cmds {
my (@cmds) = @_;
my ($cmd, $rc);
foreach $cmd (@cmds) {
print STDERR "$cmd\n";
$rc = system("$cmd");
if ($rc != 0) {
printf(STDERR "apxs:Break: Command failed with rc=%d\n", $rc << 8);
exit(1);
}
}
}
to
sub execute_cmds {
my (@cmds) = @_;
my ($cmd, $rc);
foreach $cmd (@cmds) {
print STDERR "$cmd\n";
$rc = system("$cmd");
if ($rc != 0) {
printf(STDERR "apxs:Break: Command failed with rc=%d\n", $rc << 8);
# exit(1);
}
}
}
The error you see does not ring a bell here. I hope someone else can help you out there ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2002 05:14 AM
08-12-2002 05:14 AM
Re: Compile a module
New error after exit is ignored.
apxs:Break: Command failed with rc=65536
cc -b -o mod_ntlm.so mod_ntlm.o -L/home/javadba1/test/mod_ntlm-0.3.shh-3/smbval
cc: warning 422: Unknown option "b" ignored.
/usr/ccs/bin/ld: Can't open mod_ntlm.o
/usr/ccs/bin/ld: No such file or directory
apxs:Break: Command failed with rc=65536
apxs -i -a -n 'ntlm' mod_ntlm.so
cp mod_ntlm.so /apps/9ias/oracle/product/9iAS/Apache/Apache/libexec/mod_ntlm.so
cp: cannot access mod_ntlm.so: No such file or directory
apxs:Break: Command failed with rc=65536
chmod 755 /apps/9ias/oracle/product/9iAS/Apache/Apache/libexec/mod_ntlm.so
chmod: can't access /apps/9ias/oracle/product/9iAS/Apache/Apache/libexec/mod_ntlm.so
apxs:Break: Command failed with rc=65536
[activating module `ntlm' in /apps/9ias/oracle/product/9iAS/Apache/Apache/conf/httpd.conf]
/apps/9ias/oracle/product/9iAS/Apache/Apache/bin/apache restart
Make: Cannot load /apps/9ias/oracle/product/9iAS/Apache/Apache/bin/apache. Stop.
*** Error exit code 1
Stop.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2002 05:38 AM
08-12-2002 05:38 AM
Re: Compile a module
my $CFG_LD_SHLIB = q(cc); # substituted via Makefile.tmpl
to q(ld)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2002 05:51 AM
08-12-2002 05:51 AM
Re: Compile a module
cc: "mod_ntlm.c", line 493: warning 604: Pointers are not assignment-compatible.
cc: "mod_ntlm.c", line 493: warning 563: Argument #2 is not the correct type.
apxs:Break: Command failed with rc=65536
ld -b -o mod_ntlm.so mod_ntlm.o -L/home/javadba1/test/mod_ntlm-0.3.shh-3/smbval
ld: Can't open mod_ntlm.o
ld: No such file or directory
apxs:Break: Command failed with rc=65536
apxs -i -a -n 'ntlm' mod_ntlm.so
cp mod_ntlm.so /apps/9ias/oracle/product/9iAS/Apache/Apache/libexec/mod_ntlm.so
cp: cannot access mod_ntlm.so: No such file or directory
apxs:Break: Command failed with rc=65536
chmod 755 /apps/9ias/oracle/product/9iAS/Apache/Apache/libexec/mod_ntlm.so
chmod: can't access /apps/9ias/oracle/product/9iAS/Apache/Apache/libexec/mod_ntlm.so
apxs:Break: Command failed with rc=65536
[activating module `ntlm' in /apps/9ias/oracle/product/9iAS/Apache/Apache/conf/httpd.conf]
/apps/9ias/oracle/product/9iAS/Apache/Apache/bin/apache restart
Make: Cannot load /apps/9ias/oracle/product/9iAS/Apache/Apache/bin/apache. Stop.
*** Error exit code 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2002 06:55 AM
08-12-2002 06:55 AM
Re: Compile a module
show the code from line 490..495 in mod_ntlm.c maybe someone recognizes the problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2002 07:25 AM
08-12-2002 07:25 AM
Re: Compile a module
Code lines 489..496
if (!*ntlmssp->user)
return HTTP_BAD_REQUEST;
ntlm_connection->user = ap_pstrdup(r->connection->pool, ntlmssp->user);
ntlm_connection->domain = (*ntlmssp->domain)
? ap_pstrdup(r->connection->pool, ntlmssp->domain)
: crec->ntlm_domain;
ntlm_connection->password = ap_pcalloc(r->connection->pool, RESP_LEN);
memcpy(ntlm_connection->password, ntlmssp->nt, RESP_LEN);