PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > comp.info.servers.unix > Compiling Apache module under AIX -- linker issue
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.info.servers.unix Web servers for UNIX platforms.

Compiling Apache module under AIX -- linker issue

Réponse
 
LinkBack Outils de la discussion
Vieux 11/07/2006, 22h26   #1
dustinable@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Compiling Apache module under AIX -- linker issue

I am running AIX 5.2 with Apache 1.3 and would like to get auth_ldap
working. I have OpenLDAP and OpenSSL compiled and installed. Also,
after some serious hacking with Makefiles, I have auth_ldap compiling.
However, I cannot get auth_ldap to link either with ld or directly with
apxs.

Okay, first, I try to link after using cc to compile. To compile, I use
the following Makefile. Note, I had to hack the Makefile to even get
this far. The configure script did not produce a Makefile that did much
for me:

../configure --with-apxs=/opt/freeware/apache/bin/apxs \
--with-libs=/usr/local/lib \
--includedir=/opt/freeware/apache/include \
--with-sdk-headers=/usr/local/include \
--with-sdk-libs=/usr/local/lib \
--with-shared-cache

Okay, the important parts of the Makefile:

LIBS=-lldap -llber
CPPFLAGS=-I/usr/local/include
APACHEINCLUDE=/opt/freeware/apache/include
LDAPINCLUDE=/usr/local/include
OBJS=auth_ldap.o auth_ldap_config.o auth_ldap_cache.o
auth_ldap_cache_mgr.o
SRC=auth_ldap.c auth_ldap_config.c auth_ldap_cache.c
auth_ldap_cache_mgr.c
CFLAGS=`$(APXS) -q CFLAGS` $(FRONTPAGE) $(SSL) $(SHARED_CACHE)
$(OPENLDAP) -I$(APACHEINCLUDE) -I$(LDAPINCLUDE)

auth_ldap.so: $(OBJS) $(AIX_EXP)
# @echo $(LD_SHLIB) $(LDFLAGS_SHLIB) -o $@ $(OBJS) $(LIBS)
# @$(LD_SHLIB) $(LDFLAGS_SHLIB) -o $@ $(OBJS) $(LIBS)
$(APXS) -c -Wl,-bexpall -Wc,-I/usr/local/include -Wc,-I./ -o
auth_ldap.so $(OBJS)

..c.o:
@$(MYCC) -c -o $@ $(CFLAGS) $(CFLAGS_SHLIB) -I$(INCLUDEDIR)
$(CPPFLAGS) $<

This at least compiles the code. However, a link fails:

ld -H512 -T512 -bhalt:4 -bM:SRE -e _nostart
-bI:/opt/freeware/apache/libexec/httpd.exp -lc -o auth_lda
p.so auth_ldap.o auth_ldap_config.o auth_ldap_cache.o
auth_ldap_cache_mgr.o -bexpall
ld: 0711-327 WARNING: Entry point not found: _nostart
ld: 0711-317 ERROR: Undefined symbol: .ldap_url_parse
ld: 0711-317 ERROR: Undefined symbol: .ldap_free_urldesc
ld: 0711-317 ERROR: Undefined symbol: .ldap_compare_s
ld: 0711-317 ERROR: Undefined symbol: .ldap_search_ext_s
ld: 0711-317 ERROR: Undefined symbol: .ldap_err2string
ld: 0711-317 ERROR: Undefined symbol: .ldap_first_entry
ld: 0711-317 ERROR: Undefined symbol: .ldap_get_dn
ld: 0711-317 ERROR: Undefined symbol: .ldap_msgfree
ld: 0711-317 ERROR: Undefined symbol: .ldap_memfree
ld: 0711-317 ERROR: Undefined symbol: .ldap_count_entries
ld: 0711-317 ERROR: Undefined symbol: .ldap_simple_bind_s
ld: 0711-317 ERROR: Undefined symbol: .ldap_unbind_s
ld: 0711-317 ERROR: Undefined symbol: .ldap_init
ld: 0711-317 ERROR: Undefined symbol: .ldap_set_option
ld: 0711-317 ERROR: Undefined symbol: .ldap_start_tls_s
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.

If I try to run ld in the Makefile (without doing it via apxs as I did
via a change under auth_ldap.so I get an error about not having a
symbol table auth_ldap.exp or something. After reading up, I found that
the AIX linker wants a previously created symbol table ready for use.
This isn't included with auth_ldap. Linking with apxs as a front-end
seems to somewhat, but then I get the above set of errors.

So, I try compiling and linking with apxs as a front-end and I can't
even get past the compiling stage:

# apxs -c -Wl,-bexpall -Wc,-I/usr/local/include -Wc,-I./ auth_ldap.c
auth_...
....
c -DAIX=51 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__
-DAIX_BIND_PROCESSOR -DMOD_SSL=208108 -DUSE_HSREGEX
-DEAPI -DUSE_EXPAT -I../lib/expat-lite -fpic -DSHARED_MODULE
-I/opt/freeware/apache/include
-I/usr/local/include -I./ -c auth_ldap_cache_mgr.c
1506-507 (W) No licenses available. Contact your program supplier to
add additional users. Compilation
will proceed shortly.
cc -DAIX=51 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__
-DAIX_BIND_PROCESSOR -DMOD_SSL=208108 -DUSE_HSREGEX
-DEAPI -DUSE_EXPAT -I../lib/expat-lite -fpic -DSHARED_MODULE
-I/opt/freeware/apache/include
-I/usr/local/include -I./ -c auth_ldap_config.c
1506-507 (W) No licenses available. Contact your program supplier to
add additional users. Compilation
will proceed shortly.
"auth_ldap_config.c", line 73.10: 1506-045 (S) Undeclared identifier
LDAP_URL_ERR_NOTLDAP.
"auth_ldap_config.c", line 73.10: 1506-051 (S) Case expression must be
a valid integral constant.
"auth_ldap_config.c", line 75.10: 1506-045 (S) Undeclared identifier
LDAP_URL_ERR_NODN.
"auth_ldap_config.c", line 75.10: 1506-051 (S) Case expression must be
a valid integral constant.
apxs:Break: Command failed with rc=1
....

So I'm unsure what is going on. I'm not familiar with the AIX
linker, so I'm at a loss.

Any ideas?

  Réponse avec citation
Vieux 12/07/2006, 11h37   #2
Cydrome Leader
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Compiling Apache module under AIX -- linker issue

In comp.unix.aix dustinable@gmail.com wrote:
> I am running AIX 5.2 with Apache 1.3 and would like to get auth_ldap
> working. I have OpenLDAP and OpenSSL compiled and installed. Also,
> after some serious hacking with Makefiles, I have auth_ldap compiling.
> However, I cannot get auth_ldap to link either with ld or directly with
> apxs.


what happens when you use gcc? It looks like you're using an IBM compiler.
Every one I've ever used freaks out with apache for various reasons.
  Réponse avec citation
Vieux 12/07/2006, 21h42   #3
dustinable@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Compiling Apache module under AIX -- linker issue

Cydrome Leader wrote:
> In comp.unix.aix dustinable@gmail.com wrote:
> > I am running AIX 5.2 with Apache 1.3 and would like to get auth_ldap
> > working. I have OpenLDAP and OpenSSL compiled and installed. Also,
> > after some serious hacking with Makefiles, I have auth_ldap compiling.
> > However, I cannot get auth_ldap to link either with ld or directly with
> > apxs.

>
> what happens when you use gcc? It looks like you're using an IBM compiler.
> Every one I've ever used freaks out with apache for various reasons.


Alas, there is no gcc on the server..

  Réponse avec citation
Vieux 12/07/2006, 21h42   #4
dustinable@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Compiling Apache module under AIX -- linker issue

Cydrome Leader wrote:
> In comp.unix.aix dustinable@gmail.com wrote:
> > I am running AIX 5.2 with Apache 1.3 and would like to get auth_ldap
> > working. I have OpenLDAP and OpenSSL compiled and installed. Also,
> > after some serious hacking with Makefiles, I have auth_ldap compiling.
> > However, I cannot get auth_ldap to link either with ld or directly with
> > apxs.

>
> what happens when you use gcc? It looks like you're using an IBM compiler.
> Every one I've ever used freaks out with apache for various reasons.


Alas, there is no gcc on the server..

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 02h54.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,12896 seconds with 12 queries